AnsweredAssumed Answered

get user profile (profile at least firstName, lastName & mail) in alfresco while authentication of open ldap

Question asked by satya.kolliboina@gmail.com on Sep 24, 2013
Latest reply on Sep 25, 2013 by satya.kolliboina@gmail.com
we integrated alfresco 4.2.c with open ldap to authenticate users.
If first time user login to alfresco then alfresco authenticates user from ldap and creating the user.

That created user profile have firstName only. But we need user profile sync with at least these attributes of ldap: firstName, lastName and email.

In otherwords, Alfresco authenticating via ldap But its failing while user mapping. That means alfresco creating user without lastName and mail etc., attributes of ldap.

Let us know development approach, How we can get user profile in alfresco with basic attributes like lastName and mail while ldap authentication.

Please refer the below error stack trace on the console:
——————————————————–

2013-09-24 10:50:09,102  INFO  [security.sync.ChainingUserRegistrySynchronizer] [http-apr-8080-exec-2] Synchronizing users and groups with user registry 'ldap1'
2013-09-24 10:50:09,105  INFO  [security.sync.ChainingUserRegistrySynchronizer] [http-apr-8080-exec-2] Retrieving all groups from user registry 'ldap1'
2013-09-24 10:50:09,858  ERROR [security.sync.ChainingUserRegistrySynchronizer] [http-apr-8080-exec-2] Synchronization aborted due to error
org.alfresco.repo.security.authentication.AuthenticationException: 08240014 LDAP authentication failed.
   at org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl.buildInitialDirContext(LDAPInitialDirContextFactoryImpl.java:119)

Caused by: javax.naming.AuthenticationException: [LDAP: error code 32 - No Such Object]
   at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:290)

2013-09-24 10:50:09,946  WARN  [security.sync.ChainingUserRegistrySynchronizer] [http-apr-8080-exec-2] User authenticated but failed to sync with user registry
org.alfresco.repo.security.authentication.AuthenticationException: 08240014 LDAP authentication failed.
   at org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl.buildInitialDirContext(LDAPInitialDirContextFactoryImpl.java:119)

Outcomes