Skip to content

Commit

Permalink
Merge pull request #7 from gonzzor/test-button
Browse files Browse the repository at this point in the history
Make test-button work for multidomain configurations
  • Loading branch information
stephenc committed Mar 10, 2014
2 parents a700b73 + f15bd8e commit 219229b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public FormValidation doValidate(@QueryParameter(fixEmpty = true) String domain,
DirContext context = bind(bindName, Secret.toString(password), servers);
try {
// actually do a search to make sure the credential is valid
new LDAPSearchBuilder(context, toDC(domain)).searchOne("(objectClass=user)");
new LDAPSearchBuilder(context, toDC(name)).searchOne("(objectClass=user)");
} finally {
context.close();
}
Expand Down

0 comments on commit 219229b

Please sign in to comment.