sdap_sudo.h revision fb67530ec34740a18f56ff56614898d2bdaee36f
08d6658a4e2ec8104cd1307f6baa75fdb07a24f8Mark Washenberger Pavel Březina <pbrezina@redhat.com>
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen Copyright (C) 2011 Red Hat
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen This program is free software; you can redistribute it and/or modify
5cda7e699876c1de203c30777924c899d2a20221Timo Sirainen it under the terms of the GNU General Public License as published by
419baa2c17c63ae516b2df6cc5695f15aaccbff8Timo Sirainen the Free Software Foundation; either version 3 of the License, or
419baa2c17c63ae516b2df6cc5695f15aaccbff8Timo Sirainen (at your option) any later version.
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen This program is distributed in the hope that it will be useful,
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainen but WITHOUT ANY WARRANTY; without even the implied warranty of
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen GNU General Public License for more details.
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen You should have received a copy of the GNU General Public License
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen along with this program. If not, see <http://www.gnu.org/licenses/>.
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen/* Common functions from ldap_sudo.c */
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen/* sdap async interface */
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainenstruct tevent_req *sdap_sudo_refresh_send(TALLOC_CTX *mem_ctx,
657afb33796f8216c568ad813627da89970760beTimo Sirainenint sdap_sudo_refresh_recv(TALLOC_CTX *mem_ctx,
226259ee6fb9830dafc1a5ba1e95bf5a4345b406Timo Sirainentypedef struct tevent_req * (*sdap_sudo_timer_fn_t)(TALLOC_CTX *mem_ctx,
a7bee3930831a9261fa6180d02af29c484d862e9Timo Sirainenstruct tevent_req * sdap_sudo_timer_send(TALLOC_CTX *mem_ctx,
419baa2c17c63ae516b2df6cc5695f15aaccbff8Timo Sirainen/* host info */
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainenstruct tevent_req * sdap_sudo_get_hostinfo_send(TALLOC_CTX *mem_ctx,
9261dbf0675204898c6557591c7aa376e23a52b2Timo Sirainenint sdap_sudo_get_hostinfo_recv(TALLOC_CTX *mem_ctx,
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainen/* (&(objectClass=sudoRole)(|(cn=defaults)(sudoUser=ALL)%s)) */
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainen#define SDAP_SUDO_FILTER_USER "(&(objectClass=%s)(|(%s=%s)(%s=ALL)%s))"
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainen#define SDAP_SUDO_FILTER_CLASS "(objectClass=%s)"
419baa2c17c63ae516b2df6cc5695f15aaccbff8Timo Sirainen#define SDAP_SUDO_FILTER_DEFAULTS "(&(objectClass=%s)(%s=%s))"
657afb33796f8216c568ad813627da89970760beTimo Sirainen#endif /* _SDAP_SUDO_H_ */