[ejabberd] pattern variables not working

Evgeniy Khramtsov xramtsov at gmail.com
Mon Apr 16 08:03:33 MSK 2012


On 16.04.2012 13:55, Evgeniy Khramtsov wrote:
> 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.
>

On the other hand, looking at the code, it's pretty easy to implement... 
Feel free to create a ticket if you need it and, probably, we can add it 
before 2.1.11 (will be released really soon).

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



More information about the ejabberd mailing list