[jitsi-users] Configuration of LDAP request


#1

Hello,
I'm using Jitsi 1.0-beta1-build.3651 on Ubuntu 10.4 and want to use LDAP service for searching contacts. But it doesn't work, because Jitsi makes LDAP request similar to following one:

ldapsearch -H ldap://host.mydomain.com -x -a always -z 40 -b "ou=Employee,o=Company Corp" "(|(|(|(|(|(|(|(|(uid=*gust*)(gn=*gust*))(sn=*gust*))(cn=*gust*))(givenname=*gust*))(surname=*gust*))(commonname=*gust*))(displayName=*gust*))(mail=*gust*))"

with following result: 80 Other (e.g., implementation specific) error, NDS error: remote failure (-635)

The error is caused by missing LDAP attribute mapping to the attributes in the query - simply Jitsi asks for attributes which LDAP server doesn't know.
Is there any possibility how to set the attributes, which is LDAP server asked for?

Thank You in advance
Best Regards
Petr Valik


#2

Hi Petr,

Le 09/09/11 08:28, Petr.Valik@tieto.com a �crit :

Hello,
I'm using Jitsi 1.0-beta1-build.3651 on Ubuntu 10.4 and want to use LDAP service for searching contacts. But it doesn't work, because Jitsi makes LDAP request similar to following one:

ldapsearch -H ldap://host.mydomain.com -x -a always -z 40 -b "ou=Employee,o=Company Corp" "(|(|(|(|(|(|(|(|(uid=*gust*)(gn=*gust*))(sn=*gust*))(cn=*gust*))(givenname=*gust*))(surname=*gust*))(commonname=*gust*))(displayName=*gust*))(mail=*gust*))"

with following result: 80 Other (e.g., implementation specific) error, NDS error: remote failure (-635)

The error is caused by missing LDAP attribute mapping to the attributes in the query - simply Jitsi asks for attributes which LDAP server doesn't know.

Do you know the attribute that your LDAP server does not recognize ? BTW what is your LDAP server (openldap, ...) ?

Is there any possibility how to set the attributes, which is LDAP server asked for?

You can find attributes that Jitsi ask for in src/net/java/sip/communicator/impl/ldap/LdapDirectoryImpl.java

Regards,

···

--
Seb

Thank You in advance
Best Regards
Petr Valik


#3

Hi Sebastien,
Sorry for my delayed response, but the problem was solved by changing the LDAP server.
The old one used was Novell NDS. After change to AD server, it is OK. AD server ignores the request for nonexisting attributes without any error.

Thank You
Best Regards
Petr

···

-----Original Message-----

From: Sebastien Vincent [mailto:seb@jitsi.org]

Sent: Friday, September 09, 2011 9:18 AM
To: users@jitsi.java.net
Subject: [jitsi-users] Re: Configuration of LDAP request

Hi Petr,

Le 09/09/11 08:28, Petr.Valik@tieto.com a écrit :

Hello,
I'm using Jitsi 1.0-beta1-build.3651 on Ubuntu 10.4 and want to use LDAP service for searching contacts. But it doesn't work, because Jitsi makes LDAP request similar to following one:

ldapsearch -H ldap://host.mydomain.com -x -a always -z 40 -b "ou=Employee,o=Company Corp" "(|(|(|(|(|(|(|(|(uid=*gust*)(gn=*gust*))(sn=*gust*))(cn=*gust*))(givenname=*gust*))(surname=*gust*))(commonname=*gust*))(displayName=*gust*))(mail=*gust*))"

with following result: 80 Other (e.g., implementation specific) error, NDS error: remote failure (-635)

The error is caused by missing LDAP attribute mapping to the attributes in the query - simply Jitsi asks for attributes which LDAP server doesn't know.

Do you know the attribute that your LDAP server does not recognize ? BTW
what is your LDAP server (openldap, ...) ?

Is there any possibility how to set the attributes, which is LDAP server asked for?

You can find attributes that Jitsi ask for in
src/net/java/sip/communicator/impl/ldap/LdapDirectoryImpl.java

Regards,
--
Seb

Thank You in advance
Best Regards
Petr Valik