r15242: allow to use LDB_FLG_RECONNECT
authorSimo Sorce <idra@samba.org>
Tue, 25 Apr 2006 12:34:58 +0000 (12:34 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:04:23 +0000 (14:04 -0500)
(This used to be commit cdd14c2a277c6f2fb2aee21f91462d8ebe78693c)

source4/lib/ldb/ldb_ildap/ldb_ildap.c

index 3c6101bb1a08cd689ea87b8761d3406b0e0dc1ce..cc5416fc5a30bda28d5e95fcbb8e5de56ea778f3 100644 (file)
@@ -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",