From cca1daeab18e0d39861c9337938185804a2db645 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 30 Dec 2005 06:48:16 +0000 Subject: r12595: There was no comment on the mailing list, so kill the 'ldapsrv:samdb' parameter. It isn't useful with so many other things in the ldap server opening the database directly. Best to run this as a seperate process, and change the global options. Andrew Bartlett (This used to be commit 34d6220cec763eefa9313f5a39ce7a73b238f7f0) --- source4/ldap_server/ldap_simple_ldb.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'source4') diff --git a/source4/ldap_server/ldap_simple_ldb.c b/source4/ldap_server/ldap_simple_ldb.c index a32cc3b5e0..806266b7a5 100644 --- a/source4/ldap_server/ldap_simple_ldb.c +++ b/source4/ldap_server/ldap_simple_ldb.c @@ -59,22 +59,6 @@ NTSTATUS sldb_Init(struct ldapsrv_partition *partition, struct ldapsrv_connectio { TALLOC_CTX *mem_ctx = talloc_new(partition); struct ldb_context *ldb; - const char *url; - url = lp_parm_string(-1, "ldapsrv", "samdb"); - if (url) { - - ldb = ldb_wrap_connect(mem_ctx, url, conn->session_info, - NULL, 0, NULL); - if (ldb == NULL) { - talloc_free(mem_ctx); - return NT_STATUS_INTERNAL_DB_CORRUPTION; - } - talloc_steal(partition, ldb); - partition->private = ldb; - talloc_free(mem_ctx); - return NT_STATUS_OK; - } - ldb = samdb_connect(mem_ctx, conn->session_info); if (ldb == NULL) { talloc_free(mem_ctx); -- cgit