From 929fe3f48ca2bcade35ce19aee5844df65b2edbe Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 5 Nov 2024 20:54:07 +0100 Subject: [PATCH] #332 moved create group with same name --- lam/lib/modules/posixAccount.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index aca3eea87..59d03bb1f 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -686,6 +686,7 @@ class posixAccount extends baseModule implements passwordService, AccountStatusP $accountContainerTmp->new_account(); $posixGroupModule = $accountContainerTmp->getAccountModule('posixGroup'); $nextGid = $posixGroupModule->getNextGIDs(1, $errors, $groupType); + unset($_SESSION[$sessionKey]); if ($nextGid !== null) { $dnNewGroup = 'cn=' . $newGroupName . ',' . $groupType->getSuffix(); $attributesNewGroup = [