mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 05:30:07 -05:00
use keepalive stuff when connecting as a client via bindconf (second part of ITS#6389)
This commit is contained in:
parent
14c3f7de57
commit
f59337655e
1 changed files with 12 additions and 0 deletions
|
|
@ -1852,6 +1852,18 @@ slap_client_connect( LDAP **ldp, slap_bindconf *sb )
|
|||
ldap_set_option( ld, LDAP_OPT_NETWORK_TIMEOUT, &tv );
|
||||
}
|
||||
|
||||
if ( sb->sb_keepalive.sk_idle ) {
|
||||
ldap_set_option( ld, LDAP_OPT_X_KEEPALIVE_IDLE, &sb->sb_keepalive.sk_idle );
|
||||
}
|
||||
|
||||
if ( sb->sb_keepalive.sk_probes ) {
|
||||
ldap_set_option( ld, LDAP_OPT_X_KEEPALIVE_PROBES, &sb->sb_keepalive.sk_probes );
|
||||
}
|
||||
|
||||
if ( sb->sb_keepalive.sk_interval ) {
|
||||
ldap_set_option( ld, LDAP_OPT_X_KEEPALIVE_INTERVAL, &sb->sb_keepalive.sk_interval );
|
||||
}
|
||||
|
||||
#ifdef HAVE_TLS
|
||||
if ( sb->sb_tls_do_init ) {
|
||||
rc = bindconf_tls_set( sb, ld );
|
||||
|
|
|
|||
Loading…
Reference in a new issue