Skip to content
Snippets Groups Projects
Commit 8522ba07 authored by Alexander Bias's avatar Alexander Bias
Browse files

Remove unneeded LDAP API call

parent d182987a
No related branches found
No related tags found
No related merge requests found
...@@ -740,9 +740,6 @@ class auth_plugin_ldap_syncplus extends auth_plugin_ldap { ...@@ -740,9 +740,6 @@ class auth_plugin_ldap_syncplus extends auth_plugin_ldap {
continue; continue;
} }
// Get users in LDAP result
$users = ldap_get_entries_moodle($ldapconnection, $ldap_result);
// If there is not exactly one matching user, we can't continue, call parent hook and return // If there is not exactly one matching user, we can't continue, call parent hook and return
if (ldap_count_entries($ldapconnection, $ldap_result) != 1) { if (ldap_count_entries($ldapconnection, $ldap_result) != 1) {
parent::loginpage_hook(); // Call parent function to retain its functionality parent::loginpage_hook(); // Call parent function to retain its functionality
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment