Role-based security implementation in LDAP

前端 未结 3 2146
野趣味
野趣味 2021-02-15 23:26

I\'m working on role-based security implementation in LDAP and Java. Specifically, I have the following objects that I need to represent in LDAP:

  • Users
  • Co
3条回答
  •  佛祖请我去吃肉
    2021-02-16 00:04

    Users: inetOrgPerson

    Collections: organizationalUnit, but beware of trying to replicate your organizational structure in your LDAP directory: this is usually a mistake, as organizations change and users move around the organization. You should consider using the ou attribute.

    Roles: organizationalRole. I used groups of roles as groupOfUniqueNames, but that was a mistake, I should have kept using organizationalRole so that roles are simply recursive.

    Permission: this is just a role really, or an attribute of a role. If you use CMA they are defined in web.xml, not LDAP.

    As I said, don't try to make your LDAP tree mirror your organization. Make it mirror its own organization. I use multiple-valued attributes wherever necessary. I use organizationalUnit mainly for layers within LDAP itself, or where I have broken my rules above ;-)

    OpenLDAP has a referential integrity overlay which can keep a lot of this straight for you.

    There are some very good hints on LDAP structure in Mastering OpenLDAP by Matt Butcher, and a higher level view of it all in Understanding and Deploying LDAP Directory Services by Howes et al.

提交回复
热议问题