authentication using active directory

2007-01-25 Thread Deepan
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 

ldap://172.168.1.1:389";
connectionName="[EMAIL PROTECTED]"
connectionPassword=""
referrals="follow"
userRoleName="member"
roleSearch="(member={0})"
roleSubtree="false"
userSubtree="true"
/>

--

web.xml




YourWebApp
 accessible by authenticated users of the
tomcat role
/*
GET
POST
PUT
DELETE


These roles are allowed
access
tomcat




FORM
YourWebApp Protected Area


/gridsphere/index.html

/gridsphere/autherr.html




Only 'tomcat' role is allowed to access this web
application
tomcat




-----





-- 
---
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]



difference between FORM and BASIC authentication method

2007-01-25 Thread Deepan
what is BASIC authentication method ? i mean how is it different from
FORM authentication ? does it mean i dont have to write a login.html or
login.jsp page ?


-- 
---
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]



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 
> 
>  
> connectionURL="ldap://172.168.1.1:389";
> connectionName="[EMAIL PROTECTED]"
> connectionPassword=""
> referrals="follow"
> userRoleName="member"
> roleSearch="(member={0})"
> roleSubtree="false"
> userSubtree="true"
> />
> 
> --
> 
> web.xml
> 
> 
> 
> 
> YourWebApp
>  accessible by authenticated users of the
> tomcat role
> /*
> GET
> POST
> PUT
> DELETE
> 
> 
> These roles are allowed
> access
> tomcat
> 
> 
> 
> 
> FORM
> YourWebApp Protected Area
> 
> 
> /gridsphere/index.html
> 
> /gridsphere/autherr.html
> 
> 
> 
> 
> Only 'tomcat' role is allowed to access this web
> application
> tomcat
> 
> 



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



Configuring Tomcat to Authenticating with Active Directory

2007-01-28 Thread Deepan
Hi All,
 I  am trying to configure one of my application deployed on tomcat to
authenticate with Active Directory. I had configured web.xml and
server.xml as below and I am using Basic mode of Authentication. 

Observation:
When i enter the wrong user name and password, tomcat prompts me to
enter username password again. But when I enter the correct Username and
password, tomcat directs me to access denied page. 

The following ldapsearch command works fine. 

 ldapsearch -x -k -h 172.168.1.1  -W -D
"cn=user00,cn=Users,dc=gs,dc=novaglobal,dc=com,dc=sg" 




web.xml 

-
 
   
jsp

org.apache.jasper.servlet.JspServlet

fork
false


xpoweredBy
false

3

 
 
 



YourWebApp
 accessible by authenticated users
of the tomcat role
/gridsphere/*
GET
POST
PUT
DELETE


These roles are allowed
access
member


 

BASIC
GridSphere

 

Only 'tomcat' role is allowed to access
this web application
member

  
 

--
 
 
server.xml 
 
 
 
 
ldap://172.168.1.1:389";
connectionName="[EMAIL PROTECTED]"
connectionPassword="x"
referrals="follow"
userBase="CN=Users,DC=gs,DC=novaglobal,DC=com,DC=sg"
userSearch="(sAMAccountName={0})"
userSubtree="true"
roleBase="CN=Users,DC=gs,DC=novaglobal,DC=com,DC=sg"
roleName="member"
roleSubtree="true"
roleSearch="(member={0})"
/> 


-- 
---
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]



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 
> 
>  
> connectionURL="ldap://172.168.1.1:389";
> connectionName="[EMAIL PROTECTED]"
> connectionPassword=""
> referrals="follow"
> userRoleName="member"
> roleSearch="(member={0})"
> roleSubtree="false"
> userSubtree="true"
> />
> 
> --
> 
> web.xml
> 
> 
> 
> 
> YourWebApp
>  accessible by authenticated users of the
> tomcat role
> /*
> GET
> POST
> PUT
> DELETE
> 
> 
> These roles are allowed access
> tomcat
> 
> 
> 
> 
> FORM
> YourWebApp Protected Area
> 
> 
> /gridsphere/index.html
> 
> /gridsphere/autherr.html
> 
> 
> 
> 
> Only 'tomcat' role is allowed to access this web
> application
> tomcat
> 




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



Wrapper cannot find servlet class

2006-08-28 Thread Deepan Chakravarthy
Hello Everyone,
  I am a newbie to tomcat. I had deployed a war file in tomcat. When i
start tomcat i get the following errors.  To give you more details. I am
using gridsphere portlet container. I am deploying a portlet in
gridsphere using tomcat. Please look below for error details.
I guess the problem is with web.xml. I had also attached web.xml,
portlet.xml, layout.xml in the bottom.
Thanks
Deepan Chakravarthy N
www.codeshepherd.com 


Caused by:
javax.servlet.ServletException: Wrapper cannot find servlet class
org.gridlab.gridsphere.provider.portlet.jsr.PortletServlet or a class it
depends on
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1042)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:641)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at
org.gridlab.gridsphere.portletcontainer.impl.SportletDispatcher.include(SportletDispatcher.java:287)
at
org.gridlab.gridsphere.portletcontainer.impl.SportletDispatcher.init(SportletDispatcher.java:72)
at
org.gridlab.gridsphere.portletcontainer.PortletInvoker.initPortletWebApp(PortletInvoker.java:385)
at
org.gridlab.gridsphere.services.core.registry.impl.PortletManager.initPortletWebApplication(PortletManager.java:275)
at
org.gridlab.gridsphere.services.core.registry.impl.PortletManager.initAllPortletWebApplications(PortletManager.java:258)
at
org.gridlab.gridsphere.filters.GridSphereFilter.doFilter(GridSphereFilter.java:67)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595





---
--
portlet.xml


http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";
 version="1.0"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";>


The Classic Hello World
example

HelloPortlet
Hello World


org.gridsphere.gsexample.HelloWorld.portlets
60


text/html
edit
help

en

Hello World
Hello World
hello




Pre-defined custom portlet mode
CONFIGURE
CONFIGURE


User Name
user.name


User Id
user.id


User Full Name
user.name.full


User E-Mail
user.email


Company Organization
user.organization


Last Login Time
user.lastlogintime


Timezone
user.timezone


Preferred Locale
user.locale


Preferred Theme
user.theme








--
web.xml




http://java.sun.com/dtd/web-app_2_3.dtd";>


GridSphere Examples


Provides GridSphere Examples




log4j-selector

org.apache.log4j.selector.ContextJNDISelector



log4j-config
WEB-INF/classes/log4j.properties






PortletServlet

org.gridlab.gridsphere.provider.portlet.jsr.PortletServlet


   

Wrapper cannot find servlet class

2006-08-28 Thread Deepan Chakravarthy
Hello Everyone,
  I am a newbie to tomcat. I had deployed a war file in tomcat. When i
start tomcat i get the following errors.  To give you more details. I am
using gridsphere portlet container. I am deploying a portlet in
gridsphere using tomcat. Please look below for error details.
I guess the problem is with web.xml. I had also attached web.xml,
portlet.xml, layout.xml in the bottom.
Thanks
Deepan Chakravarthy N
www.codeshepherd.com 


Caused by:
javax.servlet.ServletException: Wrapper cannot find servlet class
org.gridlab.gridsphere.provider.portlet.jsr.PortletServlet or a class it
depends on
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1042)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:641)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at
org.gridlab.gridsphere.portletcontainer.impl.SportletDispatcher.include(SportletDispatcher.java:287)
at
org.gridlab.gridsphere.portletcontainer.impl.SportletDispatcher.init(SportletDispatcher.java:72)
at
org.gridlab.gridsphere.portletcontainer.PortletInvoker.initPortletWebApp(PortletInvoker.java:385)
at
org.gridlab.gridsphere.services.core.registry.impl.PortletManager.initPortletWebApplication(PortletManager.java:275)
at
org.gridlab.gridsphere.services.core.registry.impl.PortletManager.initAllPortletWebApplications(PortletManager.java:258)
at
org.gridlab.gridsphere.filters.GridSphereFilter.doFilter(GridSphereFilter.java:67)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595





---
--
portlet.xml


http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";
 version="1.0"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";>


The Classic Hello World
example

HelloPortlet
Hello World


org.gridsphere.gsexample.portlets.HelloWorld
60


text/html
edit
help

en

Hello World
Hello World
hello




Pre-defined custom portlet mode
CONFIGURE
CONFIGURE


User Name
user.name


User Id
user.id


User Full Name
user.name.full


User E-Mail
user.email


Company Organization
user.organization


Last Login Time
user.lastlogintime


Timezone
user.timezone


Preferred Locale
user.locale


Preferred Theme
user.theme








--
web.xml




http://java.sun.com/dtd/web-app_2_3.dtd";>


GridSphere Examples


Provides GridSphere Examples




log4j-selector

org.apache.log4j.selector.ContextJNDISelector



log4j-config
WEB-INF/classes/log4j.properties






PortletServlet

org.gridlab.gridsphere.provider.portlet.jsr.PortletServlet