Closed (fixed)
Project:
LDAP integration
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2009 at 17:46 UTC
Updated:
30 Mar 2012 at 19:37 UTC
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
Comment #1
cgmonroe commentedClearing 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.