Miranda search don't work

Hello. I have installed ejabberd and now i am trying to get work search (mod_vcard_ldap). Psi successfully search users, but miranda doesn't. Can you help me with this problem?

Here my ejabberd config:

  {mod_vcard_ldap, [
                        {host, "users.@HOST@"},
                        {ldap_servers, ["10.0.1.50"]},
                        {ldap_port, 3268},
                        {ldap_base, "DC=company,DC=ru"},
                        {ldap_rootdn, "CN=mail,OU=Users,DC=company,DC=ru"},
                        {ldap_password, "password"},
                        {ldap_uids, [{"jabberID","%u@jabber.company.ru"}]},
                        {ldap_filter, "(&(jabberActive=TRUE)(!(UserAccountControl:1.2.840.113556.1.4.803:=2)))"},
                        {ldap_vcard_map, [
                                        {"NICKNAME", "%u", []},
                                        {"USERID", "%s", ["%u@jabber.company.ru"]},
                                        {"GIVEN", "%s", ["givenName"]},
                                        {"FAMILY", "%s", ["sn"]},
                                        {"FN", "%s %s", ["givenName", "sn"]},
                                        {"EMAIL", "%s", ["mail"]}
                                        ]},
                        {ldap_search_fields, [
                                        {"User ID", "%u"},
                                        {"First Name", "givenName"},
                                        {"Last Name", "sn"},
                                        {"Email", "mail"}
                                        ]},
                        {ldap_search_reported, [
                                        {"Name", "FN"},
                                        {"User ID", "USERID"},
                                        {"Nickname", "NICKNAME"},
                                        {"Email", "EMAIL"}
                                        ]}
                ]},

When i am trying to search from miranda i get this report in log:

=INFO REPORT==== 2011-03-23 13:35:45 ===
D(<0.1451.0>:ejabberd_receiver:320) : Received XML on stream = " \t "

=INFO REPORT==== 2011-03-23 13:35:51 ===
D(<0.1451.0>:ejabberd_receiver:320) : Received XML on stream = [60,105,113,32,
                                                                116,121,112,
                                                                101,61,39,115,
                                                                101,116,39,32,
                                                                105,100,61,39,
                                                                107,101,104,
                                                                95,51,56,39,
                                                                32,116,111,61,
                                                                39,117,115,
                                                                101,114,115,
                                                                46,106,97,98,
                                                                98,101,114,46,
                                                                111,107,110,
                                                                97,46,114,117,
                                                                39,62,60,113,
                                                                117,101,114,
                                                                121,32,120,
                                                                109,108,110,
                                                                115,61,39,106,
                                                                97,98,98,101,
                                                                114,58,105,
                                                                113,58,115,
                                                                101,97,114,99,
                                                                104,39,62,60,
                                                                108,97,115,
                                                                116,62,208,
                                                                158,208,183,
                                                                208,181,209,
                                                                128,60,47,108,
                                                                97,115,116,62,
                                                                60,47,113,117,
                                                                101,114,121,
                                                                62,60,47,105,
                                                                113,62]

=INFO REPORT==== 2011-03-23 13:35:51 ===
D(<0.1452.0>:ejabberd_router:313) : route
        from {jid,"ozerovvasiliy","jabber.company.ru","Miranda","ozerovvasiliy",
                  "jabber.company.ru","Miranda"}
        to {jid,[],"users.jabber.company.ru",[],[],"users.jabber.company.ru",[]}
        packet {xmlelement,"iq",
                   [{"type","set"},
                    {"id","keh_38"},
                    {"to","users.jabber.company.ru"}],
                   [{xmlelement,"query",
                        [{"xmlns","jabber:iq:search"}],
                        [{xmlelement,"last",[],
                             [{xmlcdata,
                                  <<208,158,208,183,208,181,209,128>>}]}]}]}

=INFO REPORT==== 2011-03-23 13:35:51 ===
D(<0.1467.0>:ejabberd_router:313) : route
        from {jid,[],"users.jabber.company.ru",[],[],"users.jabber.company.ru",[]}
        to {jid,"ozerovvasiliy","jabber.company.ru","Miranda","ozerovvasiliy",
                "jabber.company.ru","Miranda"}
        packet {xmlelement,"iq",
                   [{"type","error"},
                    {"from","users.jabber.company.ru"},
                    {"id","keh_38"}],
                   [{xmlelement,"query",
                        [{"xmlns","jabber:iq:search"}],
                        [{xmlelement,"last",[],
                             [{xmlcdata,
                                  <<208,158,208,183,208,181,209,128>>}]}]},
                    {xmlelement,"error",
                        [{"code","400"},{"type","modify"}],
                        [{xmlelement,"bad-request",
                             [{"xmlns","urn:ietf:params:xml:ns:xmpp-stanzas"}],
                             []}]}]}

=INFO REPORT==== 2011-03-23 13:35:51 ===
D(<0.1467.0>:ejabberd_local:286) : local route
        from {jid,[],"users.jabber.company.ru",[],[],"users.jabber.company.ru",[]}
        to {jid,"ozerovvasiliy","jabber.company.ru","Miranda","ozerovvasiliy",
                "jabber.company.ru","Miranda"}
        packet {xmlelement,"iq",
                           [{"type","error"},{"from",[...]},{[...],...}],
                           [{xmlelement,[...],...},{xmlelement,...}]}

=INFO REPORT==== 2011-03-23 13:35:51 ===
D(<0.1467.0>:ejabberd_sm:410) : session manager
        from {jid,[],"users.jabber.company.ru",[],[],"users.jabber.company.ru",[]}
        to {jid,"ozerovvasiliy","jabber.company.ru","Miranda","ozerovvasiliy",
                "jabber.company.ru","Miranda"}
        packet {xmlelement,"iq",
                           [{"type","error"},{"from",[...]},{[...],...}],
                           [{xmlelement,[...],...},{xmlelement,...}]}

=INFO REPORT==== 2011-03-23 13:35:51 ===
D(<0.1467.0>:ejabberd_sm:509) : sending to process <0.1452.0>

=INFO REPORT==== 2011-03-23 13:35:51 ===
D(<0.1452.0>:ejabberd_c2s:1456) : Send XML on stream = <<60,105,113,32,102,114,
                                                         111,109,61,39,117,115,
                                                         101,114,115,46,106,97,
                                                         98,98,101,114,46,111,
                                                         107,110,97,46,114,117,
                                                         39,32,116,111,61,39,
                                                         111,122,101,114,111,
                                                         118,118,97,115,105,
                                                         108,105,121,64,106,97,
                                                         98,98,101,114,46,111,
                                                         107,110,97,46,114,117,
                                                         47,77,105,114,97,110,
                                                         100,97,39,32,116,121,
                                                         112,101,61,39,101,114,
                                                         114,111,114,39,32,105,
                                                         100,61,39,107,101,104,
                                                         95,51,56,39,62,60,113,
                                                         117,101,114,121,32,
                                                         120,109,108,110,115,
                                                         61,39,106,97,98,98,
                                                         101,114,58,105,113,58,
                                                         115,101,97,114,99,104,
                                                         39,62,60,108,97,115,
                                                         116,62,208,158,208,
                                                         183,208,181,209,128,
                                                         60,47,108,97,115,116,
                                                         62,60,47,113,117,101,
                                                         114,121,62,60,101,114,
                                                         114,111,114,32,99,111,
                                                         100,101,61,39,52,48,
                                                         48,39,32,116,121,112,
                                                         101,61,39,109,111,100,
                                                         105,102,121,39,62,60,
                                                         98,97,100,45,114,101,
                                                         113,117,101,115,116,
                                                         32,120,109,108,110,
                                                         115,61,39,117,114,110,
                                                         58,105,101,116,102,58,
                                                         112,97,114,97,109,115,
                                                         58,120,109,108,58,110,
                                                         115,58,120,109,112,
                                                         112,45,115,116,97,110,
                                                         122,97,115,39,47,62,
                                                         60,47,101,114,114,111,
                                                         114,62,60,47,105,113,
                                                         62>>

What can i do in this situation?

Syndicate content