summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-06-27 10:33:40 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-06-27 10:33:40 +0200
commitd0f31c590d0411678f7c6269b5af38a7522d28bd (patch)
tree593ca3e915bfff2a59f853330da54ae7ba471d9d
parent108227ca6c32b6fc61a08fb6299a1951206f2cd9 (diff)
downloadnextcloud-server-d0f31c590d0411678f7c6269b5af38a7522d28bd.tar.gz
nextcloud-server-d0f31c590d0411678f7c6269b5af38a7522d28bd.zip
Also invalidate groups after deletion
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--apps/user_ldap/lib/Group_LDAP.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/Group_LDAP.php b/apps/user_ldap/lib/Group_LDAP.php
index d9059b2372f..0b55f8a4e92 100644
--- a/apps/user_ldap/lib/Group_LDAP.php
+++ b/apps/user_ldap/lib/Group_LDAP.php
@@ -1134,8 +1134,17 @@ class Group_LDAP extends BackendUtility implements \OCP\GroupInterface, IGroupLD
if ($this->groupPluginManager->implementsActions(GroupInterface::CREATE_GROUP)) {
if ($dn = $this->groupPluginManager->createGroup($gid)) {
//updates group mapping
- $this->access->dn2ocname($dn, $gid, false);
- $this->access->connection->writeToCache("groupExists".$gid, true);
+ $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);
+ }
}
return $dn != null;
}