Moodle

LDAP authentication does not work when email is missing in external db

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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!

Activity

Hide
Iñaki Arenaza added a comment -

Hi Boris,

could you try the attached patch and see if that fixes the error?

Saludos. Iñaki.

Show
Iñaki Arenaza added a comment - Hi Boris, could you try the attached patch and see if that fixes the error? Saludos. Iñaki.
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it has become inactive and does not appear to affect a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it has become inactive and does not appear to affect a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: