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

LDAP auth fails when username includes special chars

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8, 1.9
    • 1.6.2
    • Authentication
    • None
    • MOODLE_16_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

      This bug is essentially the same as MDL-3992 but concerns the username not the password.

      To summarise: LDAP authentication fails for users with quotes (') or other special charactors in their usernames.

      Like bug MDL-3992 a solution is to add a stripslashes() call.

      In auth_user_login() in auth/ldap/lib.php after the check for blank username || password add the following:
      $username = stripslashes( $username );

            skodak Petr Skoda
            adamt adam (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.