File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNDIRealm and digest

 
Oliver Baum
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic