Hi<br>thank you for the reply.<br>You are right , it&#39;s because my &quot;ou&quot; ou=entreprise,ou=annuaire,dc
<div style="direction: ltr;">=test,dc=fr and ou=annuaire,dc
<div style="direction: ltr;">=test,dc=fr contain objectclass=nsview , but not contain nsviewfilter=something..<br><br></div></div>Thank<br>Fabrice<br><br>&gt; Hi,<br>&gt; i try to understand what&#39;s wrong with my virtual views.
<br>&gt;<br>You are searching for views inside the view hierarchy since<br>ou=entreprise,ou=annuaire,dc<div style="direction: ltr;">=test,dc=fr is a view without a filter. &nbsp;So<br>you&#39;re search is being rewritten to be from scope
<br>ou=annuaire,dc=test,dc=fr, made a subtree search if it is not already,<br>and then the filter is rewritten to realize the view. &nbsp;Part of the<br>filter rewriting is to ignore views entries unless they match the<br>original filter and are in the original search scope - it is quite
<br>possible that there is some odd interaction in this case. Do you see the<br>views if you use (ou=*)?<br><br>&gt; I&#39;ve got an &#39;ou&#39; where all my users are (ou=People,dc=test,dc=fr)<br>&gt; So i create a virtual views with différent ou with objectclass :
<br>&gt; nsview and with nsViewFilter: (something) like this:<br>&gt;<br>&gt; dn: ou=entreprise,ou=annuaire,dc=test,dc=fr<br>&gt; modifytimestamp: 20071005102053Z<br>&gt; modifiersname: cn=directory manager<br>&gt; ou: Cap l&#39;Orient
<br>&gt; objectClass: organizationalUnit<br>&gt; objectClass: top<br>&gt; objectClass: nsview<br>&gt; creatorsname: cn=directory manager<br>&gt; createtimestamp: 20060130145928Z<br>&gt; nsuniqueid: fad66382-1dd111b2-8076e5f7-b3860000
<br>&gt; parentid: 323<br>&gt; entryid: 324<br>&gt; entrydn: ou=entreprise,ou=annuaire,dc=test,dc=fr<br>&gt; numsubordinates: 8<br>&gt; subschemasubentry: cn=schema<br>&gt; hassubordinates: TRUE<br>&gt;<br>&gt; dn: ou=Services Fonctionnels,ou=entreprise,ou=annuaire,dc=test,dc=fr
<br>&gt; modifytimestamp: 20071008122956Z<br>&gt; modifiersname: cn=directory manager<br>&gt; nsViewFilter: (departmentnumber=DGSF*)<br>&gt; objectClass: organizationalUnit<br>&gt; objectClass: top<br>&gt; objectClass: nsview
<br>&gt; ou: DG Services Fonctionnels<br>&gt; creatorsname: cn=directory manager<br>&gt; createtimestamp: 20060130145928Z<br>&gt; nsuniqueid: fad66383-1dd111b2-8076e5f7-b3860000<br>&gt; parentid: 324<br>&gt; entryid: 325<br>
&gt; entrydn: ou=services fonctionnels,ou=entreprise,ou=annuaire,dc=test,dc=fr<br>&gt; numsubordinates: 3<br>&gt; subschemasubentry: cn=schema<br>&gt; hassubordinates: TRUE<br>&gt;<br>&gt; dn: ou=Ressources Humaines,ou=Services
<br>&gt; Fonctionnels,ou=entreprise,ou=annuaire,dc=test,dc=fr<br>&gt; modifytimestamp: 20071005102032Z<br>&gt; modifiersname: cn=directory manager<br>&gt; nsViewFilter: (departmentnumber=DGSF-RH)<br>&gt; objectClass: organizationalUnit
<br>&gt; objectClass: top<br>&gt; objectClass: nsview<br>&gt; ou: Ressources humaines<br>&gt; creatorsname: cn=directory manager<br>&gt; createtimestamp: 20060130145928Z<br>&gt; nsuniqueid: fad66384-1dd111b2-8076e5f7-b3860000
<br>&gt; parentid: 325<br>&gt; entryid: 326<br>&gt; entrydn: ou=ressources humaines,ou=services<br>&gt; fonctionnels,ou=entreprise,ou=annuaire,dc=test,dc=fr<br>&gt; numsubordinates: 0<br>&gt; subschemasubentry: cn=schema<br>
&gt; hassubordinates: FALSE<br>&gt; ....<br>&gt;<br>&gt; The problem is when it try to get all the hierarchy with a perl script<br>&gt; or with php under ou=entreprise,ou=annuaire,dc=test,dc=fr , FDS<br>&gt; doesn&#39;t return all the ou. (with phpldapadmin i can see the hierarchy)
<br>&gt;<br>&gt; The perl script i use to get all the hierarchy:<br>&gt;<br>&gt; use Net::LDAP;<br>&gt; use Switch;<br>&gt;<br>&gt; $ldup = Net::LDAP-&gt;new( &#39;<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://127.0.0.1/" target="_blank">
127.0.0.1</a> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://127.0.0.1/" target="_blank">http://127.0.0.1</a>&gt;&#39; ) or die &quot;$@&quot;;<br>&gt; $masg = $ldup-&gt;bind ; &nbsp;# an anonymous bind
<br>&gt; $masg = $ldup-&gt;search( # perform a search<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; base &nbsp; =&gt;<br>&gt; &quot;ou=entreprise,ou=annuaire,dc=caplorient,dc=com&quot;,<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; scope &nbsp;=&gt; &#39;sub&#39;,
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filter =&gt; &quot;(objectClass=nsview)&quot;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br>&gt;<br>&gt; &nbsp;$masg-&gt;code &amp;&amp; die $masg-&gt;error;<br>&gt; &nbsp;foreach &nbsp;$entry ($masg-&gt;entries)<br>
&gt; &nbsp;{<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$uid=$cn=$givenname=$mail=$sn=&quot;NULL&quot;;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$dn=$entry-&gt;dn();<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;foreach &nbsp;$attr ($entry-&gt;attributes)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($attr eq ou)
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $uid=$entry-&gt;get_value($attr);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;print $dn.&quot;\n&quot;;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print $uid.&quot;\n&quot;;
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&gt;<br>&gt; &nbsp;}<br>&gt;<br>&gt; $mesg = $ldup-&gt;unbind; &nbsp; # take down session<br>&gt;<br>&gt; If anyone has got the same type of problem , thank you in advance for
<br>&gt; the answer<br>&gt;<br>&gt; Fabrice<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; --<br>&gt; Fedora-directory-users mailing list<br>&gt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Fedora-directory-users@redhat.com">
Fedora-directory-users@redhat.com</a><br>&gt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.redhat.com/mailman/listinfo/fedora-directory-users" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-directory-users
</a><br>&gt;<br><br><br>--<br>Pete<br></div>