s3:idmap_tdb2: don't call smb_register_idmap_alloc() in idmap_tdb2_init
authorMichael Adam <obnox@samba.org>
Mon, 31 May 2010 09:24:52 +0000 (11:24 +0200)
committerMichael Adam <obnox@samba.org>
Sat, 14 Aug 2010 00:10:38 +0000 (02:10 +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_tdb2.c

index 048955954fd521204110cf96cd1b9fc69f4dbabf..e546d4459415a9c4c3a17a7347537ac647d9ddfc 100644 (file)
@@ -890,14 +890,5 @@ static struct idmap_alloc_methods db_alloc_methods = {
 
 NTSTATUS idmap_tdb2_init(void)
 {
-       NTSTATUS ret;
-
-       /* register both backends */
-       ret = smb_register_idmap_alloc(SMB_IDMAP_INTERFACE_VERSION, "tdb2", &db_alloc_methods);
-       if (! NT_STATUS_IS_OK(ret)) {
-               DEBUG(0, ("Unable to register idmap alloc tdb2 module: %s\n", get_friendly_nt_error_msg(ret)));
-               return ret;
-       }
-
        return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "tdb2", &db_methods);
 }