1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

r15242: allow to use LDB_FLG_RECONNECT

This commit is contained in:
Simo Sorce 2006-04-25 12:34:58 +00:00 committed by Gerald (Jerry) Carter
parent 6fff8f871a
commit cdd14c2a27

View 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",