diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-06-27 10:33:40 +0200 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-06-27 10:22:33 +0000 |
commit | a9c2a4285c508e5bf58faefadeb6a1c7bcda83c6 (patch) | |
tree | e889d9cad9edf6cd9daf428356131c8ec1610f1b | |
parent | 8d5a4bc0c4793cbc82da9164720852ce1d6b0d9c (diff) | |
download | nextcloud-server-a9c2a4285c508e5bf58faefadeb6a1c7bcda83c6.tar.gz nextcloud-server-a9c2a4285c508e5bf58faefadeb6a1c7bcda83c6.zip |
Also invalidate groups after deletion
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r-- | apps/user_ldap/lib/Group_LDAP.php | 13 |
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 0780e28f740..2ce35c8f0ef 100644 --- a/apps/user_ldap/lib/Group_LDAP.php +++ b/apps/user_ldap/lib/Group_LDAP.php @@ -1133,8 +1133,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; } |