• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Domino Authorisation using groups

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've managed to set up jaas authentication with my domino LDAP server, but once authenticated, I'd really like to use that person's groups as their roles in my java application. How can I retrieve a list of the groups that a person is in from the domino LDAP directory for authorization purposes? If this is'nt possible, then what is the normal set up for authorisation when using the domino LDAP server for authentication?

Thanks.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rob, this is how i setup in app web.xml:

<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>Group_Name</role-name>
</auth-constraint>
</security-constraint>

... and this is what i have in tomcat server.xml:


<Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
connectionURL="ldap://ldapserver:389"
userBase="o=MY_COMPANY"
userSearch="(cn={0})"
userSubtree="true"
roleBase=""
roleName="cn"
roleSearch="(member={0})" />

I did not get recursive lookup of role to work as domino does not support nested grouping. let me know if you manange to do this.

luke
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic