cancel
Showing results for 
Search instead for 
Did you mean: 

Editing First Name and Last Name in an AD synched instance

jjacobwip
Champ in-the-making
Champ in-the-making
Hi,

Our Alfresco instance is configured for AD authentication and synchronization and the first name and last name for users are pulled from the below properties. However, some users prefer to have their Common Name value displayed in the system instead of the givenName, sn combination.

I tried changing the below config to pull CN attribute but it does not look good on the system because the CN contains the full name of the user. For e.g - the name now appears as John Doe, Doe. The format is Common Name, SN. I tried removing lastName attribute from the LDAP sync properties but still it gets pulled from AD.

ldap.synchronization.userFirstNameAttributeName=givenName
ldap.synchronization.userLastNameAttributeName=sn

Whats the correct way to change user details? These fields in edit profile page is disables as they are synched up with AD.

We are on 4.0.2

Thanks
Jerry
1 REPLY 1

jjacobwip
Champ in-the-making
Champ in-the-making
Hi,

I finally replaced LDAPUserRegistry (responsible for LDAP sync) class with my own class that has my custom implementation. i.e. identify the firstName and lastName from CN attribute and set it on cm:firstName and cm:lastName properties. I triggered a full sync after this.

Thanks
Jerry