-
Notifications
You must be signed in to change notification settings - Fork 2
Personalize role mapping #18
Comments
Having also a protected method to retrieve the defaults options would be great. This would permit to set the default search filter in the class. |
If there are multiple standard ways (I assume memerof and posixGroup are standard schemes) wouldn't it be better to have a RoleResolverInterface and custom implementations that can be used? |
I think you're right. I'm a pretty newby in Silex/Symfony developpement so I didn't know this interface. I will take a look at it. |
Again I think you're right, but just for fun, I've pushed a branch new_methods in my repo. |
Looks reasonable. Say,
and then there would be another config option:
and the user provider would do:
The advantange, IMO, is that it would even allow to use multiple resolver (chain them) and other custom processing. Let me think a little more about, tho... |
Hello, |
With my open Ldap schema, group mapping is not done with the "memberof" attribute in the user object. The mapping is done like that :
In fact, role mapping can rely on others conditions than groups, so, could you please extract the roles extraction in a protected method of the LdapUserProvider, so everybody could derivate the class to implement their own Role mapping.
I could provide the class for role to group mapping with the posix ldap schema.
The text was updated successfully, but these errors were encountered: