change distinguished name format in OpenLDAP
alfresco, distinguishedname, ldap
Solution
It's an old post but I ran into this myself. The answer was actually pretty simple. If you're using phpldapadmin to create accounts, you need to edit the posixAccount template. Look for the `<rdn></rdn>` tags. Replace the cn with uid and save. Your accounts will now be created with a DN in the "uid=%s,dc=example,dc=com" form instead of "cn=%s,dc=example,dc=com"
http://phpldapadmin.sourceforge.net/wiki/index.php/Templates#Template_Header_Configuration
Problem
i have the following problem: i have installed and OpenLDAP server in which in the people/users tree the distinguished name have the following format: ``` Distinguished Name: cn=Luigi Rossi,ou=people,dc=prisma,dc=local ``` The problem is i wish to replace it using the uid (a.k.a. the account username) instead of the CN in order to have something like this ``` Distinguished Name: uid=lrossi,ou=people,dc=prisma,dc=local ``` I need this because i'm configuring ldap authentication for Alfresco Community 4.0.d and it need the username ``` ldap.authentication.userNameFormat=uid=%s,ou=people,dc=prisma,dc=local ``` Any help?