mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
enable check for casesensitive usernames
This commit is contained in:
parent
1216a5540d
commit
05b73a96b0
@ -73,6 +73,13 @@
|
||||
$allValues = ldap_get_entries($ldap, $sri);
|
||||
if ($allValues['count'] > 0)
|
||||
{
|
||||
if($GLOBALS['phpgw_info']['server']['case_sensitive_username'] == true)
|
||||
{
|
||||
if($allValues[0]['uid'][0] != $username)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/* we only care about the first dn */
|
||||
$userDN = $allValues[0]['dn'];
|
||||
/*
|
||||
|
@ -55,6 +55,14 @@
|
||||
. "account_pwd='" . $_passwd . "' AND account_status ='A'",__LINE__,__FILE__);
|
||||
$db->next_record();
|
||||
|
||||
if($GLOBALS['phpgw_info']['server']['case_sensitive_username'] == true)
|
||||
{
|
||||
if($db->f('account_lid') != $username)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if ($db->f('account_lid'))
|
||||
{
|
||||
$this->previous_login = $db->f('account_lastlogin');
|
||||
|
@ -55,6 +55,13 @@
|
||||
$db->next_record();
|
||||
}
|
||||
|
||||
if($GLOBALS['phpgw_info']['server']['case_sensitive_username'] == true)
|
||||
{
|
||||
if($db->f('account_lid') != $username)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if($db->f('account_lid'))
|
||||
{
|
||||
return True;
|
||||
|
Loading…
Reference in New Issue
Block a user