-
1. Re: LDAP nested users/roles
wireframe Mar 1, 2002 12:15 PM (in response to wireframe)to clarify a bit, here's the structure of the ldap we're going to be using:
-root
-users
-division1
-person1
-person2
-division2
-person3
-person4
-roles
-group1
-role1
-role2
-group2
-role3
-role4
the divisions are organizationalGroups, and the groups are groupOfNames, the roles are groupOfUniqueNames.
has anyone out there used something similar? i'm really questioning if JBOSS is using the full power of the LDAP. one of LDAP's greatest assests is the ability to nest users inside organizationalGroups and create a tree structure. It might be possible to write a custom Login Module, but it seems like this functionality is basic enough that other people MUST have done it. -
2. Re: LDAP nested users/roles
wireframe Mar 1, 2002 2:43 PM (in response to wireframe)Sorry to sound so crazy, but has ANYONE out there done subtree searches?? With either user's stored in different organizational groups, or with roles stored in organizational groups!? this seems ludicrous that there is no one out there that has gone through this.
-
3. Re: LDAP nested users/roles
jwkaltz Mar 4, 2002 8:19 AM (in response to wireframe)My 2 euro-cents:
the EJB specification knows only roles, not nested roles. More precisely, it only supports asking whether a user is in a specific role or not - there is no concept of nested roles.
For our ldap authentication, I have written a custom LoginModule, for the following reason : the analysts cannot decide how they want to represent roles in ldap. Therefore I want to have maximum flexibility, knowing that the role representation can change any minute. In your custom login module, you have full control of the getRoles() code for a given user and this is reassuring. As far as I can tell, there is no "official" way in LDAP to represent user roles, so it seems impossible for the JBoss LDAPLoginModule to provide for all possibilities in any case.