Skip to content

Commit

Permalink
Merge pull request #259 from mljohns89/ldap-authenticated-read-access
Browse files Browse the repository at this point in the history
support for ldap servers requiring authentication for read access
  • Loading branch information
albogdano committed Apr 1, 2024
2 parents 31d8aed + 1b13294 commit 0eef624
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 0eef624

Please sign in to comment.