Skip to content
Snippets Groups Projects
Commit 6694db8f authored by Howard Chu's avatar Howard Chu
Browse files

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

must unbind and re-initialize the LDAP session.
parent 8a8ae8bf
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment