From: Amos Jeffries Date: Mon, 1 Mar 2010 11:13:48 +0000 (+1300) Subject: Author: Diego Woitasen X-Git-Tag: SQUID_3_1_0_18~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cafc73c13fe0063f346e343672bdf42b162ba131;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; }