tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jay n gaba" <jayg...@rediffmail.com>
Subject Has anyone configured security example using Netscape Directory Structure
Date Fri, 15 Feb 2002 08:59:42 GMT

Hi
Has anyone tried to configure the security example provided with tomcat using jndirealm. It
uses memoryrealm by default. I trying to configure it using netscape directory server running
on unix with tomcat running on windows nt. I am able to connect to ldap but when run the application
it always throws invalid user or password exception. I have made the entries as specified
in How to to-Realm documentation.

please give me some direction. I am attaching the server.xml configuration.

thanks in advance

regards
jay

<Realm   className="org.apache.catalina.realm.JNDIRealm" debug="99"
	connectionName="cn=tomcat,o=abc.org"
	connectionPassword="tomcat"
	connectionURL="ldap://abc2.xyz.org:8389/o=abc.org"
	roleBase="cn=roles,o=abc.org"
	roleName="cn"
	roleSearch="(uniqueMember={0})"
	roleSubtree="false"
	userPassword="userpassword"
	userPattern="cn={0},o=abc.org" 
	digest="SHA"/>

ldap entry : 
dn: cn=tomcat,o=abc.org
cn: tomcat
userPassword: tomcat
sn: Tomcat User
objectclass: top
objectclass: person

# Define an entry to base role searches on
dn: dc=roles,o=abc.org
cn: roles
objectClass: person
sn: Roles Entry

# Define all members of the 'tomcat' role
dn: cn=tomcat,o=abc.org
cn: tomcat
objectClass: groupOfUniqueNames
uniqueMember: cn=tomcat,o=abc.org 


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message