Skip to content
Snippets Groups Projects
Commit 7f77dc7e authored by git's avatar git Committed by John Barclay
Browse files

Issue 1066608-48 patch by pcharsle to disconnect on ldap authentication

parent ae110392
No related branches found
No related tags found
No related merge requests found
......@@ -365,14 +365,13 @@ function _ldap_authentication_user_login_authenticate_validate(&$form_state) {
$accountname = $authname;
}
$watchdog_tokens['%account_name_attr'] = $accountname;
if ($ldap_server->bind_method == LDAP_SERVERS_BIND_METHOD_SERVICE_ACCT ||
$ldap_server->bind_method == LDAP_SERVERS_BIND_METHOD_ANON_USER) {
$ldap_server->disconnect();
}
break; //success
}
if ($ldap_server->bind_method == LDAP_SERVERS_BIND_METHOD_SERVICE_ACCT ||
$ldap_server->bind_method == LDAP_SERVERS_BIND_METHOD_ANON_USER) {
$ldap_server->disconnect();
}
} // end loop through servers
......
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