mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 06:59:54 -05:00
ITS#2253 - when StartTLS fails, slapd closes the connection so slurpd
must unbind and re-initialize the LDAP session.
This commit is contained in:
parent
8a8ae8bf85
commit
6694db8fd4
1 changed files with 3 additions and 0 deletions
|
|
@ -762,6 +762,7 @@ do_bind(
|
|||
return( BIND_ERR_BADRI );
|
||||
}
|
||||
|
||||
retry:
|
||||
if ( ri->ri_ldp != NULL ) {
|
||||
ldrc = ldap_unbind( ri->ri_ldp );
|
||||
if ( ldrc != LDAP_SUCCESS ) {
|
||||
|
|
@ -868,6 +869,8 @@ do_bind(
|
|||
ri->ri_ldp = NULL;
|
||||
return BIND_ERR_TLS_FAILED;
|
||||
}
|
||||
ri->ri_tls = TLS_OFF;
|
||||
goto retry;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue