From c51252633b0ac95418e99f09e8ac995135d75811 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 7 Oct 2008 03:13:00 +0000 Subject: [PATCH] Accept X-starttls for prev commit --- libraries/libldap/request.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libraries/libldap/request.c b/libraries/libldap/request.c index d4076fddde..a7784771dc 100644 --- a/libraries/libldap/request.c +++ b/libraries/libldap/request.c @@ -370,6 +370,7 @@ find_tls_ext( LDAPURLDesc *srv ) crit = 1; } if ( !strcasecmp( ext, "StartTLS" ) || + !strcasecmp( ext, "X-StartTLS" ) || !strcmp( ext, LDAP_EXOP_START_TLS )) { return crit + 1; } @@ -1083,10 +1084,10 @@ ldap_chase_v3referrals( LDAP *ld, LDAPRequest *lr, char **refs, int sref, char * ok = 1; #endif if ( !ok ) { - /* we do not support any other extensions */ - ld->ld_errno = LDAP_NOT_SUPPORTED; - rc = -1; - goto done; + /* we do not support any other extensions */ + ld->ld_errno = LDAP_NOT_SUPPORTED; + rc = -1; + goto done; } } -- 2.39.5