From 2ea770bd05b97af41515c59c187c5e4b476be681 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Thu, 19 Jan 2006 23:07:54 +0000 Subject: [PATCH] merging 6.8.6 bugfix --- lib/WebGUI/User.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/User.pm b/lib/WebGUI/User.pm index 58b858570..59b56aefb 100644 --- a/lib/WebGUI/User.pm +++ b/lib/WebGUI/User.pm @@ -361,8 +361,14 @@ sub isInGroup { } else { $people = $ldapLink->getProperty($group->get("ldapGroup"),$group->get("ldapGroupProperty")); } - - if(isIn($params->{connectDN},@{$people})) { + my @peeps; + my $connectDn = lc($params->{connectDN}); + $connectDn =~ s/\s*,\s*/,/g; + foreach my $person (@{$people}) { + $person =~ s/\s*,\s*/,/g; + push(@peeps,lc($person)); + } + if(isIn($connectDn,@peeps)) { $isInGroup->{$uid}{$gid} = 1; if ($group->{'dbCacheTimeout'} > 10) { $group->deleteUsers([$uid]);