summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common/ldb.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/ldb/common/ldb.c')
-rw-r--r--source4/lib/ldb/common/ldb.c6
1 files changed, 5 insertions, 1 deletions
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);
}