*** empty log message ***
This commit is contained in:
parent
5dfc8ebea7
commit
68943fb545
|
@ -458,22 +458,22 @@ function checkid($values, $type, $values_old=false) { // if value is empty will
|
||||||
case 'user':
|
case 'user':
|
||||||
$ObjectClass = 'PosixAccount';
|
$ObjectClass = 'PosixAccount';
|
||||||
$search = 'uidNumber';
|
$search = 'uidNumber';
|
||||||
$minID = $_SESSION['config']->get_minUID();
|
$minID = intval($_SESSION['config']->get_minUID());
|
||||||
$maxID = $_SESSION['config']->get_maxUID();
|
$maxID = intval($_SESSION['config']->get_maxUID());
|
||||||
$suffix = $_SESSION['config']->get_UserSuffix();
|
$suffix = $_SESSION['config']->get_UserSuffix();
|
||||||
break;
|
break;
|
||||||
case 'group':
|
case 'group':
|
||||||
$ObjectClass = 'PosixGroup';
|
$ObjectClass = 'PosixGroup';
|
||||||
$search = 'gidNumber';
|
$search = 'gidNumber';
|
||||||
$minID = $_SESSION['config']->get_MinGID();
|
$minID = intval($_SESSION['config']->get_MinGID());
|
||||||
$maxID = $_SESSION['config']->get_MaxGID();
|
$maxID = intval($_SESSION['config']->get_MaxGID());
|
||||||
$suffix = $_SESSION['config']->get_GroupSuffix();
|
$suffix = $_SESSION['config']->get_GroupSuffix();
|
||||||
break;
|
break;
|
||||||
case 'host':
|
case 'host':
|
||||||
$ObjectClass = 'PosixAccount';
|
$ObjectClass = 'PosixAccount';
|
||||||
$search = 'uidNumber';
|
$search = 'uidNumber';
|
||||||
$minID = $_SESSION['config']->get_MinMachine();
|
$minID = intval($_SESSION['config']->get_MinMachine());
|
||||||
$maxID = $_SESSION['config']->get_MaxMachine();
|
$maxID = intval($_SESSION['config']->get_MaxMachine());
|
||||||
$suffix = $_SESSION['config']->get_HostSuffix();
|
$suffix = $_SESSION['config']->get_HostSuffix();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -510,7 +510,7 @@ function checkid($values, $type, $values_old=false) { // if value is empty will
|
||||||
if (!$values_old) return _('ID is used from ' . $dn . ' !');
|
if (!$values_old) return _('ID is used from ' . $dn . ' !');
|
||||||
else if ($dn!=$values_old->general_dn) return _('ID is used from ' . $dn . ' !');
|
else if ($dn!=$values_old->general_dn) return _('ID is used from ' . $dn . ' !');
|
||||||
}
|
}
|
||||||
if ( $values->general_uidNumber <= $minID || $values->general_uidNumber >= $maxID) return _('Please enter a value between '. $minID . ' and ' . $maxID . '!');
|
if ( $values->general_uidNumber < $minID || $values->general_uidNumber > $maxID) return _('Please enter a value between '. $minID . ' and ' . $maxID . '!');
|
||||||
return intval($values->general_uidNumber);
|
return intval($values->general_uidNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue