diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-08 01:25:47 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 10:53:03 +0100 |
commit | b0fa48b0d612b46a86e45f8e4b5d9feae9784c2b (patch) | |
tree | 8df34df06567f926284a27b775fb923b39bc4a6d /src/db/sysdb_sudo.h | |
parent | 965428847850f1b154130e249f2d942c6065e88d (diff) | |
download | sssd-b0fa48b0d612b46a86e45f8e4b5d9feae9784c2b.tar.gz sssd-b0fa48b0d612b46a86e45f8e4b5d9feae9784c2b.tar.xz sssd-b0fa48b0d612b46a86e45f8e4b5d9feae9784c2b.zip |
Add domain arguments to sysdb sudo functions
Diffstat (limited to 'src/db/sysdb_sudo.h')
-rw-r--r-- | src/db/sysdb_sudo.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/db/sysdb_sudo.h b/src/db/sysdb_sudo.h index 60911b6e1..da0192409 100644 --- a/src/db/sysdb_sudo.h +++ b/src/db/sysdb_sudo.h @@ -72,19 +72,26 @@ sysdb_get_sudo_filter(TALLOC_CTX *mem_ctx, const char *username, char **_filter); errno_t -sysdb_get_sudo_user_info(TALLOC_CTX *mem_ctx, const char *username, - struct sysdb_ctx *sysdb, uid_t *_uid, +sysdb_get_sudo_user_info(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, + const char *username, uid_t *_uid, char ***groupnames); errno_t -sysdb_save_sudorule(struct sysdb_ctx *sysdb_ctx, - const char *rule_name, - struct sysdb_attrs *attrs); - -errno_t sysdb_sudo_set_last_full_refresh(struct sysdb_ctx *sysdb, time_t value); -errno_t sysdb_sudo_get_last_full_refresh(struct sysdb_ctx *sysdb, time_t *value); +sysdb_save_sudorule(struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, + const char *rule_name, + struct sysdb_attrs *attrs); + +errno_t sysdb_sudo_set_last_full_refresh(struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, + time_t value); +errno_t sysdb_sudo_get_last_full_refresh(struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, + time_t *value); errno_t sysdb_sudo_purge_byname(struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, const char *name); errno_t sysdb_sudo_purge_byfilter(struct sysdb_ctx *sysdb, |