diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-09 17:06:08 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-21 22:17:33 +0100 |
commit | 8a81628d58dd2991d53398a213916671e14592d8 (patch) | |
tree | c3383f9b2247e10a478ea89cebe77212787e997d /src/providers/ipa/ipa_hbac_users.c | |
parent | 16ba62a78cd55d63a58be0b0d55b7b920a2a9853 (diff) | |
download | sssd-8a81628d58dd2991d53398a213916671e14592d8.tar.gz sssd-8a81628d58dd2991d53398a213916671e14592d8.tar.xz sssd-8a81628d58dd2991d53398a213916671e14592d8.zip |
Remove sysdb argument from hbac_user_attrs_to_rule()
Diffstat (limited to 'src/providers/ipa/ipa_hbac_users.c')
-rw-r--r-- | src/providers/ipa/ipa_hbac_users.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/providers/ipa/ipa_hbac_users.c b/src/providers/ipa/ipa_hbac_users.c index 727d57ed..a5fcaad4 100644 --- a/src/providers/ipa/ipa_hbac_users.c +++ b/src/providers/ipa/ipa_hbac_users.c @@ -142,7 +142,6 @@ done: errno_t hbac_user_attrs_to_rule(TALLOC_CTX *mem_ctx, - struct sysdb_ctx *sysdb, struct sss_domain_info *domain, const char *rule_name, struct sysdb_attrs *rule_attrs, @@ -226,7 +225,7 @@ hbac_user_attrs_to_rule(TALLOC_CTX *mem_ctx, } /* First check if this is a user */ - ret = sysdb_search_users(tmp_ctx, sysdb, domain, + ret = sysdb_search_users(tmp_ctx, domain->sysdb, domain, filter, attrs, &count, &msgs); if (ret != EOK && ret != ENOENT) goto done; if (ret == EOK && count == 0) { @@ -259,7 +258,7 @@ hbac_user_attrs_to_rule(TALLOC_CTX *mem_ctx, num_users++; } else { /* Check if it is a group instead */ - ret = sysdb_search_groups(tmp_ctx, sysdb, domain, + ret = sysdb_search_groups(tmp_ctx, domain->sysdb, domain, filter, attrs, &count, &msgs); if (ret != EOK && ret != ENOENT) goto done; if (ret == EOK && count == 0) { @@ -295,7 +294,8 @@ hbac_user_attrs_to_rule(TALLOC_CTX *mem_ctx, /* If the group still matches the group pattern, * we can assume it is a non-POSIX group. */ - ret = get_ipa_groupname(new_users->groups, sysdb, member_user, + ret = get_ipa_groupname(new_users->groups, domain->sysdb, + member_user, &new_users->groups[num_groups]); if (ret == EOK) { DEBUG(8, ("Added non-POSIX group [%s] to rule [%s]\n", |