I am trying to map drupal roles of a user to organisationalUnitName(OU) attribute in user entry of LDAP directory. The mapping I tried is:

[current-user:roles] -> [ou] (or organisationalUnitName)

However with the above mapping I am getting contraints voilation error with above mapping.
What is is the suggested token value and syntax for extracting drupal role names which can then be mapped to ou attribute in LDAP. Once mapped I can use this ou entry to create dynamic group (using dynlist overlay) using the follwing (example):
memberURL: ldap:///ou=people,o=conjurenet,dc=conjurenet,dc=com??one?(ou=administrator)

My user entries dn is ou=people,o=my company,dc=mycompany,dc=com


johnbarclay’s picture

Title: Mapping drupal role names to LDAP » LDAP User: Mapping drupal role names to LDAP
Category: support » feature
Status: Active » Postponed

There is no mapping available for drupal roles to ldap. This will have to wait until drupal 8 unless someone submits a patch with simpletest coverage.

larowlan’s picture

Issue summary: View changes
Status: Postponed » Closed (won't fix)

no update for > 12 months, no patches - closing