s3:idmap_ldap: allow creation of ldap stored mappings for explicitly configured domains.
authorMichael Adam <obnox@samba.org>
Tue, 31 May 2011 22:30:11 +0000 (00:30 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 31 May 2011 23:43:23 +0000 (01:43 +0200)
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().

source3/winbindd/idmap_ldap.c

index 3148f64e5d37e3af9f8ca4e7613865b299c8842f..a9cb4fc3c2c759f867a08d437d91a6dbcde461ce 100644 (file)
@@ -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,