Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since several releases of ldap_provisioning 6.x-1.x-dev, the LDIF template you can write in "Basic LDAP attributes" section of the admin page has changed its syntax. You could specify uids, first names, etc... using the following variables : %uid, %first_name, etc... but the special token has changed from "@" to "!".
The help text below the text area has not been changed, unfortunately and you can still read the following (wrong) statement :
"Customize the rest LDAP attributes in LDIF style. Available variables are: %uid, %base_dn, %mail, %first_name, %last_name, %pass.
Comments
Comment #1
miglius CreditAttribution: miglius commentedThanks for spotting it. Committed the fixed help text.
Comment #2
Frippuz CreditAttribution: Frippuz commentedHow do I change the dn committed to the LDAP-server?
Today the dn is
"dn: uid=[uid],dc=[dc1],dc=[dc2]"
I've tried to enter the following the "Basic LDAP attributes" box:
dn:cn=!first_name !last_name,ou=People,!base_dn
but this row isn't read.
I'm sorry if I ask this question in the wrong place.
Comment #3
miglius CreditAttribution: miglius commentedLdap provisioning constructs DN using ldapauth settings (Bas DNs and UserName attribute)
Comment #4
Frippuz CreditAttribution: Frippuz commentedoki, I got that to work - the only problem is that it would be nice if one could set which ou the user should be added to dynamically - by role perhaps. Today it is only possible to set the ou by entering it in the base DN field. (ou=People,dc=organisation,dc=org)
This is perhaps a feature request.
Thanx
//Fredric
Comment #5
Nr. 18 CreditAttribution: Nr. 18 commentedI used a base DN entries to place the new registered people and another one to read out other locations than the ou=people.
Dynamic support would be great to have, for instance if you want to separate your personal accounts with the business accounts in the LDAP tree automatically.