Skip to content
Snippets Groups Projects
Commit 18481376 authored by moyooo's avatar moyooo
Browse files

minor fix

parent 9cc4d867
No related branches found
No related tags found
No related merge requests found
...@@ -546,14 +546,14 @@ class Auth { ...@@ -546,14 +546,14 @@ class Auth {
'value'=>$login_name), 'value'=>$login_name),
'condition' => $ldap_method["condition"])); 'condition' => $ldap_method["condition"]));
if ($user_dn) { if ($user_dn) {
$this->user->getFromLDAP($ds, $ldap_method, $user_dn['dn'], $user); $this->user->getFromLDAP($ds, $ldap_method, $user_dn['dn'], $login_name);
} }
} }
} }
} }
// Reset to secure it // Reset to secure it
$this->user->fields['name'] = $user; $this->user->fields['name'] = $login_name;
$this->user->fields["last_login"] = $_SESSION["glpi_currenttime"]; $this->user->fields["last_login"] = $_SESSION["glpi_currenttime"];
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment