From 03b0f279ed7d1ed7083e0c2301af94ff39f0e8a4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 17 Jun 2005 02:47:26 +0000 Subject: r7667: added a ldb ildap backend, using our internal ldap client library. Next step is to remove the check for the ldap libraries in configure (This used to be commit 74841dbb2a86bb1c584b5c26c4cd24a818a65a34) --- source4/lib/ldb/common/ldb.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/lib/ldb/common/ldb.c') diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index f5c6d551ea..2d0d09de3e 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -56,7 +56,11 @@ struct ldb_context *ldb_connect(const char *url, unsigned int flags, ldb_ctx = ltdb_connect(url, flags, options); } -#if HAVE_LDAP +#if HAVE_ILDAP + if (strncmp(url, "ldap", 4) == 0) { + ldb_ctx = ildb_connect(url, flags, options); + } +#elif HAVE_LDAP if (strncmp(url, "ldap", 4) == 0) { ldb_ctx = lldb_connect(url, flags, options); } -- cgit