diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/ldap_server/ldap_server.c | 2 | ||||
-rw-r--r-- | source4/nbt_server/wins/winsserver.c | 2 | ||||
-rw-r--r-- | source4/smbd/server.c | 5 |
3 files changed, 4 insertions, 5 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c index 247b877e1a..867f576827 100644 --- a/source4/ldap_server/ldap_server.c +++ b/source4/ldap_server/ldap_server.c @@ -548,8 +548,6 @@ static void ldapsrv_task_init(struct task_server *task) struct ldapsrv_service *ldap_service; NTSTATUS status; - ldb_global_init(); - ldap_service = talloc_zero(task, struct ldapsrv_service); if (ldap_service == NULL) goto failed; diff --git a/source4/nbt_server/wins/winsserver.c b/source4/nbt_server/wins/winsserver.c index 62e152e05c..85ffd7bce5 100644 --- a/source4/nbt_server/wins/winsserver.c +++ b/source4/nbt_server/wins/winsserver.c @@ -841,8 +841,6 @@ NTSTATUS nbtd_winsserver_init(struct nbtd_server *nbtsrv) return NT_STATUS_OK; } - ldb_global_init(); - nbtsrv->winssrv = talloc_zero(nbtsrv, struct wins_server); NT_STATUS_HAVE_NO_MEMORY(nbtsrv->winssrv); diff --git a/source4/smbd/server.c b/source4/smbd/server.c index 3036966f6a..057cdfd5e8 100644 --- a/source4/smbd/server.c +++ b/source4/smbd/server.c @@ -30,6 +30,7 @@ #include "system/dir.h" #include "system/filesys.h" #include "build.h" +#include "ldb/include/ldb.h" #include "registry/registry.h" #include "ntvfs/ntvfs.h" #include "ntptr/ntptr.h" @@ -225,7 +226,9 @@ static int binary_smbd_main(const char *binary_name, int argc, const char *argv[ exit(1); } - gensec_init(); + ldb_global_init(); /* FIXME: */ + + gensec_init(); /* FIXME: */ registry_init(); /* FIXME: maybe run this in the initialization function of the winreg RPC server instead? */ |