Homec4science

Fall back to LDAP search attribute if username attribute is not configured

Authored by epriestley <git@epriestley.com> on Sep 3 2012, 15:41.

Description

Fall back to LDAP search attribute if username attribute is not configured

Summary:
See discussion in D3340. Some configurations set only a search attribute because their records are indexed by username (this is probably not quite the correct LDAP terminology). Other configurations use one attribute to search and a different attribute to select usernames.

After D3340, installs which set only a search attribute broke. Instead, fall back to the search attribute if no username attribute is present.

Test Plan: Successfully logged in on my test slapd.

Reviewers: yunake, voldern, briancline

Reviewed By: voldern

CC: aran

Differential Revision: https://secure.phabricator.com/D3406

Details

Committed
epriestley <git@epriestley.com>Sep 3 2012, 15:41
Pushed
aubortJan 31 2017, 17:16
Parents
rPHada5f81614b8: Display 'away until' in owners and revision comment
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHe3c6dc687ad0: Fall back to LDAP search attribute if username attribute is not configured (authored by epriestley <git@epriestley.com>).Sep 3 2012, 15:41