Class MultipleEmailLdapAttributeMapper

  • All Implemented Interfaces:
    LdapAttributeMapper

    public class MultipleEmailLdapAttributeMapper
    extends SimpleLdapAttributeMapper
    Adds support for finding users by email address where users may have email addresses stored across multiple LDAP attributes.

    Thanks to Erik Froese of NYU for the original patch

    Author:
    dmccallum@unicon.net
    • Constructor Detail

      • MultipleEmailLdapAttributeMapper

        public MultipleEmailLdapAttributeMapper()
    • Method Detail

      • getSearchableEmailAttributes

        public List<String> getSearchableEmailAttributes()
        Access the list of logical attribute names searched when locating a user entry by email address.
        Returns:
        a list of logical LDAP attribute names. Will not return null
      • setSearchableEmailAttributes

        public void setSearchableEmailAttributes​(List<String> searchableEmailAttributes)
        Assign the list of logical attribute names to search when locating a user entry by email address. If null, will have the effect of clearing the current attribute list. Note that this configuration option has no bearing on the email address which will be mapped to UserEdit.email
        Parameters:
        searchableEmailAttributes - a list of logical attribute names. null treated like an empty list.