httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lisa Tan" <>
Subject [users@httpd] RE: Failed autentication
Date Thu, 02 Aug 2007 21:44:34 GMT
I am trying to set up Tomcat form based authentication and received the
following error.
Failed authenticate() test ??/j_security_check -
org.apache.catalina.authenticator.AuthenticatorBase [20070802]

What I have done is:
a). in $TOMCAT/conf/server.xml, I add JNDIRealm
<Realm className="org.apache.catalina.realm.JNDIRealm"
b). in tomcat WEB-INF/web.xml,  I add security and login blocks 
         <!-- Security roles referenced by this web application -->
                  <description>All Users</description>
c). create login.jsp and login_error.jsp and put them in the web-app's
document root    
  <form action="j_security_check" method="POST">
     	LDAP Authentication<BR>
     	<strong>Enter UserId</strong><br>
  	<input type="text" name="j_username" size="22">
  	<strong>Enter Password</strong><br>
  	<input type="password" name="j_password" size="22">
  	<input type="submit" name="Submit" value="Submit">
  login_error.jsp can be as simple as:
  The system was not able to log you in.<br>
       <input type="button" onclick="history.go(-1)" value="Retry"/>

Any directions will appreciate. Thanks,


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message