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

miglius’s picture

Assigned: Unassigned » miglius
Status: Active » Fixed

Thanks for spotting it. Committed the fixed help text.

Frippuz’s picture

How 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.

miglius’s picture

Ldap provisioning constructs DN using ldapauth settings (Bas DNs and UserName attribute)

Frippuz’s picture

oki, 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

Nr. 18’s picture

I 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 42125dc on master, 6.x-2.x, 6.x-1.x by miglius:
    ldap_provisioning: fixed Basic LDAP Attributes help text, #442762 by...

  • Commit 42125dc on master, 6.x-2.x, 6.x-1.x by miglius:
    ldap_provisioning: fixed Basic LDAP Attributes help text, #442762 by...