Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.8.2
-
None
-
debian etch, apache
-
MySQL
-
MOODLE_18_STABLE
-
MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
Description
I'm using authldap module, and set up successfully. Can logon to ldap, and so on. But if I set the userdata fields to get from the ldap, it simply don't get down.
I figured out that tha problem caused by an invalid (empty) search filter in auth.php (moodle/auth/ldap) at line 139 the original code:
- if (!$user_info_result = ldap_read($ldapconnection, $user_dn, $this->config->objectclass, $search_attribs)) { # return false; // error! # }
It is commented out by me and hardcoded the following:
if (!$user_info_result = ldap_read($ldapconnection, $user_dn, '(objectclass=VirtualMailAccount)', $search_attribs))
this way data can come down, because objectclass is the correct value...
Please correct the bug, so after I upgrade, there will be no need such hardcoded stuff...