Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-36245

[LDAP] DN encoding mangling login names

    Details

      Description

      I have two identical Moodle installations on the same machine using the same LDAP back-end. On v2.1.2 LDAP auth plugin is able to log in users, but in 2.3.2 it seems to be broken. I see the following in my LDAP logs when trying to log in as user "test":

      BIND dn="cn=manager,dc=x,dc=y,dc=z" mech=SIMPLE ssf=0
      conn=1801 op=0 RESULT tag=97 err=0 text=
      conn=1801 op=1 SRCH base="ou=people,dc=x,dc=y,dc=z" scope=1 deref=0 filter="(&(objectClass=posixAccount)(uid=\00est))"

      Note the first letter of the uid which has been mangled, to (I think) NULL. Doing the same on the v2.1.2 installation presents the correct DN to LDAP. I am using OpenLDAP v 2.4.33. All PHP environment requirements are satisfied.

      I am also unable to unset the bind_dn and bind_password values in the LDAP auth plugin's configuration page, so I used the manager DN for testing.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Jan/13