RE: authentication using active directory

2007-02-02 Thread David Rodríguez Fernández
Can tomcat read the file login.html? I think this is a permissions problem.

-Mensaje original-
De: Deepan [mailto:[EMAIL PROTECTED] 
Enviado el: viernes, 26 de enero de 2007 8:22
Para: Tomcat Users List
Asunto: 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=[EMAIL PROTECTED]
connectionPassword=
referrals=follow
userRoleName=member
roleSearch=(member={0})
roleSubtree=false
userSubtree=true
/

--

web.xml


security-constraint
web-resource-collection
web-resource-nameYourWebApp/web-resource-name
description accessible by authenticated users of the
tomcat role/description
url-pattern/*/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
http-methodPUT/http-method
http-methodDELETE/http-method
/web-resource-collection
auth-constraint
descriptionThese roles are allowed access/description
role-nametomcat/role-name
/auth-constraint
/security-constraint

login-config
auth-methodFORM/auth-method
realm-nameYourWebApp 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
descriptionOnly 'tomcat' role is allowed to access this web
application/description
role-nametomcat/role-name
/security-role



-





--
---
Regards
Deepan Chakravarthy N
http://www.codeshepherd.com/
http://sudoku-solver.net/

I am a programmer by day,
I dig grave for other programmers by night.


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





--

La Información incluida en el presente correo electrónico es SECRETO
PROFESIONAL Y CONFIDENCIAL, siendo para el uso exclusivo del
destinatario arriba mencionado. Si usted lee este mensaje y no es el
destinatario señalado, el empleado o el agente responsable de entregar
el mensaje al destinatario, o ha recibido esta comunicación por error,
le informamos que esta totalmente prohibida cualquier divulgación,
distribución o reproducción de esta comunicación, y le rogamos que nos
lo notifique inmediatamente y nos devuelva el mensaje original a la
dirección arriba mencionada.

Gracias.

The information contained in this e-mail is LEGALLY PRIVILEDGED AND
CONFIDENTIAL and is intended only for the use of the addressee named
above. If the reader of this message is not the intended recipient or
the employee or agent responsible for delivering the message to the
intended recipient, or you have received this communication in error,
please be aware that any dissemination, distribution or duplication of
this communication is strictly prohibited, and please notify us
immediately and return the original message to us at the address above.

Thank you.



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



RE: authentication using active directory

2007-02-02 Thread Deepan
On Fri, 2007-02-02 at 09:37 +0100, David Rodríguez Fernández wrote:
 Can tomcat read the file login.html? I think this is a permissions problem.
 

I am using BASIC mode of authentication. It works. 


 -Mensaje original-
 De: Deepan [mailto:[EMAIL PROTECTED] 
 Enviado el: viernes, 26 de enero de 2007 8:22
 Para: Tomcat Users List
 Asunto: 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=[EMAIL PROTECTED]
 connectionPassword=
 referrals=follow
 userRoleName=member
 roleSearch=(member={0})
 roleSubtree=false
 userSubtree=true
 /
 
 --
 
 web.xml
 
 
 security-constraint
 web-resource-collection
 web-resource-nameYourWebApp/web-resource-name
 description accessible by authenticated users of the
 tomcat role/description
 url-pattern/*/url-pattern
 http-methodGET/http-method
 http-methodPOST/http-method
 http-methodPUT/http-method
 http-methodDELETE/http-method
 /web-resource-collection
 auth-constraint
 descriptionThese roles are allowed access/description
 role-nametomcat/role-name
 /auth-constraint
 /security-constraint
 
 login-config
 auth-methodFORM/auth-method
 realm-nameYourWebApp 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
 descriptionOnly 'tomcat' role is allowed to access this web
 application/description
 role-nametomcat/role-name
 /security-role




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



RE: authentication using active directory

2007-01-27 Thread Deepan
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:[EMAIL PROTECTED]
 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=[EMAIL PROTECTED]
 connectionPassword=
 referrals=follow
 userRoleName=member
 roleSearch=(member={0})
 roleSubtree=false
 userSubtree=true
 /
 
 --
 
 web.xml
 
 
 security-constraint
 web-resource-collection
 web-resource-nameYourWebApp/web-resource-name
 description accessible by authenticated users of the
 tomcat role/description
 url-pattern/*/url-pattern
 http-methodGET/http-method
 http-methodPOST/http-method
 http-methodPUT/http-method
 http-methodDELETE/http-method
 /web-resource-collection
 auth-constraint
 descriptionThese roles are allowed
 access/description
 role-nametomcat/role-name
 /auth-constraint
 /security-constraint
 
 login-config
 auth-methodFORM/auth-method
 realm-nameYourWebApp 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
 descriptionOnly 'tomcat' role is allowed to access this web
 application/description
 role-nametomcat/role-name
 /security-role
 



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



Re: authentication using active directory

2007-01-26 Thread Tim Funk

Most likely - you need to remove /gridsphere from your login config

-Tim

Deepan wrote:

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=[EMAIL PROTECTED]
connectionPassword=
referrals=follow
userRoleName=member
roleSearch=(member={0})
roleSubtree=false
userSubtree=true
/

--

web.xml


SNIP


form-login-page/gridsphere/index.html/form-login-page

form-error-page/gridsphere/autherr.html/form-error-page
/form-login-config
/login-config



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



RE: authentication using active directory

2007-01-26 Thread Propes, Barry L [GCG-NAOT]
you have to use the usernames and passwords as j_username and j_password. You 
didn't try to change that did you?

-Original Message-
From: Deepan [mailto:[EMAIL PROTECTED]
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=[EMAIL PROTECTED]
connectionPassword=
referrals=follow
userRoleName=member
roleSearch=(member={0})
roleSubtree=false
userSubtree=true
/

--

web.xml


security-constraint
web-resource-collection
web-resource-nameYourWebApp/web-resource-name
description accessible by authenticated users of the
tomcat role/description
url-pattern/*/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
http-methodPUT/http-method
http-methodDELETE/http-method
/web-resource-collection
auth-constraint
descriptionThese roles are allowed
access/description
role-nametomcat/role-name
/auth-constraint
/security-constraint

login-config
auth-methodFORM/auth-method
realm-nameYourWebApp 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
descriptionOnly 'tomcat' role is allowed to access this web
application/description
role-nametomcat/role-name
/security-role



-





-- 
---
Regards
Deepan Chakravarthy N
http://www.codeshepherd.com/
http://sudoku-solver.net/

I am a programmer by day,
I dig grave for other programmers by night.


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


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