[ejabberd] pattern variables not working

Jiann-Ming Su su_js1 at yahoo.com
Mon Apr 16 06:24:41 MSK 2012


Here's my roster filter:

    {ldap_rfilter, "(&(objectClass=groupofuniquenames)(uniqueMember=uid=%u,ou=People,o=mydomain))"},

Here's the ejabberd.log:

=INFO REPORT==== 2012-04-15 22:19:58 ===
D(<0.347.0>:eldap:696) : {searchRequest,
                          {'SearchRequest',"o=mydomain",wholeSubtree,
                           neverDerefAliases,0,5,false,
                           {'and',
                            [{equalityMatch,
                              {'AttributeValueAssertion',"objectClass",
                               "groupofuniquenames"}},
                             {equalityMatch,
                              {'AttributeValueAssertion',"uniqueMember",
                               "uid=%u,ou=People,o=mydomain"}}]},
                           ["cn"]}}


Shouldn't the %u have been replaced with the user part of my JID?  Or is there something wrong with my filter?



More information about the ejabberd mailing list