cancel
Showing results for 
Search instead for 
Did you mean: 

Creating username with last name instead of firstname

samnaction
Champ in-the-making
Champ in-the-making
I configured ldap in alfresco 4.2e. Now the user profile get created when the user login with their system credential. But the thing is only the first name is updated in the user profile and the last name not get updated.

For eg: Nazeer Sameer this is my full name and the username is created with Nazeer. My colleagues are not familiar with my First name. This creates a confusion. How to update both the name or create username with the last name rather than the first name.

Here is my ldap configuration I added in the global properties file


### ACtive Directory Configuration ###
authentication.chain=ldap1:ldap,alfrescoNtlm1:alfrescoNtlm
ldap.authentication.active=true
ldap.authentication.java.naming.security.authentication=simple
ldap.authentication.userNameFormat=%s
ldap.authentication.allowGuestLogin=false
ldap.authentication.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
ldap.authentication.java.naming.provider.url=ldap://192.168.58.1:389
ldap.authentication.escapeCommasInBind=false
ldap.authentication.escapeCommasInUid=false
ldap.synchronization.active=true
ldap.synchronization.queryBatchSize=1000
ldap.synchronization.groupDifferentialQuery=(&(objectclass=nogroup)(!(modifyTimestamp<\={0})))
ldap.synchronization.personQuery=(&(objectclass=user)(userAccountControl\:1.2.840.113556.1.4.803\:\=512))
ldap.synchronization.personDifferentialQuery=(& (objectclass=user)(!(modifyTimestamp<\={0})))
ldap.synchronization.groupQuery=(objectclass\=group)
ldap.synchronization.modifyTimestampAttributeName=modifyTimestamp
ldap.synchronization.timestampFormat=yyyyMMddHHmmss'.0Z'
ldap.synchronization.userIdAttributeName=sAMAccountName
ldap.synchronization.userFirstNameAttributeName=givenName
ldap.synchronization.userLastNameAttributeName=sn
ldap.synchronization.userEmailAttributeName=mail
ldap.synchronization.userOrganizationalIdAttributeName=msExchALObjectVersion
ldap.synchronization.defaultHomeFolderProvider=userHomesHomeFolderProvider
ldap.synchronization.groupIdAttributeName=cn
ldap.synchronization.groupType=Nogroup
ldap.synchronization.personType=user
ldap.synchronization.groupMemberAttributeName=member
synchronization.synchronizeChangesOnly=true
cifs.enabled=false
2 REPLIES 2

mlagneaux
Champ on-the-rise
Champ on-the-rise
Hello,

User account username is mapped with the ldap.synchronization.userIdAttributeName property. In your case, sAMAccountName is used as the username. So, in your ldap, you should have "Nazeer" in the sAMAccountName attribute of your account. You can easily change this by choosing another attribute as username in ldap.synchronization.userIdAttributeName property.
However, there is a warning. In Alfresco, username is not supposed to change. So, you have to take care of such a modification on an existing repository. You should make a test on a test environment.

samnaction
Champ in-the-making
Champ in-the-making
I have given
ldap.synchronization.userIdAttributeName=commonName
but still it is creating using the first name.