From: Amos Jeffries Date: Sat, 30 May 2009 13:46:54 +0000 (+1200) Subject: Author: Diego Woitasen xtech.com.ar> X-Git-Tag: SQUID_3_1_0_9~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a1ca6e3bb2a78cb115890f9f717e8e3dd154be2;p=thirdparty%2Fsquid.git Author: Diego Woitasen xtech.com.ar> Fix stripping NT domain in squid_ldap_group --- diff --git a/helpers/external_acl/ldap_group/squid_ldap_group.c b/helpers/external_acl/ldap_group/squid_ldap_group.c index 510ce4a7eb..b67dbc8871 100644 --- a/helpers/external_acl/ldap_group/squid_ldap_group.c +++ b/helpers/external_acl/ldap_group/squid_ldap_group.c @@ -471,9 +471,9 @@ main(int argc, char **argv) } 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; }