mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 03:13:40 +01:00
* LDAP: only check for matching system users, if a new account get added, as existing accounts can be reported - depending on configuration - as system users too
This commit is contained in:
parent
6066cbaad4
commit
9ecefc6b79
@ -322,7 +322,7 @@ class accounts_ldap
|
|||||||
$data['account_type'] = 'u';
|
$data['account_type'] = 'u';
|
||||||
|
|
||||||
// Check if an account already exists as system user, and if it does deny creation
|
// Check if an account already exists as system user, and if it does deny creation
|
||||||
if (!$GLOBALS['egw_info']['server']['ldap_allow_systemusernames'] &&
|
if (!$GLOBALS['egw_info']['server']['ldap_allow_systemusernames'] && !$old &&
|
||||||
function_exists('posix_getpwnam') && posix_getpwnam($data['account_lid']))
|
function_exists('posix_getpwnam') && posix_getpwnam($data['account_lid']))
|
||||||
{
|
{
|
||||||
throw new egw_exception_wrong_userinput(lang('There already is a system-user with this name. User\'s should not have the same name as a systemuser'));
|
throw new egw_exception_wrong_userinput(lang('There already is a system-user with this name. User\'s should not have the same name as a systemuser'));
|
||||||
|
Loading…
Reference in New Issue
Block a user