Skip to content

Commit

Permalink
support for ldap servers requiring authentication for read access
Browse files Browse the repository at this point in the history
  • Loading branch information
mljohns89 committed Apr 1, 2024
1 parent 31d8aed commit 1b13294
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ public LDAPAuthenticator(Map<String, String> ldapSettings) {
// this is usually not required for authentication - leave blank
contextSource.setPassword(bindPass);
}

contextSource.afterPropertiesSet();

LdapUserSearch userSearch = new FilterBasedLdapUserSearch(userSearchBase, userSearchFilter, contextSource);

if (usePasswordComparison) {
Expand Down

0 comments on commit 1b13294

Please sign in to comment.