Moodle

AD distinguishedName containing \

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.5
  • Fix Version/s: 1.9.6, 2.0
  • Component/s: Authentication
  • Labels:
    None
  • Environment:
    MySQL Server version: 5.0.51a-3ubuntu5.4
    PHP 5.2.4.2.5.6
    Moodle 1.9.5 (Build: 20090515)
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE, MOODLE_20_STABLE

Description

This bug does not actually affect Authentication in my set up, it affects Enrolment. But I believe the issue is occuring at Authentication, so I'm posting it here.

AD Authentication is fully functional with the distinguishedName mapped to idnumber set to update on every log on. However, AD Enrolment fails. I believe it fails because of some things happening with the setting and updating of idnumber. The CN of our users are stored as "lastname, firstname". Because of the comma, AD stores the CN as "lastname\, firstname".

The first time a user logs on to Moodle, the idnumber is mapped and stored correctly as:
CN=Student\, Test,OU=eLearning,OU=Students,DC=ccsmj,DC=com

On second and subsequent log ons the idnumber is modified and stored as
CN=Student, Test,OU=eLearning,OU=Students,DC=ccsmj,DC=com

In both cases enrolment fails.

However, if I set the mapping of idnumber to only occur on creation, and manually store the idnumber as
CN=Student
, Test,OU=eLearning,OU=Students,DC=ccsmj,DC=com

Both Authenticatioin and Enrolment function properly.

I decided to try the double backslash format after reading the issue at http://moodle.org/mod/forum/discuss.php?d=35865#226068 which dealt specifically with broken Authentication.

Issue Links

Activity

Hide
Iñaki Arenaza added a comment -

This bug is the same as MDL-19672. As that bug is already fixed, close this one too.

Saludos.
Iñaki.

Show
Iñaki Arenaza added a comment - This bug is the same as MDL-19672. As that bug is already fixed, close this one too. Saludos. Iñaki.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: