mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
allow users with identical names as groups (LDAP) to login, thanks to Jan Lindemann <jan-at-jannet.de>
This commit is contained in:
parent
8b199cf8e2
commit
1ea213f903
@ -510,7 +510,7 @@
|
||||
//echo "<p>session::create(login='$login'): lid='$this->account_lid', domain='$this->account_domain'</p>\n";
|
||||
$user_ip = $this->getuser_ip();
|
||||
|
||||
$this->account_id = $GLOBALS['egw']->accounts->name2id($this->account_lid);
|
||||
$this->account_id = $GLOBALS['egw']->accounts->name2id($this->account_lid,'account_lid','u');
|
||||
|
||||
if (($blocked = $this->login_blocked($login,$user_ip)) || // too many unsuccessful attempts
|
||||
$GLOBALS['egw_info']['server']['global_denied_users'][$this->account_lid] ||
|
||||
@ -733,7 +733,7 @@
|
||||
$GLOBALS['egw_info']['flags'] = $phpgw_info_flags;
|
||||
|
||||
$this->update_dla();
|
||||
$this->account_id = $GLOBALS['egw']->interserver->name2id($this->account_lid);
|
||||
$this->account_id = $GLOBALS['egw']->interserver->name2id($this->account_lid,'account_lid','u');
|
||||
|
||||
if (!$this->account_id)
|
||||
{
|
||||
@ -869,7 +869,7 @@
|
||||
|
||||
if (!$GLOBALS['egw']->interserver->exists($this->account_lid))
|
||||
{
|
||||
$this->account_id = $GLOBALS['egw']->interserver->name2id($this->account_lid);
|
||||
$this->account_id = $GLOBALS['egw']->interserver->name2id($this->account_lid,'account_lid','u');
|
||||
}
|
||||
$GLOBALS['egw_info']['user']['account_id'] = $this->account_id;
|
||||
$GLOBALS['egw']->interserver->serverid = $this->account_id;
|
||||
|
Loading…
Reference in New Issue
Block a user