]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 26 May 2010 03:53:10 +0000 (15:53 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 26 May 2010 03:53:10 +0000 (15:53 +1200)
Change LDAP helpers to default to LDAP version 3 if available

World has moved on, and it's now not uncommon to find LDAP servers not
accepting the old version 2.

helpers/basic_auth/LDAP/squid_ldap_auth.8
helpers/basic_auth/LDAP/squid_ldap_auth.c
helpers/external_acl/ldap_group/squid_ldap_group.8
helpers/external_acl/ldap_group/squid_ldap_group.c

index 561e4be680561f96ce8e3f84b2526d1c71f392c3..899aa1ebe56b9d297da9a665e3ff42bc3e2cc94d 100644 (file)
@@ -146,7 +146,7 @@ server specificiation by using servername:port syntax.
 .
 .TP
 .BI -v " 2|3"
-LDAP protocol version. Defaults to 2 if not specified.
+LDAP protocol version. Defaults to 3 if not specified.
 .
 .TP
 .BI -Z
index b8db90e83b43979d552cbb4e5883b81f5f52bc93..2a5da1841b746719ca5b15ba3bb544b54e0ebb1a 100644 (file)
@@ -286,7 +286,7 @@ open_ldap_connection(const char *ldapServer, int port)
 
 #ifdef LDAP_VERSION3
     if (version == -1) {
-        version = LDAP_VERSION2;
+        version = LDAP_VERSION3;
     }
     if (ldap_set_option(ld, LDAP_OPT_PROTOCOL_VERSION, &version) != LDAP_SUCCESS) {
         fprintf(stderr, "Could not set LDAP_OPT_PROTOCOL_VERSION %d\n",
index a15fc8cc4d0d5d381df872e6be6abde754d74189..a5ccfd82e39b8f30f1155c165f36c31b245cc50a 100644 (file)
@@ -129,7 +129,7 @@ other than the default LDAP port 389.
 .
 .TP
 .BI -v " 2|3"
-LDAP protocol version. Defaults to 2 if not specified.
+LDAP protocol version. Defaults to 3 if not specified.
 .
 .TP
 .BI -Z
index d4f22816a5fa77ff62c332764fa6380e37495fa5..cb5686fa0f97c85e57d59f3878479bf815b64ee9 100644 (file)
@@ -534,7 +534,7 @@ recover:
 
 #ifdef LDAP_VERSION3
                 if (version == -1) {
-                    version = LDAP_VERSION2;
+                    version = LDAP_VERSION3;
                 }
                 if (ldap_set_option(ld, LDAP_OPT_PROTOCOL_VERSION, &version) != LDAP_SUCCESS) {
                     fprintf(stderr, "Could not set LDAP_OPT_PROTOCOL_VERSION %d\n",