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>
Sat, 14 Aug 2010 00:10:53 +0000 (02:10 +0200)
The alloc subsystem is now subordinate to the idmap system.

source3/winbindd/idmap_ldap.c

index 9aa1925bc0dff50bf56d28f34390a786892b8692..95c1d2c6e01906603eed97f2747accc0d9a6baef 100644 (file)
@@ -593,6 +593,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;