merging 6.8.6 bugfix
This commit is contained in:
parent
e6a172514d
commit
2ea770bd05
1 changed files with 8 additions and 2 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue