summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-06-01 00:30:11 +0200
committerKarolin Seeger <kseeger@samba.org>2011-06-07 20:04:45 +0200
commit058d671a24af3f3da409b810fa2f525656369b4c (patch)
tree003db45c0c529d0d5d636f07c7b1d5ea2ec2ded7
parentd741e32d3efbf7df01f5e0f6b72f33a29ebf3fef (diff)
downloadsamba-058d671a24af3f3da409b810fa2f525656369b4c.tar.gz
s3:idmap_ldap: allow creation of ldap stored mappings for explicitly configured domains.
After the preparations, this is achieved by using idmap_ldap_allocate_id_internal() as get_new_id rw method instead of idmap_ldap_allocate_id(). (cherry picked from commit 74cd06b3dff42bda4dd0a0f3fd250a975d0258ed) The last 3 patches address bug #8200 (Add Support for multiple writable ldap idmap domains). (cherry picked from commit 5c19b41e2b844fddbb88fea8b7cd16bc0e830cfd)
-rw-r--r--source3/winbindd/idmap_ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/idmap_ldap.c b/source3/winbindd/idmap_ldap.c
index 3148f64e5d3..a9cb4fc3c2c 100644
--- a/source3/winbindd/idmap_ldap.c
+++ b/source3/winbindd/idmap_ldap.c
@@ -484,7 +484,7 @@ static NTSTATUS idmap_ldap_db_init(struct idmap_domain *dom)
ctx->rw_ops = talloc_zero(ctx, struct idmap_rw_ops);
CHECK_ALLOC_DONE(ctx->rw_ops);
- ctx->rw_ops->get_new_id = idmap_ldap_allocate_id;
+ ctx->rw_ops->get_new_id = idmap_ldap_allocate_id_internal;
ctx->rw_ops->set_mapping = idmap_ldap_set_mapping;
ret = smbldap_init(ctx, winbind_event_context(), ctx->url,