Closed (fixed)
Project:
LDAP integration
Version:
6.x-1.0-alpha2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2009 at 16:18 UTC
Updated:
24 Mar 2009 at 16:37 UTC
This module is working great, I have it authenticating with our AD and can use the LDAP attribute mapping to pull phone, email and department information that can be viewed in the 'My account' page.
What I'd like to do now is use this information to pre-populate fields in a CCK form I have created. Is this possible ? If it is, how do you do this ?
Thanks in advance for any help you can give.
Comments
Comment #1
miglius commentedLDAP integration can sync LDAP data with users' profiles. You should write your own module which takes data from the profiles and pre populate cck fields.
Comment #2
miglius commentedComment #3
whitingx commentedThanks very much for your help with this.
I've synced the relevant LDAP data with the user profile fields and got them to display in the CCK fields using the following default value PHP code;
Is there a way to combine my profile_ad_firstname with my profile_ad_surname to automatically add the users full name to the CCK field ?
Thanks very much.
Comment #4
whitingx commentedComment #5
miglius commentedFrom your code the context is unclear. Why can't you change
$user->profile_ad_firstnameto a$user->profile_ad_firstname .' '. $user->profile_ad_surname?Comment #6
miglius commentedI'm changing status to won't fix as this is not related to ldap* modules.
Comment #7
whitingx commentedFantastic, worked perfecly, thank you very much for all your assistance with this.
Comment #8
whitingx commented