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/data_provider_be.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/data_provider_be.c')
-rw-r--r-- | src/providers/data_provider_be.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c index 91750ace..748b1c12 100644 --- a/src/providers/data_provider_be.c +++ b/src/providers/data_provider_be.c @@ -664,7 +664,7 @@ static errno_t be_initgroups_prereq(struct be_req *be_req) const char *tmpstr; int i; - ret = sysdb_initgroups(be_req, be_req->be_ctx->sysdb, + ret = sysdb_initgroups(be_req, be_req->be_ctx->domain->sysdb, be_req->be_ctx->domain, ar->filter_value, &res); if (ret && ret != ENOENT) { return ret; @@ -1041,7 +1041,7 @@ static int be_pam_handler(DBusMessage *message, struct sbus_connection *conn) be_req->fn = be_pam_handler_callback; be_req->pvt = reply; be_req->domain = be_req->be_ctx->domain; - be_req->sysdb = be_req->be_ctx->sysdb; + be_req->sysdb = be_req->be_ctx->domain->sysdb; dbus_error_init(&dbus_error); @@ -2352,7 +2352,6 @@ int be_process_init(TALLOC_CTX *mem_ctx, DEBUG(SSSDBG_FATAL_FAILURE, ("fatal error opening cache database\n")); goto fail; } - ctx->sysdb = ctx->domain->sysdb; ret = sss_monitor_init(ctx, ctx->ev, &monitor_be_interface, ctx->identity, DATA_PROVIDER_VERSION, |