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

auth_ldap : crash on invalid username

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.6.3, 2.7
    • Fix Version/s: None
    • Component/s: Authentication
    • Labels:
      None
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE

      Description

      Hi,

      During sync_users() execution

      if a new user has an invalid username in LDAP an uncaught exception is throw by user_create_user() call. (auth/ldap/auth.php line 951 in Moodle 2.6.3)

      The exception should be catch by sync_users() and add a warning in logs but should not stop sync for other's users.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ak4t0sh Arnaud Trouvé
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: