mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Change to make LDAP enroller simply ignore accounts with blank idnumber - see moodle.org discussion with Inaki
This commit is contained in:
parent
1c23b14db3
commit
6d19caab41
1 changed files with 4 additions and 0 deletions
|
@ -485,6 +485,10 @@ function find_ext_enrolments ($ldap_connection, $memberuid, $type){
|
||||||
|
|
||||||
global $CFG;
|
global $CFG;
|
||||||
|
|
||||||
|
if(empty($memberuid)) { // No "idnumber" stored for this user, so no LDAP enrolments
|
||||||
|
return array();
|
||||||
|
}
|
||||||
|
|
||||||
//default return value
|
//default return value
|
||||||
$courses = array();
|
$courses = array();
|
||||||
$this->enrol_ldap_bind($ldap_connection);
|
$this->enrol_ldap_bind($ldap_connection);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue