Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-7002

The email attribute property defined in the email service is not used when sending e-mail in forgotten password flow

    Details

    • Support Ticket IDs:

      Description

      In email service, you can define an LDAP email attribute. It will be used to retrieve the email from the user profile. However, today, the value is actually not used and is hard coded to "mail"

      IdentityResourceV2.java
          final static String MAIL = "mail";
      ...
      
       String uid = null;
                      for (Attribute attribute : identityDetails.getAttributes()) {
                          String attributeName = attribute.getName();
                          if (MAIL.equalsIgnoreCase(attributeName)) {
                              if (attribute.getValues() != null && attribute.getValues().length > 0) {
                                  email = attribute.getValues()[0];
                              }
                          } else if (UNIVERSAL_ID.equalsIgnoreCase(attributeName)) {
                              if (attribute.getValues() != null && attribute.getValues().length > 0) {
                                  uid = attribute.getValues()[0];
                              }
                          }
                      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                quentin.castel Quentin CASTEL [X] (Inactive)
                Reporter:
                quentin.castel Quentin CASTEL [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: