Creating username with last name instead of firstname
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2014 04:38 AM
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
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:alfrescoNtlmldap.authentication.active=trueldap.authentication.java.naming.security.authentication=simpleldap.authentication.userNameFormat=%sldap.authentication.allowGuestLogin=falseldap.authentication.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactoryldap.authentication.java.naming.provider.url=ldap://192.168.58.1:389ldap.authentication.escapeCommasInBind=falseldap.authentication.escapeCommasInUid=falseldap.synchronization.active=trueldap.synchronization.queryBatchSize=1000ldap.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=modifyTimestampldap.synchronization.timestampFormat=yyyyMMddHHmmss'.0Z'ldap.synchronization.userIdAttributeName=sAMAccountNameldap.synchronization.userFirstNameAttributeName=givenNameldap.synchronization.userLastNameAttributeName=snldap.synchronization.userEmailAttributeName=mailldap.synchronization.userOrganizationalIdAttributeName=msExchALObjectVersionldap.synchronization.defaultHomeFolderProvider=userHomesHomeFolderProviderldap.synchronization.groupIdAttributeName=cnldap.synchronization.groupType=Nogroupldap.synchronization.personType=userldap.synchronization.groupMemberAttributeName=membersynchronization.synchronizeChangesOnly=truecifs.enabled=false
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2014 04:57 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2014 09:33 AM
I have given
ldap.synchronization.userIdAttributeName=commonName
but still it is creating using the first name.
