diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-09 16:23:25 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-21 22:17:33 +0100 |
commit | df0596ec12bc5091608371e2977f3111241e8caf (patch) | |
tree | e659ecee1bb913e4648a4313ffab1d0c1794da19 /src/providers/ldap/ldap_id_cleanup.c | |
parent | 7a468783159880f81f7cd9270ee94bf0954d6a56 (diff) | |
download | sssd-df0596ec12bc5091608371e2977f3111241e8caf.tar.gz sssd-df0596ec12bc5091608371e2977f3111241e8caf.tar.xz sssd-df0596ec12bc5091608371e2977f3111241e8caf.zip |
Remove sysdb as a be context structure member
The sysdb context is already available through the 'domain' structure.
Diffstat (limited to 'src/providers/ldap/ldap_id_cleanup.c')
-rw-r--r-- | src/providers/ldap/ldap_id_cleanup.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/providers/ldap/ldap_id_cleanup.c b/src/providers/ldap/ldap_id_cleanup.c index b220069aa..534e2ee01 100644 --- a/src/providers/ldap/ldap_id_cleanup.c +++ b/src/providers/ldap/ldap_id_cleanup.c @@ -191,7 +191,7 @@ struct tevent_req *ldap_id_cleanup_send(TALLOC_CTX *memctx, ctx->last_purge = tevent_timeval_current(); - ret = sysdb_transaction_start(state->ctx->be->sysdb); + ret = sysdb_transaction_start(state->ctx->be->domain->sysdb); if (ret != EOK) { DEBUG(SSSDBG_CRIT_FAILURE, ("Failed to start transaction\n")); goto fail; @@ -204,13 +204,13 @@ struct tevent_req *ldap_id_cleanup_send(TALLOC_CTX *memctx, } ret = cleanup_groups(state, - state->ctx->be->sysdb, + state->ctx->be->domain->sysdb, state->ctx->be->domain); if (ret) { goto fail; } - ret = sysdb_transaction_commit(state->ctx->be->sysdb); + ret = sysdb_transaction_commit(state->ctx->be->domain->sysdb); if (ret != EOK) { DEBUG(SSSDBG_CRIT_FAILURE, ("Failed to commit transaction\n")); goto fail; @@ -225,7 +225,7 @@ fail: DEBUG(1, ("Failed to cleanup caches (%d [%s]), retrying later!\n", (int)ret, strerror(ret))); if (in_transaction) { - ret = sysdb_transaction_cancel(state->ctx->be->sysdb); + ret = sysdb_transaction_cancel(state->ctx->be->domain->sysdb); if (ret != EOK) { DEBUG(1, ("Could not cancel transaction\n")); tevent_req_error(req, ret); @@ -247,7 +247,7 @@ static int cleanup_users_logged_in(hash_table_t *table, static int cleanup_users(TALLOC_CTX *memctx, struct sdap_id_ctx *ctx) { TALLOC_CTX *tmpctx; - struct sysdb_ctx *sysdb = ctx->be->sysdb; + struct sysdb_ctx *sysdb = ctx->be->domain->sysdb; const char *attrs[] = { SYSDB_NAME, SYSDB_UIDNUM, NULL }; time_t now = time(NULL); char *subfilter = NULL; |