From: Amos Jeffries Date: Thu, 25 Feb 2010 00:27:32 +0000 (+1300) Subject: Author: Diego Woitasen X-Git-Tag: SQUID_3_2_0_1~404 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d355ba6d877c13d92ed2e86922ec4601bb568ac3;p=thirdparty%2Fsquid.git Author: Diego Woitasen Bug 2507: squid_ldap_group: Strip Domain name separated by + --- diff --git a/helpers/external_acl/ldap_group/squid_ldap_group.c b/helpers/external_acl/ldap_group/squid_ldap_group.c index abf970ef04..7420980562 100644 --- a/helpers/external_acl/ldap_group/squid_ldap_group.c +++ b/helpers/external_acl/ldap_group/squid_ldap_group.c @@ -476,6 +476,8 @@ main(int argc, char **argv) char *u = strrchr(user, '\\'); if (!u) u = strrchr(user, '/'); + if (!u) + u = strrchr(user, '+'); if (u && u[1]) user = u + 1; }