git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fff8f8
)
r15242: allow to use LDB_FLG_RECONNECT
author
Simo Sorce
<idra@samba.org>
Tue, 25 Apr 2006 12:34:58 +0000
(12:34 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:04:23 +0000
(14:04 -0500)
source/lib/ldb/ldb_ildap/ldb_ildap.c
patch
|
blob
|
history
diff --git
a/source/lib/ldb/ldb_ildap/ldb_ildap.c
b/source/lib/ldb/ldb_ildap/ldb_ildap.c
index 3c6101bb1a08cd689ea87b8761d3406b0e0dc1ce..cc5416fc5a30bda28d5e95fcbb8e5de56ea778f3 100644
(file)
--- a/
source/lib/ldb/ldb_ildap/ldb_ildap.c
+++ b/
source/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",