s3:winbind:idmap_ldap: don't call idmap_alloc_ldap_init in idmap_ldap_init
authorMichael Adam <obnox@samba.org>
Mon, 31 May 2010 09:37:40 +0000 (11:37 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 31 May 2010 15:34:06 +0000 (17:34 +0200)
The registering of alloc backends is being removed.
The idmap backends are responsible for initializing
their alloc code on their own if necessary.

source3/winbindd/idmap_ldap.c

index eb3fe5c628125e3f183432d5d716e84a5d1e5440..f86dea3f543e74057af75efa704b7953d06bf764 100644 (file)
@@ -1315,14 +1315,6 @@ static NTSTATUS idmap_alloc_ldap_init(void)
 NTSTATUS idmap_ldap_init(void);
 NTSTATUS idmap_ldap_init(void)
 {
-       NTSTATUS ret;
-
-       /* FIXME: bad hack to actually register also the alloc_ldap module
-        * without changining configure.in */
-       ret = idmap_alloc_ldap_init();
-       if (! NT_STATUS_IS_OK(ret)) {
-               return ret;
-       }
        return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "ldap",
                                  &idmap_ldap_methods);
 }