From a5657d94503b5da3fb9ed7cf8936a63aceae9da5 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 6 Jun 2009 21:59:08 +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 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; } -- 2.47.2