diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-07 23:33:45 -0500 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2013-01-11 10:43:13 -0500 |
commit | 01fcc0d22dbfeecddb991ed8269aeea14bb79295 (patch) | |
tree | c73e43f407fcc7b8be0a82ce94ea5fb93e2d54c9 /src/providers/ldap/ldap_id_cleanup.c | |
parent | 8d6c4b564f208fbefa863a1c201b01c97fb4ddd3 (diff) | |
download | sssd-01fcc0d22dbfeecddb991ed8269aeea14bb79295.tar.gz sssd-01fcc0d22dbfeecddb991ed8269aeea14bb79295.tar.xz sssd-01fcc0d22dbfeecddb991ed8269aeea14bb79295.zip |
Add domain argument to sysdb_search_groups()
Diffstat (limited to 'src/providers/ldap/ldap_id_cleanup.c')
-rw-r--r-- | src/providers/ldap/ldap_id_cleanup.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/providers/ldap/ldap_id_cleanup.c b/src/providers/ldap/ldap_id_cleanup.c index 77c4d94ee..103cca973 100644 --- a/src/providers/ldap/ldap_id_cleanup.c +++ b/src/providers/ldap/ldap_id_cleanup.c @@ -171,7 +171,8 @@ struct global_cleanup_state { static int cleanup_users(TALLOC_CTX *memctx, struct sdap_id_ctx *ctx); static int cleanup_groups(TALLOC_CTX *memctx, - struct sysdb_ctx *sysdb); + struct sysdb_ctx *sysdb, + struct sss_domain_info *domain); struct tevent_req *ldap_id_cleanup_send(TALLOC_CTX *memctx, struct tevent_context *ev, @@ -203,7 +204,8 @@ struct tevent_req *ldap_id_cleanup_send(TALLOC_CTX *memctx, } ret = cleanup_groups(state, - state->ctx->be->sysdb); + state->ctx->be->sysdb, + state->ctx->be->domain); if (ret) { goto fail; } @@ -380,7 +382,8 @@ static int cleanup_users_logged_in(hash_table_t *table, /* ==Group-Cleanup-Process================================================ */ static int cleanup_groups(TALLOC_CTX *memctx, - struct sysdb_ctx *sysdb) + struct sysdb_ctx *sysdb, + struct sss_domain_info *domain) { TALLOC_CTX *tmpctx; const char *attrs[] = { SYSDB_NAME, SYSDB_GIDNUM, NULL }; @@ -411,7 +414,7 @@ static int cleanup_groups(TALLOC_CTX *memctx, goto done; } - ret = sysdb_search_groups(tmpctx, sysdb, + ret = sysdb_search_groups(tmpctx, sysdb, domain, subfilter, attrs, &count, &msgs); if (ret) { if (ret == ENOENT) { |