This is a proposed patch for squid_auth_ldap, the authentication helper of the Squid Cache. It increases the maximum filter length to 32k and thus, enables long search filters. Wow:-)
# patch for squid-2.6.STABLE11, enables long search filters # author: Benjamin Schweizer# diff -r squid-2.6.STABLE11/helpers/basic_auth/LDAP/squid_ldap_auth.c \ squid-2.6.STABLE11-sickos/helpers/basic_auth/LDAP/squid_ldap_auth.c 32a33,34 > * 2007-05-09: Benjamin Schweizer> * - Increased buffer size to support long search filters. 343c345 < char buf[256]; --- > char buf[32768]; 566c568 < while (fgets(buf, 256, stdin) != NULL) { --- > while (fgets(buf, sizeof(buf), stdin) != NULL) { 653c655 < char filter[256]; --- > char filter[32768];
As of Aug 27, 2007, this patch is included in the cvs tree.
