crossdomain vcard-ldap search

I work in a large company with many departments and we provide mail and jabber for every our employee. We have jabber server (jabberd) with multiple vhosts (100+) and try to move it to ejabberd+ldap
I configured ejabberd+ldap

{ldap_uids, [{"mail", "%u@%d"}]}.
{ldap_filter, "(objectClass=jabberUser)"}.

and add multiple hosts. Also, I was configure vcard_ldap.

All work fine, except vcard search. For example, I have 2 users, bob@server.com and bob@some.server.com - if I search in vjud.server.com I can find bob@server.com, if in vjud.some.server.com - bob@some.server.com. I think it is feature - in ejabberd book says:

Note that mod_vcard_ldap module checks an existence of the user before searching his info in LDAP.

But for me - it is bug. Can I disable this check somehow, or maybe ejabberd can check in all vhosts?

Syndicate content