Ldap uids and JID problem

Hi all,

I have installed successfuly an ejabberd 2.1.6 on a debian lenny but I have a problem with jabber id.
Here is my ldap configuration :
{host_config, "example.com",
[
{auth_method, ldap},
{ldap_servers, ["ldap.example.com"]},
{ldap_port, 389},
{ldap_base, "ou=people,dc=example,dc=com"},
{ldap_uids, [{"mail", "%u@example.com"},{"uid","%u"}]}
]
}.

I want my users to be able to login with their mail or their ldap uid. The authentication works fine with this configuration.
But the problem is that ejabberd considers that its 2 differents jabber id. So when a user adds contacts when connecting with its mail, the user won't retrieve its contacts when connecting with its uid.

How can I do to make ejabberd understand that when connecting with mail or uid it must be the same jabber id ?

Thanks a lot (sorry for my poor english)

Syndicate content