tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Eric Miller" <>
Subject Re: JNDIRealm authentication
Date Wed, 12 Jun 2002 19:20:53 GMT

You also need to put something similar to the following in your web.xml
file. i.e. the stuff you put in server.xml, just tells Tomcat where to
authenticate. The stuff in web.xml, tells Tomcat what resources are
protected and what roles are required in order to access a particular
resource. I have this in my conf/web.xml and as far as I can tell, it makes
it so that it prompts for a password for any resource that is located on the
server. If it's just a servlet that you are protecting, I think you should
be able to put this in the web.xml file for that context. The Servlet 2.3
spec defines the format of the web.xml file. You can find it at under the Servlets section.



----- Original Message -----
From: "Josh Fenlason" <>
To: "Tomcat" <>
Sent: Wednesday, June 12, 2002 1:18 PM
Subject: JNDIRealm authentication

> I'm trying to do LDAP authentication with Tomcat 4.1.3.  I've read through
> the how to docs on Tomcat's site,
> and tried to follow the example.  My site loads fine, but I never get an
> authentication prompt when I enter my site.  If anyone could sees anything
> wrong with my <Realm/> or has any ideas of where else I should need to
> change things, I would greatly appreciate it.  Thanks.
> ,
> Josh.
> Here's what I entered for the Realm element in
> <tomcat4.1.3_home>/conf/server.xml
> <Realm className="org.apache.catalina.realm.JNDIRealm"
>     connectionName="ou=People,ou=jfenlason_r62DC,ou=jfenlason,l=Arden
> Hills,o=Bethel"
>     connectionPassword="secret"
>     connectionURL="ldap://"
>     roleName="oid"
>     roleSearch="(uniqueMember={0})"
>     userPassword="userPassword"
>     userPattern="oid={0},ou=People,ou=jfenlason_r62DC,ou=jfenlason,l=Arden
> Hills,o=Bethel"
>     debug="99"/>
> Here's the AuthLDAPURL that works with Apache1 doing the authentication
> rden Hills,o=Bethel"
> --
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message