refactoring

This commit is contained in:
Roland Gruber 2025-07-30 21:06:39 +02:00
parent 619edae19b
commit 1f3ef9d824
2 changed files with 9 additions and 1 deletions

View file

@ -674,6 +674,7 @@ class posixAccount extends baseModule implements passwordService, AccountStatusP
$posixGroupModule = $posixGroupRfc2307bisModule; $posixGroupModule = $posixGroupRfc2307bisModule;
$isRfc2307bis = true; $isRfc2307bis = true;
} }
$errors = [];
$nextGid = $posixGroupModule->getNextGIDs(1, $errors, $groupType); $nextGid = $posixGroupModule->getNextGIDs(1, $errors, $groupType);
unset($_SESSION[$sessionKey]); unset($_SESSION[$sessionKey]);
if ($nextGid !== null) { if ($nextGid !== null) {

View file

@ -18,6 +18,7 @@ parameters:
- lam/lib/modules/shadowAccount.inc - lam/lib/modules/shadowAccount.inc
- lam/lib/modules/windowsUser.inc - lam/lib/modules/windowsUser.inc
analyseAndScan: analyseAndScan:
- lam/templates/config/job*.php (?)
- lam/templates/lists/changePassword.php (?) - lam/templates/lists/changePassword.php (?)
- lam/templates/selfService/*.php (?) - lam/templates/selfService/*.php (?)
- lam/lib/cron.inc (?) - lam/lib/cron.inc (?)
@ -30,12 +31,17 @@ parameters:
- lam/lib/modules/groupOfNamesUser.inc (?) - lam/lib/modules/groupOfNamesUser.inc (?)
- lam/lib/modules/groupOfUniqueNames.inc (?) - lam/lib/modules/groupOfUniqueNames.inc (?)
- lam/lib/modules/guacamole.inc (?) - lam/lib/modules/guacamole.inc (?)
- lam/lib/modules/heimdalKerberos.inc (?)
- lam/lib/modules/mitKerberos.inc (?)
- lam/lib/modules/mitKerberosStructural.inc (?)
- lam/lib/modules/qmailUser.inc (?) - lam/lib/modules/qmailUser.inc (?)
- lam/lib/modules/passwordSelfReset.inc (?) - lam/lib/modules/passwordSelfReset.inc (?)
- lam/lib/modules/ppolicyUser.inc (?) - lam/lib/modules/ppolicyUser.inc (?)
- lam/lib/modules/lastBind.inc (?) - lam/lib/modules/lastBind.inc (?)
- lam/lib/modules/locking389ds.inc (?) - lam/lib/modules/locking389ds.inc (?)
- lam/lib/modules/rfc2307bisPosixGroup.inc (?)
- lam/lib/plugins/extendedInvalidCredentials/Locking389DsExtraInvalidCredentialsProvider.inc (?) - lam/lib/plugins/extendedInvalidCredentials/Locking389DsExtraInvalidCredentialsProvider.inc (?)
- lam/lib/plugins/extendedInvalidCredentials/MitKerberosExtraInvalidCredentialsProvider.inc (?)
ignoreErrors: ignoreErrors:
- '#Variable \$helpArray might not be defined.#' - '#Variable \$helpArray might not be defined.#'
- '#Offset .SID. on array.*in isset\(\) always exists.*#' - '#Offset .SID. on array.*in isset\(\) always exists.*#'
@ -45,7 +51,6 @@ parameters:
- '#.*class LAM\\JOB\\.* not found.*#' - '#.*class LAM\\JOB\\.* not found.*#'
- '#.*class LAM\\ENV\\.* not found.*#' - '#.*class LAM\\ENV\\.* not found.*#'
- '#.*class LAM\\DB\\CronDatabase.* not found.*#' - '#.*class LAM\\DB\\CronDatabase.* not found.*#'
- '#.*Function LAM\\JOB\\.* not found.*#'
- '#Call to .*method .* on an unknown class LAM\\ENV\\.*#' - '#Call to .*method .* on an unknown class LAM\\ENV\\.*#'
- '#Call to .*method .* on an unknown class LAM\\JOB\\.*#' - '#Call to .*method .* on an unknown class LAM\\JOB\\.*#'
- '#Call to .*method .* on an unknown class LAM\\DB\\CronDatabase.*#' - '#Call to .*method .* on an unknown class LAM\\DB\\CronDatabase.*#'
@ -53,3 +58,5 @@ parameters:
- '#.* has invalid type LAM\\DB\\.*#' - '#.* has invalid type LAM\\DB\\.*#'
- '#Call to an undefined method baseModule::getBackupEmail\(\).#' - '#Call to an undefined method baseModule::getBackupEmail\(\).#'
- '#Call to an undefined method baseModule::getMembers\(\).#' - '#Call to an undefined method baseModule::getMembers\(\).#'
- '#Call to an undefined method baseModule::getNextGIDs\(\).#'
- '#Call to an undefined method baseModule::setExpirationDate\(\).#'