--------------------- PatchSet 12009 Date: 2008/03/18 02:59:15 Author: hno Branch: SQUID_2_6 Tag: (none) Log: Author: Diego Woitasen xtech.com.ar> Fix stripping NT domain in squid_ldap_group Members: helpers/external_acl/ldap_group/squid_ldap_group.c:1.14->1.14.2.1 Index: squid/helpers/external_acl/ldap_group/squid_ldap_group.c =================================================================== RCS file: /cvsroot/squid/squid/helpers/external_acl/ldap_group/squid_ldap_group.c,v retrieving revision 1.14 retrieving revision 1.14.2.1 diff -u -r1.14 -r1.14.2.1 --- squid/helpers/external_acl/ldap_group/squid_ldap_group.c 22 May 2006 20:42:04 -0000 1.14 +++ squid/helpers/external_acl/ldap_group/squid_ldap_group.c 18 Mar 2008 02:59:15 -0000 1.14.2.1 @@ -465,9 +465,9 @@ } rfc1738_unescape(user); if (strip_nt_domain) { - char *u = strchr(user, '\\'); + char *u = strrchr(user, '\\'); if (!u) - u = strchr(user, '/'); + u = strrchr(user, '/'); if (u && u[1]) user = u + 1; }