This seems like a critical one as ldap data to drupal role mapping can be quite complex.
hook_ldap_authorization_map_to_group($username, $ldap_user_object or attributes)
This seems like a critical one as ldap data to drupal role mapping can be quite complex.
hook_ldap_authorization_map_to_group($username, $ldap_user_object or attributes)
Comments
Comment #1
johnbarclay commentedThis hook is looking like this so far:
hook_ldap_authorization_maps_alter(&$user, &$user_ldap_entry, &$ldap_server, &$ldap_authz_map_config, &$authz_ids)
this will allow the modules implementing the hook to:
- have $user, $user_ldap_entry, $ladap_server, and $ldap authorization configuration to work with in their mappings
- know, add to, and affect mappings from other authorization modules ($authz_ids)
Comment #2
johnbarclay commentedNot sure if I understand this use case, but looks easy to incorporate:
#732780: Groups only allows single level OU in users's DN (does not allow multiple level OU)
Comment #3
johnbarclay commentedComment #4
johnbarclay commentedThis should be implemented with tokens and wildards. Moving to #1281422: LDAP Authorization - mapping to roles with wildcards