https://issues.rudder.io/https://issues.rudder.io/themes/rudder7/favicon/favicon.ico?17096450182014-09-08T15:05:48ZIssue TrackerRudder - Bug #5504: LDAP error when defining group criteriahttps://issues.rudder.io/issues/5504?journal_id=308992014-09-08T15:05:48ZVincent MEMBRÉvme@rudder.io
<ul><li><strong>Category</strong> set to <i>Web - Nodes & inventories</i></li><li><strong>Assignee</strong> set to <i>François ARMAND</i></li></ul><p>Thansk Dennis, can you add the criteria you put in the regexp field ??</p>
<p>Thanks!</p> Rudder - Bug #5504: LDAP error when defining group criteriahttps://issues.rudder.io/issues/5504?journal_id=309002014-09-08T15:19:53ZDennis Cabooterdcabooter@snow.nl
<ul></ul><p>As discussed on IRC:</p>
<pre>17:12 < Vince_McBuche> dnns: What is the value you entered ? so we can
reproduce it :)
17:18 < dnns> software version regex .*winbind.*
17:18 < dnns> for your info:
17:18 < dnns> software version = winbind
17:18 < dnns> does work
17:18 < dnns> (but i need the regex)</pre> Rudder - Bug #5504: LDAP error when defining group criteriahttps://issues.rudder.io/issues/5504?journal_id=309012014-09-08T15:26:18ZDennis Cabooterdcabooter@snow.nl
<ul></ul><p>When trying this at Search Nodes...</p>
<p>This doesn't work:</p>
<pre>Software Name Regex rudder.*</pre>
<p>This works:</p>
<pre>Software Name = rudder-agent
Software Version Regex 2\.11\..*</pre> Rudder - Bug #5504: LDAP error when defining group criteriahttps://issues.rudder.io/issues/5504?journal_id=309022014-09-08T15:29:04ZDennis Cabooterdcabooter@snow.nl
<ul></ul><p>In the last example, this:</p>
<pre>Software Version Regex rudder.*</pre>
<p>Should be this:</p>
<pre>Software Name Regex rudder.*</pre> Rudder - Bug #5504: LDAP error when defining group criteriahttps://issues.rudder.io/issues/5504?journal_id=309042014-09-08T15:35:52ZVincent MEMBRÉvme@rudder.io
<ul></ul><p>Thanks Dennis, i edited the comment!</p> Rudder - Bug #5504: LDAP error when defining group criteriahttps://issues.rudder.io/issues/5504?journal_id=309092014-09-09T08:35:52ZFrançois ARMANDfrancois.armand@rudder.io
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>8</i></li></ul><p>So, the problem is due to the number of software entries. In more details:</p>
<p>LDAP does not support regex matching on queries. So to handle them, we return all the entries to check for the regex and process the regex on the client side.</p>
<p>On the other hand, there is limits on the number of entries returned by the server.</p>
<p>The conjonction of the two factors lead to the error.</p>
<p>I think there is no reason to limit the number of returned entries, and we should just safe-guard with a time limit for requests. <br />An other solution is to pre-process the regex query to see if it can be more efficiently translated to a substring query, as it is the case here, so that we have far less response in the common cases.</p>
<p>An other think: we never ever delete software, meaning that their number is strictly rising and so that bug will appear at some point for any people using regex match on software.</p>
<p>I don't see any easy (i.e: without code in the webapp) workaround safe removing softwares from LDAP so that only actuall software will be re-added (and so that the total stay under the limit.</p> Rudder - Bug #5504: LDAP error when defining group criteriahttps://issues.rudder.io/issues/5504?journal_id=310132014-09-15T13:20:57ZFrançois ARMANDfrancois.armand@rudder.io
<ul><li><strong>Target version</strong> set to <i>2.6.18</i></li></ul> Rudder - Bug #5504: LDAP error when defining group criteriahttps://issues.rudder.io/issues/5504?journal_id=310142014-09-15T13:24:24ZFrançois ARMANDfrancois.armand@rudder.io
<ul><li><strong>Status</strong> changed from <i>8</i> to <i>Pending technical review</i></li><li><strong>Assignee</strong> changed from <i>François ARMAND</i> to <i>Nicolas CHARLES</i></li><li><strong>Target version</strong> changed from <i>2.6.18</i> to <i>2.10.6</i></li><li><strong>Pull Request</strong> set to <i>https://github.com/Normation/rudder/pull/608</i></li></ul><p><a class="external" href="https://github.com/Normation/rudder/pull/608">https://github.com/Normation/rudder/pull/608</a></p> Rudder - Bug #5504: LDAP error when defining group criteriahttps://issues.rudder.io/issues/5504?journal_id=310152014-09-15T13:29:28ZFrançois ARMANDfrancois.armand@rudder.io
<ul><li><strong>Status</strong> changed from <i>Pending technical review</i> to <i>Pending release</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="Fixes #5504: remove LDAP client limit" href="https://issues.rudder.io/projects/rudder/repository/rudder/revisions/ff11035dc91c2385e9652b339d593691f276b18c">ff11035dc91c2385e9652b339d593691f276b18c</a>.</p> Rudder - Bug #5504: LDAP error when defining group criteriahttps://issues.rudder.io/issues/5504?journal_id=310162014-09-15T13:29:29ZNicolas CHARLESnicolas.charles@rudder.io
<ul></ul><p>Applied in changeset <a class="changeset" title="Merge pull request #608 from fanf/bug_5504/remove_hard_coded_ldap_limits Fixes #5504: remove LDA..." href="https://issues.rudder.io/projects/rudder/repository/rudder/revisions/1d13f7b689651fe45be42d4a847814544dd546ef">1d13f7b689651fe45be42d4a847814544dd546ef</a>.</p> Rudder - Bug #5504: LDAP error when defining group criteriahttps://issues.rudder.io/issues/5504?journal_id=315262014-10-06T13:08:37ZMatthieu CERDAmatthieu.cerda@normation.com
<ul><li><strong>Status</strong> changed from <i>Pending release</i> to <i>Released</i></li></ul><p>This bug has been fixed in Rudder 2.10.6, which was released today.<br />Check out: </p>
<ul>
<li>The release announcement: <a class="external" href="http://www.rudder-project.org/pipermail/rudder-announce/2013-July/000038.html">http://www.rudder-project.org/pipermail/rudder-announce/2013-July/000038.html</a></li>
<li>The full ChangeLog: <a class="external" href="http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog27">http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog27</a></li>
<li>Download information: <a class="external" href="https://www.rudder-project.org/site/get-rudder/downloads/">https://www.rudder-project.org/site/get-rudder/downloads/</a></li>
</ul> Rudder - Bug #5504: LDAP error when defining group criteriahttps://issues.rudder.io/issues/5504?journal_id=315552014-10-06T13:09:29ZMatthieu CERDAmatthieu.cerda@normation.com
<ul></ul><p>This bug has been fixed in Rudder 2.10.6, which was released today.<br />Check out: </p>
<ul>
<li>The release announcement: <a class="external" href="http://www.rudder-project.org/pipermail/rudder-announce/2014-October/000109.html">http://www.rudder-project.org/pipermail/rudder-announce/2014-October/000109.html</a></li>
<li>The full ChangeLog: <a class="external" href="http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog210">http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog210</a></li>
<li>Download information: <a class="external" href="https://www.rudder-project.org/site/get-rudder/downloads/">https://www.rudder-project.org/site/get-rudder/downloads/</a></li>
</ul> Rudder - Bug #5504: LDAP error when defining group criteriahttps://issues.rudder.io/issues/5504?journal_id=485182015-12-01T14:04:57ZBenoît PECCATTEbenoit.peccatte@rudder.io
<ul><li><strong>Target version</strong> changed from <i>2.10.6</i> to <i>2.6.18</i></li></ul>