Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Sandip Patel
User export on Create in LDAP + Liferay
2 gennaio 2013 5.58
Risposta

Sandip Patel

Punteggio: Regular Member

Messaggi: 189

Data di Iscrizione: 4 gennaio 2011

Messaggi recenti

Hi,

I want to export a user to LDAP while User is created on Liferay.

While doing it Liferay is giving me following error.

Caused by: javax.naming.InvalidNameException: sAMAccountName=testldap1,dc=test,dc=local,dc=com: [LDAP: error code 64 - 00002073: NameErr: DSID-03050BBB, problem 2005 (NAMING_VIOLATION), data 0, best match of:
'sAMAccountName=testldap1,dc=test,dc=local,dc=com'
]; remaining name 'sAMAccountName=testldap1,dc=test,dc=local,dc=com'
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3025)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2840)
at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:420)
at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:377)
at com.sun.jndi.toolkit.ctx.ComponentContext.p_bind(ComponentContext.java:614)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.bind(PartialCompositeContext.java:

Shall we need any setting on LDAP ??

Propeties for LDAP are set properly.. Existing users fields are exportled successfully Now.

Please HELP!!!!!!
Ádám T. Nagy
RE: User export on Create in LDAP + Liferay
11 aprile 2013 4.27
Risposta

Ádám T. Nagy

Punteggio: New Member

Messaggi: 6

Data di Iscrizione: 1 giugno 2012

Messaggi recenti

Dear Sandip,

I came across the same issue and I could solve it by mapping LDAP attribute: cn (instead of sAMAccountName) to the Liferay Attribute: screenName.

You might check out the following, by setting the property in portal-ext.properties:

ldap.user.mappings.[id_number]=screenName=cn\npassword=userPassword\nemailAddress=mail\nfirstName=givenName\nlastName=sn\ngroup=memberOf

Where [id_number] is the id of the ldap server.

I hope this helps,
Adam
Rajender Reddy Nagulapalle
RE: User export on Create in LDAP + Liferay
10 giugno 2013 22.08
Risposta

Rajender Reddy Nagulapalle

Punteggio: Junior Member

Messaggi: 33

Data di Iscrizione: 20 maggio 2011

Messaggi recenti

Hi Adam,
I am having same problem but when i am map cn with screenname i am getting ScreenNAmeException while importing.

Can you please tell me how did you resolve import exception?
Amit Doshi
RE: User export on Create in LDAP + Liferay
11 giugno 2013 0.33
Risposta

Amit Doshi

Punteggio: Liferay Master

Messaggi: 549

Data di Iscrizione: 29 dicembre 2010

Messaggi recenti

Hi Rajender,

It is not generic, it depends on the configuration of the LDAP or AD Server.

SceenNameException in your case might be possible that you are putting some special characters in the screenName.

Can you please put your log, it will help us to identify the problem.

Thanks & Regards,
Amit Doshi