[ejabberd] pattern variables not working

Evgeniy Khramtsov xramtsov at gmail.com
Mon Apr 16 07:55:52 MSK 2012


On 16.04.2012 12:24, Jiann-Ming Su wrote:
> 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?

There are no any substitutions in ldap_rfilter.

-- 
Regards,
Evgeniy Khramtsov, ProcessOne.
xmpp:xram at jabber.ru.



More information about the ejabberd mailing list