RE: RE: Failed autentication

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Lisa Tan [mailto:ag5087@xxxxxxxxx] 
> Sent: Thursday, August 02, 2007 11:45 PM
> To: users@xxxxxxxxxxxxxxxx
> Subject:  RE: Failed autentication
> 
> I am trying to set up Tomcat form based authentication and 

... so why are you posting to an apache list? Try:
http://tomcat.apache.org/lists.html

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 


> 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"
>        debug='55'
>         connectionURL="ldap://xxx:xxx";
>          userBase="ou=People,dc=example,dc=edu"
>          userSearch="(uid={0})"
>  />
> b). in tomcat WEB-INF/web.xml,  I add security and login blocks 
>        <security-constraint>
>          <web-resource-collection>
>           <web-resource-name>tracker</web-resource-name>
>           <url-pattern>*.jsp</url-pattern>
>           <http-method>GET</http-method>
>           <http-method>POST</http-method>
>          </web-resource-collection>
>          <!-- Security roles referenced by this web application -->
>          <security-role>
>                   <description>All Users</description>
>                   <role-name>person</role-name>
>          </security-role>
>       </security-constraint>
>   
>       <login-config>
>             <auth-method>FORM</auth-method>
>             <realm-name>ldapRealm</realm-name>
>             <form-login-config>
>                     <form-login-page>/login.jsp</form-login-page>
>                     
> <form-error-page>/login_error.jsp</form-error-page>
>             </form-login-config>
>       </login-config>
> 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">
>   <br>
>   	<strong>Enter Password</strong><br>
>   	<input type="password" name="j_password" size="22">
>   
>   	<input type="submit" name="Submit" value="Submit">
>   </form>
>   
>   login_error.jsp can be as simple as:
>  
> <html>
>   <body>
>   The system was not able to log you in.<br>
>      <form>
>        <input type="button" onclick="history.go(-1)" value="Retry"/>
>      </form>
>   </body>
> </html>
> 
> Any directions will appreciate. Thanks,
> 
> Lisa
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
 
 
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux