From 9ecefc6b79d4d9140802e95d461259bbfed5173e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 23 May 2013 17:09:59 +0000 Subject: [PATCH] * 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 --- phpgwapi/inc/class.accounts_ldap.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.accounts_ldap.inc.php b/phpgwapi/inc/class.accounts_ldap.inc.php index 6457a2f6e0..95e5021aa6 100644 --- a/phpgwapi/inc/class.accounts_ldap.inc.php +++ b/phpgwapi/inc/class.accounts_ldap.inc.php @@ -322,7 +322,7 @@ class accounts_ldap $data['account_type'] = 'u'; // 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'])) { 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'));