s3:idmap_ldap: call idmap_ldap_alloc_init from idmap_ldap_init.
authorMichael Adam <obnox@samba.org>
Thu, 17 Jun 2010 17:17:48 +0000 (19:17 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 23 Jun 2010 10:22:19 +0000 (12:22 +0200)
The alloc subsystem is now subordinate to the idmap system.

source3/winbindd/idmap_ldap.c

index a90e920a86005f46bc8ca11291663a54fc4ba914..24defc99c48eaa25d02c273133638f8d5302d275 100644 (file)
@@ -595,6 +595,13 @@ static NTSTATUS idmap_ldap_db_init(struct idmap_domain *dom,
 
        dom->private_data = ctx;
 
+       ret = idmap_ldap_alloc_init(dom, params);
+       if (!NT_STATUS_IS_OK(ret)) {
+               DEBUG(1, ("idmap_ldap_db_init: Failed to initialize alloc "
+                         "subsystem: %s\n", nt_errstr(ret)));
+               goto done;
+       }
+
        talloc_free(config_option);
        return NT_STATUS_OK;