From: Amos Jeffries Date: Sat, 30 May 2009 13:04:44 +0000 (+1200) Subject: Author: Diego Woitasen xtech.com.ar> X-Git-Tag: SQUID_3_2_0_1~993 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=92333948594da80ecbd716cafd48698f81b21324;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 346f406248..215e401d99 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; }