Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix loop in creation of groupPath
Browse files Browse the repository at this point in the history
  • Loading branch information
c12simple committed Dec 2, 2015
1 parent b571eb2 commit 28ef2f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/plugins/auth.ldap/class.ldapAuthDriver.php
Expand Up @@ -510,8 +510,9 @@ public function listChildrenGroups($baseGroup = "/")
if (count($branch)) {
$parent = "/" . implode("/", array_reverse($branch));
}
AuthService::createGroup($parent, $dn, $login);

if(!ConfService::getConfStorageImpl()->groupExists(rtrim(AuthService::filterBaseGroup($parent), "/")."/".$dn)) {
AuthService::createGroup($parent, $dn, $login);
}
}
$this->ldapDN = $origUsersDN;
$this->ldapFilter = $origUsersFilter;
Expand Down

0 comments on commit 28ef2f4

Please sign in to comment.