#332 moved create group with same name

This commit is contained in:
Roland Gruber 2024-11-05 20:54:07 +01:00
parent a671b73a80
commit 929fe3f48c

View file

@ -686,6 +686,7 @@ class posixAccount extends baseModule implements passwordService, AccountStatusP
$accountContainerTmp->new_account(); $accountContainerTmp->new_account();
$posixGroupModule = $accountContainerTmp->getAccountModule('posixGroup'); $posixGroupModule = $accountContainerTmp->getAccountModule('posixGroup');
$nextGid = $posixGroupModule->getNextGIDs(1, $errors, $groupType); $nextGid = $posixGroupModule->getNextGIDs(1, $errors, $groupType);
unset($_SESSION[$sessionKey]);
if ($nextGid !== null) { if ($nextGid !== null) {
$dnNewGroup = 'cn=' . $newGroupName . ',' . $groupType->getSuffix(); $dnNewGroup = 'cn=' . $newGroupName . ',' . $groupType->getSuffix();
$attributesNewGroup = [ $attributesNewGroup = [