cancel
Showing results for 
Search instead for 
Did you mean: 

Skipping email sync in ldap

samnaction
Champ in-the-making
Champ in-the-making
I need to sync users using ldap except the email address.

ldap.synchronization.userIdAttributeName=sAMAccountName

ldap.synchronization.userFirstNameAttributeName=givenName

ldap.synchronization.userLastNameAttributeName=sn

#ldap.synchronization.userEmailAttributeName=mail

ldap.synchronization.userOrganizationalIdAttributeName=company

ldap.synchronization.defaultHomeFolderProvider=userHomesHomeFolderProvider

ldap.synchronization.groupIdAttributeName=cn

ldap.synchronization.groupType=Security

ldap.synchronization.personType=

ldap.synchronization.groupMemberAttributeName=member

synchronization.synchronizeChangesOnly=false

synchronization.import.cron=0 0/15 * * * ?



Here is my part of global property. Eventhough I commented the email attribute it is updating the email address of users. How to skip email sync?

2 REPLIES 2

mrogers
Star Contributor
Star Contributor
You are going to have to change the spring configuration via a custom over-ride.   

In particular the userRegistry bean personMapping property.

samnaction
Champ in-the-making
Champ in-the-making
Can you tell me which file should I modify. I am not into spring configuration.