I am new to LDAP. I have to implement a User and role management with Open LDAP in java. Currently i am using open LDAP 2.4. I am planning to map the following required entities to LDAP objects like:
User: Different users identified by user id/ password. I am mapping it with inetOrgPerson object of LDAP.
Group: it will be group of users. I am mapping it with organzationalUnit in ldap.
Role: roles could be group of permissions. I am mapping this with groupOfNames object. I have tried with organizationalRole, but didn't find any way to link groups and users. Is there any way?
Permission: permissions like 'READ', 'WRITE' etc. To which object I should map this so that I can include different permission to a Role and then associate role to groups and users?
So, I am highly confused about permissions and Roles, how would this could be mapped in LDAP. Also, What should be the ldif file format for these two, Roles and permissions. As much as possible, I want to keep everything in LDAP for user management rather than RDBM.