From 8a1ca6e3bb2a78cb115890f9f717e8e3dd154be2 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sun, 31 May 2009 01:46:54 +1200 Subject: [PATCH] Author: Diego Woitasen xtech.com.ar> Fix stripping NT domain in squid_ldap_group --- helpers/external_acl/ldap_group/squid_ldap_group.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.3