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

Tomcat Authentication with Directory Server Roles

 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can authenticate Tomcat users against a Sun One Directory Server using groups. I configure my realm like so:

and it works fine.

Unfortunately, the powers that be use Roles instead of Groups and I can't get authentication against Roles to work. Roles are represented as virtual attributes of a user as opposed to groups which contain uniquemember records (LDIF with some attributes snipped):



Now I configure my Tomcat server like so:


Authentication appears to work according to the Tomcat log:


but I get forwarded to an HTTP 403 error. This indicates to me that the user's roles are not being found. Can anyone point me in the right direction?
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't found a solution to this problem.
Instead, the powers that be have created a tree for my users and I'm free to use groups.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic