<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 02/25/2015 02:43 PM, Martin Kosek
      wrote:<br>
    </div>
    <blockquote cite="mid:54EDD169.7060505@redhat.com" type="cite">
      <pre wrap="">On 02/24/2015 06:47 PM, Sumit Bose wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi,

this patch changes a return code and should fix
<a class="moz-txt-link-freetext" href="https://fedorahosted.org/freeipa/ticket/4924">https://fedorahosted.org/freeipa/ticket/4924</a> .

bye,
Sumit
</pre>
      </blockquote>
      <pre wrap="">
I have a related question. Do I read the plugin right, that whenever any object
is changed, this plugins loads the whole entry and tests some of it's attribute
to see if it is ID views and then does the actual check.

Is this good approach performance wise? Wouldn't it be better to decide even
before that, based on DN and whether it is in the ID View Sub-Tree? CCing Thierry.

Martin
</pre>
    </blockquote>
    <font face="Times New Roman, Times, serif">Hello,<br>
      <br>
    </font>
    <blockquote><font face="Times New Roman, Times, serif">My
        understanding of this preop plugins is that it checks the
        defined range (RangeID, RangeSize, RangeRid...) of a 
        new/modified 'ipaBaseID' entry.<br>
        It checks the range by comparing the new range against all
        ranges defined in objectclass=ipaIDRange entries.<br>
      </font><font face="Times New Roman, Times, serif"><br>
        As far as I understand that plugin, I tend to agree with your
        point Martin.<br>
        The DN of the new entry/modified entry is not taken into
        consideration. Only the fact that it contains ipaBaseID
        attribute.<br>
        If we know that we can ignore ADD/MOD under ID View Sub-tree,
        then it could be tested early in the plugin and would accelerate
        the plugin.<br>
        That would require a plugin config attibute to specify which
        subtrees should be ignore.<br>
        <br>
        thanks<br>
        thierry<br>
        <br>
      </font></blockquote>
  </body>
</html>