"only use posix_getpwnam to check for existing system user, if it's available (otherwise no more accounts can be created)"

This commit is contained in:
Ralf Becker 2010-03-08 21:09:00 +00:00
parent 1b301569e1
commit efe7eabe52

View File

@ -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++;