Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-477

LDAPHierarchicalAuthentication fails when the LDAP returns mixed case email address

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5.0, 1.5.1, 1.5.2
    • Fix Version/s: 1.6.0
    • Component/s: DSpace API
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      0
    • Documentation Status:
      Not Required

      Description

      All EPerson objects store the email address lowercase in the database, expecting findByEmail to be passed with a lowercase email address.

      LDAPHierarchicalAuthentication fails to do this, so on a second login, and mixed case email addresses will fail to resolve to the existing eperson object, and attempt to create a new one - this will fail, due to the email address being lowercased during EPerson creation, and conflicting with an existing entry).

      Will fix by forcing findByEmail to lowercase the email address, ensuring that the lookup is consistent with the storage

        Attachments

          Activity

            People

            Assignee:
            grahamtriggs Graham Triggs
            Reporter:
            grahamtriggs Graham Triggs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: