cancel
Showing results for 
Search instead for 
Did you mean: 

Break apart LDAP attributes

gman
Champ in-the-making
Champ in-the-making
I can connect to AD using the LDAP subsystem and can import/synch user information. But my organizations AD is part of a larger forest and the AD accounts I'm accessing does not contain email information. Is there some way to programmatically take the returned LDAP attributes and manipulate them and set the Alfresco user attributes.

For example, in our AD we have displayName as ' Last, First ' and the corresponding email address for this user is first.last@something.com. I want to be able to retrieve and split the displayName value from AD so I can set the Last name, First name and email address when the users is brought into Alfresco from AD. Is this possible and where should I look to get an idea how to do this.
2 REPLIES 2

jpfi
Champ in-the-making
Champ in-the-making
Hi,
overriding the whole ChainingSynchronizer & UserRegistry stuff that is acting behind the scene of subsystems is not "the easiest" job.
Instead of it may be simpler to import displayname (maybe you need to extend cmSmiley Tongueerson model) and add a OnPropertiesChanged-Policy for cmSmiley Tongueerson that takes displayname & generates the correct mailaddress and sets mailadress-property.
Cheers,
Jan

gman
Champ in-the-making
Champ in-the-making
Thanks for the reply. What I've decided to do for now is import the data as is and when someone is assigned to a project that requires access to Alfresco I will simply go into Alfresco Explorer, find the user and change the attributes as needed. At some point in time we can change our AD setup to include the attributes that will fit into Alfresco.