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

LDAPAuthentication: email always overwritten with netid

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 4.0, 4.1
    • Fix Version/s: None
    • Component/s: None
    • Environment:
      Ubuntu 12.04, Tomcat 7, OpenJDK 7
    • Attachments:
      1
    • Comments:
      2
    • Documentation Status:
      Needed

      Description

      With LDAPAuthentication one can get the mail attribute filled from LDAP as defined in config/modules/authentication-ldap.cfg with email_field set.

      But the following happens with DSpace 4.x: the email address received by
      the LDAP server is always overwritten with the netid.

      It looks like this behavior was introduced with the following commit in order to fix DS-1739
      https://github.com/DSpace/DSpace/commit/0a4ec51717e2f50b0c4e5005ca29b5083283f790#diff-41dc81f7e3e794a7e1eee66a27805c9c
      (lines 261 to 264 ).

      The attached patch would fix this behaviour (with courtesy to rlseaton: http://dspace.2283337.n4.nabble.com/DSpace-LDAP-authentication-problem-td4665853.html#a4668861 )

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              daniel.scharon Daniel Scharon
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: