ejabberd - Comments for "LDAP filter parse error" https://www.ejabberd.im/node/2620 en Negation in LDAP search request filters https://www.ejabberd.im/node/2620#comment-53248 <p>While LDAPv3 extensible match is really <noindex><a href="http://lists.jabber.ru/pipermail/ejabberd/2008-April/003583.html" rel="nofollow" >not yet supported in ejabberd</a></noindex>, your search filter is invalid according to <noindex><a href="http://rfc.net/rfc4515.html" rel="nofollow" >RFC 4515</a></noindex> &mdash; you should use </p> <pre>(!(userAccountControl:1.2.840.113556.1.4.803:=2))</pre><p> form.</p> <p>So for instance "accounts of all users which are not disabled" will be </p> <pre>(&amp;(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))</pre> Mon, 02 Jun 2008 22:42:08 +0000 kostix comment 53248 at https://www.ejabberd.im LDAP filter https://www.ejabberd.im/node/2620#comment-50942 <div class="quote-msg"> <div class="quote-author"><em>zinid</em> wrote:</div> <p>BTW. Is it possible to avoid such filters at all?</p></div> <p>MS AD stores info about Account state in bitwise form<br /> 1.2.840.113556.1.4.803 - is OID for bitwise AND operator (in MS AD)<br /> <noindex><a href="http://support.microsoft.com/kb/269181" title="http://support.microsoft.com/kb/269181" rel="nofollow" >http://support.microsoft.com/kb/269181</a></noindex></p> <p>userAccountControl:1.2.840.113556.1.4.803:=2 - the only way to search for disabled users in MS AD<br /> !userAccountControl:1.2.840.113556.1.4.803:=2 - the only way to search for not disabled (enabled) users in MS AD</p> <p>another way - manually removing disabled users from "Jabber Users" group</p> Mon, 24 Sep 2007 14:06:59 +0000 d.k.brazz comment 50942 at https://www.ejabberd.im same result https://www.ejabberd.im/node/2620#comment-50939 <div class="quote-msg"> <div class="quote-author"><em>badlop</em> wrote:</div> <p>Maybe some character is not acceptable: there are: ! . :<br /> You could try to put \! or things like that.</p></div> <p>I tryed \! \. \: - same result</p> Mon, 24 Sep 2007 09:06:47 +0000 d.k.brazz comment 50939 at https://www.ejabberd.im Re: LDAP filter parse error https://www.ejabberd.im/node/2620#comment-50932 <div class="quote-msg"> <div class="quote-author"><em>d.k.brazz</em> wrote:</div> <p>So problem in parse this expression: (!userAccountControl:1.2.840.113556.1.4.803:=2)<br /> I tried to put query whith this filter directly to LDAP server, it correct and it working<br /> I think problem in Erlang or eJabberd filter parser</p></div> <p>You are right. Currently it is not possible to parse such expressions.<br /> BTW. Is it possible to avoid such filters at all?</p> Sat, 22 Sep 2007 02:29:55 +0000 zinid comment 50932 at https://www.ejabberd.im Maybe some character is not https://www.ejabberd.im/node/2620#comment-50929 <p>Maybe some character is not acceptable: there are: ! . :<br /> You could try to put \! or things like that.</p> Fri, 21 Sep 2007 21:25:18 +0000 mfoss comment 50929 at https://www.ejabberd.im