Skip to content
Snippets Groups Projects
Commit 2f28760e authored by Kristopher Graham's avatar Kristopher Graham Committed by John Barclay
Browse files

Issue #1733828 by thesaunterer. Patch by thesaunterer

parent 9d04ae71
No related branches found
No related tags found
No related merge requests found
......@@ -83,16 +83,19 @@ function ldap_profile_user_login(&$edit, $account) {
module_load_include('functions.inc', 'ldap_servers');
if (!empty($account)) {
$ldapuser = ldap_servers_get_user_ldap_data($account);
if (!empty($ldapuser) && !empty($ldapuser['dn'])) {
$dn = $ldapuser['dn'];
}
}
if (is_array($account->data) && array_key_exists("ldap_authentication", $account->data)) {
$authdata = $account->data["ldap_authentication"];
if (array_key_exists('init', $authdata)) {
$authinit = $authdata['init'];
if (isset($servers[$authinit['sid']])) {
$server = $servers[$authinit['sid']];
$ldapuser = TRUE;
if (array_key_exists('dn', $authinit)) {
$dn = $authinit['dn'];
}
}
}
}
......
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