From efe7eabe52efbe5ce6203fb861f5145d3b67a59f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 8 Mar 2010 21:09:00 +0000 Subject: [PATCH] "only use posix_getpwnam to check for existing system user, if it's available (otherwise no more accounts can be created)" --- admin/inc/class.boaccounts.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/inc/class.boaccounts.inc.php b/admin/inc/class.boaccounts.inc.php index afa58ae75b..b97e2758ed 100755 --- a/admin/inc/class.boaccounts.inc.php +++ b/admin/inc/class.boaccounts.inc.php @@ -49,7 +49,7 @@ // delete all acl (and memberships) of group $GLOBALS['egw']->acl->delete_account($account_id); - // make this information also available in the hook + // make this information also available in the hook $lid = $GLOBALS['egw']->accounts->id2name($account_id); $GLOBALS['egw']->hooks->process($GLOBALS['hook_values'] = array( @@ -72,7 +72,7 @@ $accountid = (int)$account_id; $account_id = get_account_id($accountid); - // make this information also available in the hook + // make this information also available in the hook $lid = $GLOBALS['egw']->accounts->id2name($account_id); $GLOBALS['hook_values'] = array( @@ -357,7 +357,7 @@ // and the message thereof if($GLOBALS['egw_info']['server']['account_repository'] == 'ldap') { - if (posix_getpwnam($_userData['account_lid'])) + if (function_exists('posix_getpwnam') && posix_getpwnam($_userData['account_lid'])) { $error[$totalerrors] = lang('There already is a system-user with this name. User\'s should not have the same name as a systemuser'); $totalerrors++;