From 6694db8fd4c5fd7221c8b92bcbd484c7842a0072 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 12 Mar 2003 04:38:12 +0000 Subject: [PATCH] ITS#2253 - when StartTLS fails, slapd closes the connection so slurpd must unbind and re-initialize the LDAP session. --- servers/slurpd/ldap_op.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/servers/slurpd/ldap_op.c b/servers/slurpd/ldap_op.c index 7e4d4de498..a39df976f0 100644 --- a/servers/slurpd/ldap_op.c +++ b/servers/slurpd/ldap_op.c @@ -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; } } -- 2.39.5