File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNDIRealm and digest