Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change to make LDAP enroller simply ignore accounts with blank idnumb…

…er - see moodle.org discussion with Inaki
  • Loading branch information...
commit 6d19caab414b0015d780a9808ac5e037397b8e07 1 parent 1c23b14
danstowell authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 enrol/ldap/enrol.php
View
4 enrol/ldap/enrol.php
@@ -485,6 +485,10 @@ function find_ext_enrolments ($ldap_connection, $memberuid, $type){
global $CFG;
+ if(empty($memberuid)) { // No "idnumber" stored for this user, so no LDAP enrolments
+ return array();
+ }
+
//default return value
$courses = array();
$this->enrol_ldap_bind($ldap_connection);
Please sign in to comment.
Something went wrong with that request. Please try again.