tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepan <codesheph...@gmail.com>
Subject RE: authentication using active directory
Date Sat, 27 Jan 2007 10:31:25 GMT
On Fri, 2007-01-26 at 11:09 -0500, Propes, Barry L [GCG-NAOT] wrote:
> you have to use the usernames and passwords as j_username and j_password. You didn't
try to change that did you?
> 

I had just switched to Basic authentication mode. Will update username
and password to j_username and j_password and update the results.
Thanks

> -----Original Message-----
> From: Deepan [mailto:codeshepherd@gmail.com]
> Sent: Friday, January 26, 2007 1:22 AM
> To: Tomcat Users List
> Subject: authentication using active directory
> 
> 
> Hi,
>  I am trying to authenticate using Active directory for one my
> application in tomcat. ( I have only one application deployed in
> tomcat). 
> 
> I had configured server.xml and web.xml to use /gridsphere/login.html to
> get details from user and authenticate using AD. When i hit the url
> "localhost:8080", i get 404 error, saying "The requested resource
> (/gridsphere/login.html) is not available. " 
> 
> 
> 
> 
> -----------------------------------------------------------
> server.xml 
> 
> <Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
> 
> connectionURL="ldap://172.168.1.1:389"
> connectionName="tomcatuser@gs.novaglobal.com.sg"
> connectionPassword="xxxxxxxx"
> referrals="follow"
> userRoleName="member"
> roleSearch="(member={0})"
> roleSubtree="false"
> userSubtree="true"
> />
> 
> --------------------------------------------------------------
> 
> web.xml
> 
> 
> <security-constraint>
>         <web-resource-collection>
>                 <web-resource-name>YourWebApp</web-resource-name>
>                 <description> accessible by authenticated users of the
> tomcat role</description>
>                 <url-pattern>/*</url-pattern>
>                 <http-method>GET</http-method>
>                 <http-method>POST</http-method>
>                 <http-method>PUT</http-method>
>                 <http-method>DELETE</http-method>
>         </web-resource-collection>
>         <auth-constraint>
>                 <description>These roles are allowed
> access</description>
>                 <role-name>tomcat</role-name>
>         </auth-constraint>
> </security-constraint>
> 
> <login-config>
>         <auth-method>FORM</auth-method>
>         <realm-name>YourWebApp Protected Area</realm-name>
>         <form-login-config>
> 
> <form-login-page>/gridsphere/index.html</form-login-page>
> 
> <form-error-page>/gridsphere/autherr.html</form-error-page>
>         </form-login-config>
> </login-config>
> 
> <security-role>
>         <description>Only 'tomcat' role is allowed to access this web
> application</description>
>         <role-name>tomcat</role-name>
> </security-role>
> 



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message