Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.8, 1.8.1, 1.8.2
-
Fix Version/s: None
-
Component/s: Authentication
-
Labels:None
-
Environment:Win 2003 Server, MySQL 5.0.45, PHP 5.2.3
-
Affected Branches:MOODLE_18_STABLE
Description
In our university, we are using LDAP authentication for every new user that logs in - i.e. the user logs in with their university-wide username/pass and then their full name, student # and email are pulled from the DB, and a new user record is created in Moodle.
However, every time an email record is missing in the external db the following problem comes up. When a user without university email address logs in, s/he is presented with "update profile" window, where all fields are blank to begin with. If a user tries to fill it out and clicks "submit", then they are greeted with "Failed to update user data on external auth: ldap. See the server logs for more details.". I tried playing with the settings, even tried leaving email address field blank in the Data Mapping section of the LDAP settings page. We had that problem in 1.8+, that's the version of Moodle we started with, and even after moving to 1.8.2 last week, we are still having this issue.
By the way, when a user gives up after getting all these error messages, their record is still created, it's just all blank except for the username, and a user can't get past that update profile screen.
Another thing - our other campus is using 1.6+, and they are authenticating against the same DB - I do not think they have these issues.
Thank you in advance for your help!
Hi Boris,
could you try the attached patch and see if that fixes the error?
Saludos. Iñaki.