crucial typo

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10093 71c3de6d-444a-0410-be80-ed276b4c234a

Originally-Committed-As: 499d10ce0b5b01831349fa4820122e110ff56867
This commit is contained in:
kohsuke 2008-06-13 21:35:06 +00:00
parent a953d15b38
commit 46d6b2ecec

View file

@ -239,7 +239,7 @@ public class LDAPSecurityRealm extends SecurityRealm {
props.put(Context.SECURITY_PRINCIPAL,managerDN);
}
if(managerPassword!=null && managerPassword.trim().length() > 0 && !"undefined".equals(managerPassword)) {
props.put(Context.SECURITY_PRINCIPAL,managerPassword);
props.put(Context.SECURITY_CREDENTIALS,managerPassword);
}
DirContext ctx = LdapCtxFactory.getLdapCtxInstance("ldap://"+server+'/', props);
ctx.getAttributes("");