Hi,

I am trying to use ldapdata to store my edited profile fields in LDAP. It works perfectly for LDAP fields that are mapped to profile fields. What I want to do is, when a user changes his profile (possibly first name, and last name), I want to set the common name (first name followed by last name). I tried using the "PHP to filter attributes: " section, and that doesn't seem to work.

What is the best way to set the Common name?

Thanks,
Arun

Comments

cgmonroe’s picture

Status: Active » Closed (fixed)

Clearing out old support requests - reopen if problem still exists in newest code

That said... the PhP filter makes the attributes R/O so this will not work. The only way I can think of doing this is to add a profile field called Fullname and have a module that uses the form_alter hook to populate it from the first name / last name. Then map this to the cn attributes.