summaryrefslogtreecommitdiff
path: root/src/providers
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-08 00:04:09 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-15 10:53:02 +0100
commit9a7b6d3248c5aac460e164f2246b26131cfbc055 (patch)
tree065a47207357e613c760afd580154df57dd54907 /src/providers
parent2ca23577d3a25aead24ba759a1f6f67ffc24decf (diff)
downloadsssd-9a7b6d3248c5aac460e164f2246b26131cfbc055.tar.gz
sssd-9a7b6d3248c5aac460e164f2246b26131cfbc055.tar.bz2
sssd-9a7b6d3248c5aac460e164f2246b26131cfbc055.zip
Add domain argument to sysdb_idmap_ funcitons
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ldap/sdap_idmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_idmap.c b/src/providers/ldap/sdap_idmap.c
index e51fcc6b..b3109b8a 100644
--- a/src/providers/ldap/sdap_idmap.c
+++ b/src/providers/ldap/sdap_idmap.c
@@ -80,7 +80,7 @@ sdap_idmap_init(TALLOC_CTX *mem_ctx,
}
/* Read in any existing mappings from the cache */
- ret = sysdb_idmap_get_mappings(tmp_ctx, sysdb, &res);
+ ret = sysdb_idmap_get_mappings(tmp_ctx, sysdb, id_ctx->be->domain, &res);
if (ret != EOK && ret != ENOENT) {
DEBUG(SSSDBG_FATAL_FAILURE,
("Could not read ID mappings from the cache: [%s]\n",
@@ -314,6 +314,7 @@ sdap_idmap_add_domain(struct sdap_idmap_ctx *idmap_ctx,
/* Add this domain to the SYSDB cache so it will survive reboot */
ret = sysdb_idmap_store_mapping(idmap_ctx->id_ctx->be->sysdb,
+ idmap_ctx->id_ctx->be->domain,
dom_name, dom_sid,
new_slice->slice_num);
done: