Javadoc
This implementation opens an LDAP connection using the token's
#getLdapPrincipal(org.apache.shiro.authc.AuthenticationToken) and provided
AuthenticationToken#getCredentials(). If the connection opens successfully, the
authentication attempt is immediately considered successful and a new
AuthenticationInfo instance is
#createAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken,Object,Object,javax.naming.ldap.LdapContext)and returned. If the connection cannot be opened, either because LDAP authentication failed or some other
JNDI problem, an
NamingException will be thrown.