Please excuse me if this is a known issue. I tried searching ldap issues but couldn't see this problem. This is my first attempt at using shiro so I'll happily admit it could be a fault on my side.
Shiro 1.2.2 I was following some examples on shiro configuration and trying to authenticate against and LDAP user, using an Apache DS server. I can authenticate valid details happily but when incorrect details are entered I would have expected and IncorrectCredentialsException to be thrown, however what I get is an AuthenticationException with the root cause of Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - INVALID_CREDENTIALS: Bind failed: ERR_229 Cannot authenticate user XXXXXX] I'm I wrong in thinking that the JndiLdapRealm should have thrown IncorrectCredentialsException? Thanks in advance Ross -- View this message in context: http://shiro-user.582556.n2.nabble.com/Can-t-get-JndiLdapRealm-to-throw-IncorrectCredentialsException-tp7578805.html Sent from the Shiro User mailing list archive at Nabble.com.
