forked from extern/egroupware
"bugfix/patch #632: Active Directory (ADS) authentication in 1.4 Beta 4 (1.3.019)"
This commit is contained in:
parent
81026357a6
commit
e3a4af3a1d
@ -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'])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user