It's not a secret anymore!*
The moose likes Tomcat and the fly likes JNDIRealm and digest Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JNDIRealm and digest" Watch "JNDIRealm and digest" New topic
Author

JNDIRealm and digest

Oliver Baum
Greenhorn

Joined: Jan 12, 2005
Posts: 16
Hi
I try to encrypt the password in a JNDIRealm for a LDAP authentication with tomcat 6.0.10.

Here my context.xml from the tomcat conf-directory:
<Context>

<WatchedResource>WEB-INF/web.xml</WatchedResource>


<Realm className="org.apache.catalina.realm.JNDIRealm"
authentication="simple"
digest="MD5"
connectionName="CN=LDAPUser,OU=LDAP Authentifizierung,OU=Administration,DC=WWK-GROUP,DC=COM"
connectionPassword="digestpassword"
connectionURL="ldap://ldap1.wwk-group.com:389"
debug="99"
referrals="follow"
roleBase="OU=WWK-PROGRAMME,DC=wwk-group,DC=com"
roleName="cn"
roleSearch="(member={0})"
roleSubtree="true"
userBase="OU=WWK-ZD,DC=wwk-group,DC=com"
userRoleName="member"
userSearch="sAMAccountName={0}"
userSubtree="true"/>
</Context>

But it doesn't work. What else must I do?

Thanks for help
Olly
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JNDIRealm and digest
 
Similar Threads
Tomcat and LDAP (connection problem)
Tomcat & MS Active Directory
Need help to read JNDIRealm inforamtion from my application.xml file in Tomcat
Tomcat 5.5.26 LDAP Problem
WLS6.1 - Configuring realm for openLdap