/*
Authors:
Jakub Hrozek <jhrozek@redhat.com>
Copyright (C) 2011 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _SYSDB_SUDO_H_
#define _SYSDB_SUDO_H_
/* subdirs in cn=custom in sysdb. We don't store sudo stuff in sysdb directly
* b/c it's not name-service-switch data */
/* attribute of SUDORULE_SUBDIR
* should be true if we have downloaded all rules atleast once */
/* sysdb attributes */
/* sysdb ipa attributes */
/* When constructing a sysdb filter, OR these values to include.. */
struct sysdb_attrs **in_rules,
struct sysdb_attrs ***_rules);
char *
const char *username,
char **groupnames,
char *
char *
const char *username,
char **groupnames,
char *
const char *username,
char **groupnames,
struct sss_domain_info *domain,
const char *username,
const char **_orig_name,
char ***_groupnames);
const char *delete_filter,
struct sysdb_attrs **rules,
struct sysdb_attrs **rules,
struct sss_domain_info *domain,
const char *sub_filter,
const char **attrs,
struct ldb_message ***_msgs);
const char *name,
struct sysdb_attrs *attrs,
int mod_op);
#endif /* _SYSDB_SUDO_H_ */