[jboss-dev-forums] [Design of JBoss Portal] - Re: LDAP Support expectations
bdaw
do-not-reply at jboss.com
Fri Nov 10 13:20:07 EST 2006
Sorry for not responding for so long.
| For now, can you please give me an understanding of the MembershipModule?
|
| - where is, e.g., getName() ?
| - I can see: assignRoles(User user, Set roles)
| does this mean, that all roles are only assigned to the user?
|
The whole idea of MembershipModule interface is to decouple Role and User. The reason is that in LDAP the relationship beetween them can be defined in several different ways - it's not so straight forward like in DB. So the main difference is NOT to have Role.getUsers() method. So Role and RoleModule know nothing about User and vice versa. And the functionallity is moved to MembershipModule to be able to resolve different ways of relationships just by swaping this module.
I don't understand what .getName() method are you looking for there?
anonymous wrote :
| Let's imagine a "dynamic role assignment" feature with:
| - assignRoles(Group group, Set roles), which adds roles to a group
| - assignUser(Group group, Set users), which adds members to a group
|
|
I was discussing your ideas with julien. There are few things in this subject:
1) Roadmap and features for 2.6 are already defined and we don't want to change them. The things you propose can be discussed to be placed in 3.0 roadmap - there is a plan to rethink and redesign this part already. Adding groups in the shape you descrived will need some changes in management portlets and other work so it's not an option at the moment.
2) Still, you can implement this functionality and we can integrate it in portal codebase as OPTIONAL. So simply it won't be enabled by default, but it can be used by changing portal configuration. If you agreed on this your code will need to meet few conditions:
- it must be written in non intrusive way for what is in portal codebase. So it can't require changes to portal classes (or at least not much).
- if you use DB your code can't breake the current schema. So you will probably need to add separate hibernate configuration with own tables - not a big effort as currently identity, portal objects and security schemas are also separated.
I think it can be easily done. You can just add Group object and GroupModule that manage the relationship with User and Role. We can advise you how to plug into hibernate and etc in non intrusive way.
3) It may be possible to achive what you want just by providing implementation of LoginModule. Look at org.jboss.portal.identity.auth.IdentityLoginModule. It's portal implementation that plugs into JAAS in AS.
So it could simply discover the group membership of the authenticating user and bind the relation with portal roles.
How do you feal about it?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984994#3984994
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984994
More information about the jboss-dev-forums
mailing list