mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
"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:
parent
1b301569e1
commit
efe7eabe52
@ -357,7 +357,7 @@
|
|||||||
// and the message thereof
|
// and the message thereof
|
||||||
if($GLOBALS['egw_info']['server']['account_repository'] == 'ldap')
|
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');
|
$error[$totalerrors] = lang('There already is a system-user with this name. User\'s should not have the same name as a systemuser');
|
||||||
$totalerrors++;
|
$totalerrors++;
|
||||||
|
Loading…
Reference in New Issue
Block a user