Hello,
I have a tomcat 8.0.23 configured to authenticate against and Active
Directory with LDAP realm.
Randomly I have authentication failures with stack trace above.
I didn not find anything except an old post mentionning same issue I am
facing, with tomcat 6 but with no answers.
I am not yet able to understand what's and why this is happening so far
(as it is random and unfrequent, but still enoying )
Any idea ?
SEVERE [http-nio-443-exec-27] org.apache.catalina.realm.JNDIRealm.authenticate
Exception performing authentication
javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an application
resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getNameParser(Unknown Source)
at
org.apache.catalina.realm.JNDIRealm.getDistinguishedName(JNDIRealm.java:2683)
at
org.apache.catalina.realm.JNDIRealm.getUserBySearch(JNDIRealm.java:1712)
at org.apache.catalina.realm.JNDIRealm.getUser(JNDIRealm.java:1517)
at org.apache.catalina.realm.JNDIRealm.getUser(JNDIRealm.java:1465)
at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:1406)
at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:1264)
at
org.apache.catalina.realm.CombinedRealm.authenticate(CombinedRealm.java:192)
at
org.apache.catalina.authenticator.AuthenticatorBase.doLogin(AuthenticatorBase.java:948)
at
org.apache.catalina.authenticator.AuthenticatorBase.login(AuthenticatorBase.java:930)
at org.apache.catalina.connector.Request.login(Request.java:2623)
at
org.apache.catalina.connector.RequestFacade.login(RequestFacade.java:1072)
at
javax.servlet.http.HttpServletRequestWrapper.login(HttpServletRequestWrapper.java:318)