summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-10-16 11:33:05 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-11-15 20:20:18 +0100
commit7d056853e4a5fe6daa5743e38d21b4493f4fca27 (patch)
tree8b579eb738b55974209a9a6f5e6f6c7e02476320 /src/providers
parent4c08db0fb0dda3d27b1184248ca5c800d7ce23f0 (diff)
downloadsssd-7d056853e4a5fe6daa5743e38d21b4493f4fca27.tar.gz
sssd-7d056853e4a5fe6daa5743e38d21b4493f4fca27.tar.xz
sssd-7d056853e4a5fe6daa5743e38d21b4493f4fca27.zip
SYSDB: Drop the sysdb_ctx parameter from the sysdb_idmap module
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ldap/sdap_idmap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/providers/ldap/sdap_idmap.c b/src/providers/ldap/sdap_idmap.c
index 249201def..871b8e0bf 100644
--- a/src/providers/ldap/sdap_idmap.c
+++ b/src/providers/ldap/sdap_idmap.c
@@ -143,7 +143,6 @@ sdap_idmap_init(TALLOC_CTX *mem_ctx,
id_t rangesize;
bool autorid_mode;
struct sdap_idmap_ctx *idmap_ctx = NULL;
- struct sysdb_ctx *sysdb = id_ctx->be->domain->sysdb;
tmp_ctx = talloc_new(NULL);
if (!tmp_ctx) return ENOMEM;
@@ -223,7 +222,7 @@ sdap_idmap_init(TALLOC_CTX *mem_ctx,
}
/* Read in any existing mappings from the cache */
- ret = sysdb_idmap_get_mappings(tmp_ctx, sysdb, id_ctx->be->domain, &res);
+ ret = sysdb_idmap_get_mappings(tmp_ctx, id_ctx->be->domain, &res);
if (ret != EOK && ret != ENOENT) {
DEBUG(SSSDBG_FATAL_FAILURE,
("Could not read ID mappings from the cache: [%s]\n",
@@ -383,8 +382,7 @@ sdap_idmap_add_domain(struct sdap_idmap_ctx *idmap_ctx,
/* If algorithmic mapping is used add this domain to the SYSDB cache so it
* will survive reboot */
if (!external_mapping) {
- ret = sysdb_idmap_store_mapping(idmap_ctx->id_ctx->be->domain->sysdb,
- idmap_ctx->id_ctx->be->domain,
+ ret = sysdb_idmap_store_mapping(idmap_ctx->id_ctx->be->domain,
dom_name, dom_sid,
slice);
if (ret != EOK) {