diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-06 18:24:12 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 10:49:20 +0100 |
commit | 2ce00e0d3896bb42db169d1e79553a81ca837a22 (patch) | |
tree | 4680fe9905816d67d70169ccc378f41545db8352 /src/providers/proxy | |
parent | 5d78919c955c945e78865f322726aac075c71203 (diff) | |
download | sssd-2ce00e0d3896bb42db169d1e79553a81ca837a22.tar.gz sssd-2ce00e0d3896bb42db169d1e79553a81ca837a22.tar.bz2 sssd-2ce00e0d3896bb42db169d1e79553a81ca837a22.zip |
Add domain to sysdb_search_user_by_name()
Also remove unused sysdb_search_domuser_by_name()
Diffstat (limited to 'src/providers/proxy')
-rw-r--r-- | src/providers/proxy/proxy_id.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/providers/proxy/proxy_id.c b/src/providers/proxy/proxy_id.c index 76f27955..57449417 100644 --- a/src/providers/proxy/proxy_id.c +++ b/src/providers/proxy/proxy_id.c @@ -515,6 +515,7 @@ done: static errno_t proxy_process_missing_users(struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, struct sysdb_attrs *group_attrs, struct group *grp, time_t now); @@ -561,7 +562,7 @@ static int save_group(struct sysdb_ctx *sysdb, struct sss_domain_info *dom, } /* Create ghost users */ - ret = proxy_process_missing_users(sysdb, attrs, grp, now); + ret = proxy_process_missing_users(sysdb, dom, attrs, grp, now); if (ret != EOK) { DEBUG(SSSDBG_OP_FAILURE, ("Could not add missing members\n")); goto done; @@ -642,6 +643,7 @@ done: } static errno_t proxy_process_missing_users(struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, struct sysdb_attrs *group_attrs, struct group *grp, time_t now) @@ -657,8 +659,8 @@ static errno_t proxy_process_missing_users(struct sysdb_ctx *sysdb, if (!tmp_ctx) return ENOMEM; for (i = 0; grp->gr_mem[i]; i++) { - ret = sysdb_search_user_by_name(tmp_ctx, sysdb, grp->gr_mem[i], - NULL, &msg); + ret = sysdb_search_user_by_name(tmp_ctx, sysdb, domain, + grp->gr_mem[i], NULL, &msg); if (ret == EOK) { /* Member already exists in the cache */ DEBUG(SSSDBG_TRACE_INTERNAL, |