Hi,
I'm trying to make authentication with ldap using shiro and spring (java
based config).
Here is my shiro config:
@Bean
public JndiLdapRealm ldapRealm() {
JndiLdapContextFactory jndiLdapContextFactory = new
JndiLdapContextFactory();
contextFactory.setUrl("ldap://LDAP_ADDRESS:389/dc=name1,dc=name2");
JndiLdapRealm ldapRealm = new JndiLdapRealm();
ldapRealm.setUserDnTemplate("uid={0},ou=SomeUsers,dc=name1,dc=name2");
ldapRealm.setContextFactory(contextFactory);
return ldapRealm;
}
I have added one user "test", "test", password is hashed using md5. When I
try to log in I get error 49 - invalid credentials.
I assume that connection with ldap is correct, but I'm not sure if I should
hash password before submitting it to ldap ? Currently I'm not doing
anything with credentials which are submitted from login form, and maybe I
should hash them first ?
Or maybe I'm doing something wrong and for example I should not use
JndiLdapRealm ?
best regards
--
View this message in context:
http://shiro-user.582556.n2.nabble.com/Ldap-Authentication-with-Shiro-tp7580349.html
Sent from the Shiro User mailing list archive at Nabble.com.