Skip to content

Commit

Permalink
Merge pull request #11 from mcriss/master
Browse files Browse the repository at this point in the history
Allow binding as user
  • Loading branch information
gondor authored Mar 10, 2017
2 parents d65b77c + a10d997 commit 2f599cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public static Set<String> validate(String username, String userPassword, LDAPCon
String bindPassword = userPassword;

if(bindUser != null) {
dn = bindUser;
bindPassword = config.getBindPassword();
bindUser = bindUser.replace("{username}", username);
bindPassword = (config.getBindPassword() == null) ? userPassword : config.getBindPassword();
} else {
if (config.useSimpleAuthentication()) {
dn = config.getDn().replace("{username}", username);
Expand Down

0 comments on commit 2f599cb

Please sign in to comment.