Also invalidate groups after deletion
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
9f48090545
commit
41e94f2f1f
|
@ -1133,9 +1133,18 @@ class Group_LDAP extends BackendUtility implements \OCP\GroupInterface, IGroupLD
|
||||||
if ($this->groupPluginManager->implementsActions(GroupInterface::CREATE_GROUP)) {
|
if ($this->groupPluginManager->implementsActions(GroupInterface::CREATE_GROUP)) {
|
||||||
if ($dn = $this->groupPluginManager->createGroup($gid)) {
|
if ($dn = $this->groupPluginManager->createGroup($gid)) {
|
||||||
//updates group mapping
|
//updates group mapping
|
||||||
$this->access->dn2ocname($dn, $gid, false);
|
$uuid = $this->access->getUUID($dn, false);
|
||||||
|
if(is_string($uuid)) {
|
||||||
|
$this->access->mapAndAnnounceIfApplicable(
|
||||||
|
$this->access->getGroupMapper(),
|
||||||
|
$dn,
|
||||||
|
$gid,
|
||||||
|
$uuid,
|
||||||
|
false
|
||||||
|
);
|
||||||
$this->access->connection->writeToCache("groupExists" . $gid, true);
|
$this->access->connection->writeToCache("groupExists" . $gid, true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return $dn != null;
|
return $dn != null;
|
||||||
}
|
}
|
||||||
throw new \Exception('Could not create group in LDAP backend.');
|
throw new \Exception('Could not create group in LDAP backend.');
|
||||||
|
|
Loading…
Reference in New Issue