e9eeb4302e0e426c6cc1a4e65b95a6f7066e80b9Pavel Březina Pavel Březina <pbrezina@redhat.com>
e9eeb4302e0e426c6cc1a4e65b95a6f7066e80b9Pavel Březina Copyright (C) 2011 Red Hat
e9eeb4302e0e426c6cc1a4e65b95a6f7066e80b9Pavel Březina This program is free software; you can redistribute it and/or modify
e9eeb4302e0e426c6cc1a4e65b95a6f7066e80b9Pavel Březina it under the terms of the GNU General Public License as published by
e9eeb4302e0e426c6cc1a4e65b95a6f7066e80b9Pavel Březina the Free Software Foundation; either version 3 of the License, or
e9eeb4302e0e426c6cc1a4e65b95a6f7066e80b9Pavel Březina (at your option) any later version.
e9eeb4302e0e426c6cc1a4e65b95a6f7066e80b9Pavel Březina This program is distributed in the hope that it will be useful,
e9eeb4302e0e426c6cc1a4e65b95a6f7066e80b9Pavel Březina but WITHOUT ANY WARRANTY; without even the implied warranty of
e9eeb4302e0e426c6cc1a4e65b95a6f7066e80b9Pavel Březina MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e9eeb4302e0e426c6cc1a4e65b95a6f7066e80b9Pavel Březina GNU General Public License for more details.
e9eeb4302e0e426c6cc1a4e65b95a6f7066e80b9Pavel Březina You should have received a copy of the GNU General Public License
e9eeb4302e0e426c6cc1a4e65b95a6f7066e80b9Pavel Březina along with this program. If not, see <http://www.gnu.org/licenses/>.
5d00ee0e07dea78806df780db69e94900e5bb8c0Jakub Hrozek/* Common functions from ldap_sudo.c */
5d00ee0e07dea78806df780db69e94900e5bb8c0Jakub Hrozek/* sdap async interface */
efe918d7cb27a6ac5901748fc1f5879e3296c012Pavel Březinastruct tevent_req *sdap_sudo_refresh_send(TALLOC_CTX *mem_ctx,
f143937efc6cbb1eb84042979c83dd5b3f23a40cPavel Březinaint sdap_sudo_refresh_recv(TALLOC_CTX *mem_ctx,
a13cf3d295a4a6654dfa7e4193c0a2bc8bb78e92Pavel Březinastruct tevent_req *sdap_sudo_full_refresh_send(TALLOC_CTX *mem_ctx,
a13cf3d295a4a6654dfa7e4193c0a2bc8bb78e92Pavel Březinaint sdap_sudo_full_refresh_recv(struct tevent_req *req,
a13cf3d295a4a6654dfa7e4193c0a2bc8bb78e92Pavel Březinastruct tevent_req *sdap_sudo_smart_refresh_send(TALLOC_CTX *mem_ctx,
a13cf3d295a4a6654dfa7e4193c0a2bc8bb78e92Pavel Březinaint sdap_sudo_smart_refresh_recv(struct tevent_req *req,
00fea5c2aaa0277bea522d2f61de75699ee2ed49Pavel Březinastruct tevent_req *sdap_sudo_rules_refresh_send(TALLOC_CTX *mem_ctx,
00fea5c2aaa0277bea522d2f61de75699ee2ed49Pavel Březinaint sdap_sudo_rules_refresh_recv(struct tevent_req *req,
a13cf3d295a4a6654dfa7e4193c0a2bc8bb78e92Pavel Březinasdap_sudo_ptask_setup(struct be_ctx *be_ctx, struct sdap_sudo_ctx *sudo_ctx);
5f73b623fc72e3b9b3590420825f30e618b4d4ddPavel Březina/* host info */
5f73b623fc72e3b9b3590420825f30e618b4d4ddPavel Březinastruct tevent_req * sdap_sudo_get_hostinfo_send(TALLOC_CTX *mem_ctx,
5f73b623fc72e3b9b3590420825f30e618b4d4ddPavel Březinaint sdap_sudo_get_hostinfo_recv(TALLOC_CTX *mem_ctx,
e9eeb4302e0e426c6cc1a4e65b95a6f7066e80b9Pavel Březina/* (&(objectClass=sudoRole)(|(cn=defaults)(sudoUser=ALL)%s)) */
e9eeb4302e0e426c6cc1a4e65b95a6f7066e80b9Pavel Březina#define SDAP_SUDO_FILTER_USER "(&(objectClass=%s)(|(%s=%s)(%s=ALL)%s))"
72985dbeba2d2eb8bc94d9ce62424aa6045c03cbPavel Březina#define SDAP_SUDO_FILTER_CLASS "(objectClass=%s)"
7a571a9d9be35360cc0f283fcd8124bda11ebf51Pavel Březina#define SDAP_SUDO_FILTER_DEFAULTS "(&(objectClass=%s)(%s=%s))"
e9eeb4302e0e426c6cc1a4e65b95a6f7066e80b9Pavel Březina#endif /* _SDAP_SUDO_H_ */