little help for ldap method authentication.

Hallo.
I've debian stable and I've installed ejabberd 1.1.2 from www.backports.org.
I have a ldap database with a great number of mail accounts.
I want to authenticate jabber users over ldap just to use the same mail user and the same mail password.
Sorry for my bad english, I'm italian.
I've configured ejabberd.cfg with my ldap parameters but when I configure an account in my jabber client, for example user=mauro.sanna with my mail password, it says "read error".
In ejabberd.log it seems that there aren't queries to ldap server.
ejabberd and ldap server (slapd) are on the same machine.
Can I have a little help on configuring ejabberd to query ldap?
Thank you.

any help? :-(

any help? :-(

Is any logs in

Is any logs in /var/log/messages or syslog? with loglevel 256 in slapd.conf

No, there aren't any

No, there aren't any log.
That's why I think that ejabberd doesn't any queries to slapd.

Maybe in

post please part of /var/log/jabber/ejabberd.log

That's part of my

That's part of my ejabberd.log, there is anything else regarding ldap connections.

=INFO REPORT==== 2006-12-18 19:01:12 ===
I(<0.206.0>:ejabberd_listener:90): (#Port<0.306>) Accepted connection {{192,168,5,37},59092} -> {{192,168,4,7},5222}

=INFO REPORT==== 2006-12-18 19:02:10 ===
I(<0.514.0>:ejabberd_listener:90): (#Port<0.641>) Accepted connection {{192,168,5,37},59117} -> {{192,168,4,7},5222}

=INFO REPORT==== 2006-12-18 19:10:50 ===
I(<0.224.0>:ejabberd_listener:90): (#Port<0.340>) Accepted connection {{192,168,5,37},58701} -> {{192,168,4,7},5222}

=INFO REPORT==== 2006-12-18 19:11:41 ===
I(<0.224.0>:ejabberd_listener:90): (#Port<0.347>) Accepted connection {{192,168,5,37},36526} -> {{192,168,4,7},5222}

I've try also an external

I've try also an external script in perl downloaded from http://www.ejabberd.im/extauth.
I've set up my parameters and run at command line.
It connect to my ldap server but when I call it from ejabberd it seems that doesn't connect to ldap server as I see no log informations.
This is part of ejabberd.cfg

{auth_method, external}.
{extauth_program, "/home/mauro/check_pass_ldap_perl.pl"}.

Re: little help for ldap method authentication.

Show your config file and an ldif entry of a user.

here is a part of my config

here is a part of my config file:

{auth_method, ldap}.
{ldap_servers, ["localhost"]}.
{ldap_uidattr, "uid"}.
{ldap_base, "ou=People,dc=xxx,dc=xxx,dc=xx"}.
{ldap_rootdn, "cn=xxx,dc=xxx,dc=xxx,dc=xx"}.
{ldap_password, "xxx"}.

Here is a ldif entry of a user:

dn: uid=xxx.xxx,ou=People,dc=xxxxx,dc=xxxxx,dc=xx
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
mail: xxx.xxx@xxxxx.xxxxx.xx
uid: xxx.xxx
cn: xxx xxx
sn: xxx
uidNumber: 1004
gidNumber: 1004
homeDirectory: /var/vmail/xxx.xxx
userPassword:: e2NyeXB0fWpWTkpGbzNvMkk3TXc=

Re: little help for ldap method authentication.

Config looks ok. What *exactly* version of ejabberd and Erlang do you use? Debian package had some LDAP problem with Erlang R11B-2. Make sure you have the latest versions.

I'm using debian stable with

I'm using debian stable with ejabberd and erlang backports from www.backport.org.
Erlang version is 1:11 while ejabberd is 1.1.2.

It's incomplete versions.

It's incomplete versions. Please, specify full erlang and ejabberd versions. What's exactly shown on

apt-cache show erlang-nox

and

apt-cache show ejabberd

?

apt-cache show

apt-cache show erlang-nox
Package: erlang-nox
Version: 1:11.b.2-4~bpo.1

apt-cache show ejabberd
Package: ejabberd
Version: 1.1.1-5~bpo1

I think you should upgrade

I think you should upgrade ejabberd to 1.1.2-4~bpo2, which is in backport database already. It has a LDAP-related bugfix, which is important, when ejabberd is running on erlang 1:11.b.2.

Syndicate content