diff --git a/source/lib/ldb/ldb_ildap/ldb_ildap.c b/source/lib/ldb/ldb_ildap/ldb_ildap.c index 3c6101bb1a0..cc5416fc5a3 100644 --- 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",