summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-04-25 12:34:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:04:23 -0500
commitf7312bf37367ab9576842ac06de0f170455d08a8 (patch)
treeec899a9d707b7b410e23b02bee28e46929955246 /source4
parent13f17436ea98544315dcf119b0a395a8359fb3e9 (diff)
downloadsamba-f7312bf37367ab9576842ac06de0f170455d08a8.tar.gz
samba-f7312bf37367ab9576842ac06de0f170455d08a8.tar.bz2
samba-f7312bf37367ab9576842ac06de0f170455d08a8.zip
r15242: allow to use LDB_FLG_RECONNECT
(This used to be commit cdd14c2a277c6f2fb2aee21f91462d8ebe78693c)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/ldb_ildap/ldb_ildap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb_ildap/ldb_ildap.c b/source4/lib/ldb/ldb_ildap/ldb_ildap.c
index 3c6101bb1a..cc5416fc5a 100644
--- a/source4/lib/ldb/ldb_ildap/ldb_ildap.c
+++ b/source4/lib/ldb/ldb_ildap/ldb_ildap.c
@@ -1011,6 +1011,10 @@ static int ildb_connect(struct ldb_context *ldb, const char *url,
goto failed;
}
+ if (flags == LDB_FLG_RECONNECT) {
+ ldap_set_reconn_params(ildb->ldap, 10);
+ }
+
status = ldap_connect(ildb->ldap, url);
if (!NT_STATUS_IS_OK(status)) {
ldb_debug(ldb, LDB_DEBUG_ERROR, "Failed to connect to ldap URL '%s' - %s\n",