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:
parent
6fff8f871a
commit
cdd14c2a27
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user