]> git.sur5r.net Git - openldap/commitdiff
ITS#2253 - when StartTLS fails, slapd closes the connection so slurpd
authorHoward Chu <hyc@openldap.org>
Wed, 12 Mar 2003 04:38:12 +0000 (04:38 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 12 Mar 2003 04:38:12 +0000 (04:38 +0000)
must unbind and re-initialize the LDAP session.

servers/slurpd/ldap_op.c

index 7e4d4de498bab95b312dd14508ea8b991752f54a..a39df976f00e346e7646601be36df3bff4fb6196 100644 (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;
                }
        }