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/providers/ldap/sdap_sudo_cache.c | |
parent | 965428847850f1b154130e249f2d942c6065e88d (diff) | |
download | sssd-b0fa48b0d612b46a86e45f8e4b5d9feae9784c2b.tar.gz sssd-b0fa48b0d612b46a86e45f8e4b5d9feae9784c2b.tar.bz2 sssd-b0fa48b0d612b46a86e45f8e4b5d9feae9784c2b.zip |
Add domain arguments to sysdb sudo functions
Diffstat (limited to 'src/providers/ldap/sdap_sudo_cache.c')
-rw-r--r-- | src/providers/ldap/sdap_sudo_cache.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_sudo_cache.c b/src/providers/ldap/sdap_sudo_cache.c index 499db02f..3c438b93 100644 --- a/src/providers/ldap/sdap_sudo_cache.c +++ b/src/providers/ldap/sdap_sudo_cache.c @@ -57,6 +57,7 @@ static errno_t sdap_sudo_get_usn(TALLOC_CTX *mem_ctx, static errno_t sdap_save_native_sudorule(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb_ctx, + struct sss_domain_info *domain, struct sdap_attr_map *map, struct sysdb_attrs *attrs, int cache_timeout, @@ -88,7 +89,7 @@ sdap_save_native_sudorule(TALLOC_CTX *mem_ctx, return ret; } - ret = sysdb_save_sudorule(sysdb_ctx, rule_name, attrs); + ret = sysdb_save_sudorule(sysdb_ctx, domain, rule_name, attrs); if (ret != EOK) { DEBUG(SSSDBG_OP_FAILURE, ("Could not save sudorule %s\n", rule_name)); return ret; @@ -100,6 +101,7 @@ sdap_save_native_sudorule(TALLOC_CTX *mem_ctx, errno_t sdap_save_native_sudorule_list(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb_ctx, + struct sss_domain_info *domain, struct sdap_attr_map *map, struct sysdb_attrs **replies, size_t replies_count, @@ -129,7 +131,8 @@ sdap_save_native_sudorule_list(TALLOC_CTX *mem_ctx, for (i=0; i<replies_count; i++) { usn_value = NULL; - ret = sdap_save_native_sudorule(tmp_ctx, sysdb_ctx, map, replies[i], + ret = sdap_save_native_sudorule(tmp_ctx, sysdb_ctx, + domain, map, replies[i], cache_timeout, now, &usn_value); if (ret != EOK) { goto fail; |