ITS#2253 - when StartTLS fails, slapd closes the connection so slurpd

must unbind and re-initialize the LDAP session.
This commit is contained in:
Howard Chu 2003-03-12 04:38:12 +00:00
parent 8a8ae8bf85
commit 6694db8fd4

View file

@ -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;
}
}