"bugfix/patch #632: Active Directory (ADS) authentication in 1.4 Beta 4 (1.3.019)"

This commit is contained in:
Ralf Becker 2007-05-03 13:40:38 +00:00
parent 81026357a6
commit e3a4af3a1d

View File

@ -80,11 +80,9 @@
return false;
}
}
$account =& CreateObject('phpgwapi.accounts',$username,'u');
if ($account->account_id)
if (($id = $GLOBALS['egw']->accounts->name2id($username,'account_lid','u')))
{
return true;
return $GLOBALS['egw']->accounts->id2name($id,'account_status') == 'A';
}
if ($GLOBALS['egw_info']['server']['auto_create_acct'])
{