From: hno <> Date: Sat, 3 Apr 2004 22:05:20 +0000 (+0000) Subject: Bug #887: LDAP helpers TLS mode does not work X-Git-Tag: SQUID_3_0_PRE4~1122 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8be39ec976a9d87a3a896f95ac2744e4d7c46e76;p=thirdparty%2Fsquid.git Bug #887: LDAP helpers TLS mode does not work The TLS mode of the LDAP helpers did not work and always reported "TLS Connection failed" --- diff --git a/helpers/basic_auth/LDAP/squid_ldap_auth.c b/helpers/basic_auth/LDAP/squid_ldap_auth.c index d091cdbc2d..6a9dec01e8 100644 --- a/helpers/basic_auth/LDAP/squid_ldap_auth.c +++ b/helpers/basic_auth/LDAP/squid_ldap_auth.c @@ -445,7 +445,7 @@ main(int argc, char **argv) exit(1); } - if ( use_tls && ( version == LDAP_VERSION3 ) && ( ldap_start_tls_s( ld, NULL, NULL ) == LDAP_SUCCESS )) { + if ( use_tls && ( version == LDAP_VERSION3 ) && ( ldap_start_tls_s( ld, NULL, NULL ) != LDAP_SUCCESS )) { fprintf( stderr, "Could not Activate TLS connection\n"); exit(1); } diff --git a/helpers/external_acl/ldap_group/squid_ldap_group.c b/helpers/external_acl/ldap_group/squid_ldap_group.c index 07df42b387..98b9251b7e 100644 --- a/helpers/external_acl/ldap_group/squid_ldap_group.c +++ b/helpers/external_acl/ldap_group/squid_ldap_group.c @@ -488,7 +488,7 @@ main(int argc, char **argv) ld = NULL; break; } - if (use_tls && (version == LDAP_VERSION3) && (ldap_start_tls_s(ld, NULL, NULL) == LDAP_SUCCESS)) { + if (use_tls && (version == LDAP_VERSION3) && (ldap_start_tls_s(ld, NULL, NULL) != LDAP_SUCCESS)) { fprintf(stderr, "Could not Activate TLS connection\n"); ldap_unbind(ld); ld = NULL;