<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[LDAP SearchFilter syntax]]></title><description><![CDATA[<p dir="auto">Hello fellow IT admins,</p>
<p dir="auto">I have LDAP conneciton with the default LDAP.SearchFilter --&gt; (objectClass=*) .<br />
this has more then 1000 users importing NetXMS.<br />
I already narrow down the LDAP.SearchBase.</p>
<p dir="auto">I want to change the LDAP.SearchFilter to only include users from the "Department ICT"<br />
I have tried different LDAP.Searchfilter strings, all resulting in 0 users getting pulled..</p>
<p dir="auto">(&amp;(objectCategory=person)(objectClass=user)(department=&lt;Departement ICT&gt;))<br />
(&amp;(objectCategory=person)(objectClass=*)(department=&lt;Departement ICT&gt;))<br />
(department=&lt;Departement ICT&gt;)</p>
<p dir="auto">There is little to non documentation/examples ho to implement this.<br />
I have found those strings syntax online.</p>
<p dir="auto">Ho has a working example ?<br />
using latest version NetXMS Server Version 5.1.3<br />
Thank!</p>
]]></description><link>https://forum.netxms.org/topic/8096/ldap-searchfilter-syntax</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:47:48 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8096.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Jan 2025 08:59:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LDAP SearchFilter syntax on Tue, 21 Jan 2025 14:15:07 GMT]]></title><description><![CDATA[<p dir="auto">Supper fixed !</p>
<p dir="auto">Using the AD "custom Search" to evaluate.<br />
Learned something new today !</p>
<p dir="auto">supper Thanks!</p>
]]></description><link>https://forum.netxms.org/post/34112</link><guid isPermaLink="true">https://forum.netxms.org/post/34112</guid><dc:creator><![CDATA[yordi]]></dc:creator><pubDate>Tue, 21 Jan 2025 14:15:07 GMT</pubDate></item><item><title><![CDATA[Reply to LDAP SearchFilter syntax on Tue, 21 Jan 2025 13:33:51 GMT]]></title><description><![CDATA[<p dir="auto">Second one is correct. See screenshot.</p>
<p dir="auto">I'd check that search base is wide enough.</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000006827-Screenshot_2025-01-21_at_15.32.20.png" alt="Screenshot 2025-01-21 at 15.32.20.png" class="img-markdown  img-fluid" width="864" height="1106" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000006829-Screenshot_2025-01-21_at_15.29.42.png" alt="Screenshot 2025-01-21 at 15.29.42.png" class="img-markdown  img-fluid" width="1256" height="1010" /></p>
]]></description><link>https://forum.netxms.org/post/34110</link><guid isPermaLink="true">https://forum.netxms.org/post/34110</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Tue, 21 Jan 2025 13:33:51 GMT</pubDate></item><item><title><![CDATA[Reply to LDAP SearchFilter syntax on Tue, 21 Jan 2025 13:20:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alk" aria-label="Profile: alk">@<bdi>alk</bdi></a> said in <a href="/post/34108">LDAP SearchFilter syntax</a>:</p>
<blockquote>
<pre><code>(&amp;(|(objectClass=user)(objectClass=group))(department=Department1))
</code></pre>
<p dir="auto">you can even use wildcards there:</p>
<pre><code>(&amp;(|(objectClass=user)(objectClass=group))(department=Department*))
</code></pre>
</blockquote>
<p dir="auto">I have try it but i get not any users, do you have a example with a space in the string ?<br />
my 2 treys are:</p>
<p dir="auto">(&amp;(|(objectClass=user)(objectClass=group))(department="Department ICT"))<br />
(&amp;(|(objectClass=user)(objectClass=group))(department=Department ICT))</p>
<p dir="auto">I have no control over the naming of the department attribute</p>
]]></description><link>https://forum.netxms.org/post/34109</link><guid isPermaLink="true">https://forum.netxms.org/post/34109</guid><dc:creator><![CDATA[yordi]]></dc:creator><pubDate>Tue, 21 Jan 2025 13:20:28 GMT</pubDate></item><item><title><![CDATA[Reply to LDAP SearchFilter syntax on Tue, 21 Jan 2025 12:17:45 GMT]]></title><description><![CDATA[<pre><code>(&amp;(|(objectClass=user)(objectClass=group))(department=Department1))
</code></pre>
<p dir="auto">you can even use wildcards there:</p>
<pre><code>(&amp;(|(objectClass=user)(objectClass=group))(department=Department*))
</code></pre>
]]></description><link>https://forum.netxms.org/post/34108</link><guid isPermaLink="true">https://forum.netxms.org/post/34108</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Tue, 21 Jan 2025 12:17:45 GMT</pubDate></item><item><title><![CDATA[Reply to LDAP SearchFilter syntax on Tue, 21 Jan 2025 11:17:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alk" aria-label="Profile: alk">@<bdi>alk</bdi></a> said in <a href="/post/34105">LDAP SearchFilter syntax</a>:</p>
<blockquote>
<p dir="auto">I usually filter by the base group, but you need to use ActiveDirectory(?) extensions to do it recursively, something like this:</p>
<pre><code>(&amp;(|(objectClass=user)(objectClass=group))(memberOf:1.2.840.113556.1.4.1941:=CN=…))
</code></pre>
</blockquote>
<p dir="auto">Hi Thanks,</p>
<p dir="auto">As a workaround i created a dedicated group in AD and use Your solution ;-).<br />
Is there no documentation with the use of "Department" attribute in AD ?</p>
]]></description><link>https://forum.netxms.org/post/34107</link><guid isPermaLink="true">https://forum.netxms.org/post/34107</guid><dc:creator><![CDATA[yordi]]></dc:creator><pubDate>Tue, 21 Jan 2025 11:17:44 GMT</pubDate></item><item><title><![CDATA[Reply to LDAP SearchFilter syntax on Tue, 21 Jan 2025 09:11:06 GMT]]></title><description><![CDATA[<p dir="auto">I usually filter by the base group, but you need to use ActiveDirectory(?) extensions to do it recursively, something like this:</p>
<pre><code>(&amp;(|(objectClass=user)(objectClass=group))(memberOf:1.2.840.113556.1.4.1941:=CN=…))
</code></pre>
]]></description><link>https://forum.netxms.org/post/34105</link><guid isPermaLink="true">https://forum.netxms.org/post/34105</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Tue, 21 Jan 2025 09:11:06 GMT</pubDate></item></channel></rss>