From: Amos Jeffries Date: Sat, 6 Jun 2009 09:59:08 +0000 (+1200) Subject: Author: Diego Woitasen xtech.com.ar> X-Git-Tag: SQUID_3_0_STABLE16~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5657d94503b5da3fb9ed7cf8936a63aceae9da5;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 de83da9c1c..62a8c4baf6 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; }