Hi<br>thank you for the reply.<br>You are right , it's because my "ou" 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>> Hi,<br>> i try to understand what's wrong with my virtual views.
<br>><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.  So<br>you'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.  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>> I've got an 'ou' where all my users are (ou=People,dc=test,dc=fr)<br>> So i create a virtual views with différent ou with objectclass :
<br>> nsview and with nsViewFilter: (something) like this:<br>><br>> dn: ou=entreprise,ou=annuaire,dc=test,dc=fr<br>> modifytimestamp: 20071005102053Z<br>> modifiersname: cn=directory manager<br>> ou: Cap l'Orient
<br>> objectClass: organizationalUnit<br>> objectClass: top<br>> objectClass: nsview<br>> creatorsname: cn=directory manager<br>> createtimestamp: 20060130145928Z<br>> nsuniqueid: fad66382-1dd111b2-8076e5f7-b3860000
<br>> parentid: 323<br>> entryid: 324<br>> entrydn: ou=entreprise,ou=annuaire,dc=test,dc=fr<br>> numsubordinates: 8<br>> subschemasubentry: cn=schema<br>> hassubordinates: TRUE<br>><br>> dn: ou=Services Fonctionnels,ou=entreprise,ou=annuaire,dc=test,dc=fr
<br>> modifytimestamp: 20071008122956Z<br>> modifiersname: cn=directory manager<br>> nsViewFilter: (departmentnumber=DGSF*)<br>> objectClass: organizationalUnit<br>> objectClass: top<br>> objectClass: nsview
<br>> ou: DG Services Fonctionnels<br>> creatorsname: cn=directory manager<br>> createtimestamp: 20060130145928Z<br>> nsuniqueid: fad66383-1dd111b2-8076e5f7-b3860000<br>> parentid: 324<br>> entryid: 325<br>
> entrydn: ou=services fonctionnels,ou=entreprise,ou=annuaire,dc=test,dc=fr<br>> numsubordinates: 3<br>> subschemasubentry: cn=schema<br>> hassubordinates: TRUE<br>><br>> dn: ou=Ressources Humaines,ou=Services
<br>> Fonctionnels,ou=entreprise,ou=annuaire,dc=test,dc=fr<br>> modifytimestamp: 20071005102032Z<br>> modifiersname: cn=directory manager<br>> nsViewFilter: (departmentnumber=DGSF-RH)<br>> objectClass: organizationalUnit
<br>> objectClass: top<br>> objectClass: nsview<br>> ou: Ressources humaines<br>> creatorsname: cn=directory manager<br>> createtimestamp: 20060130145928Z<br>> nsuniqueid: fad66384-1dd111b2-8076e5f7-b3860000
<br>> parentid: 325<br>> entryid: 326<br>> entrydn: ou=ressources humaines,ou=services<br>> fonctionnels,ou=entreprise,ou=annuaire,dc=test,dc=fr<br>> numsubordinates: 0<br>> subschemasubentry: cn=schema<br>
> hassubordinates: FALSE<br>> ....<br>><br>> The problem is when it try to get all the hierarchy with a perl script<br>> or with php under ou=entreprise,ou=annuaire,dc=test,dc=fr , FDS<br>> doesn't return all the ou. (with phpldapadmin i can see the hierarchy)
<br>><br>> The perl script i use to get all the hierarchy:<br>><br>> use Net::LDAP;<br>> use Switch;<br>><br>> $ldup = Net::LDAP->new( '<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://127.0.0.1/" target="_blank">
127.0.0.1</a> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://127.0.0.1/" target="_blank">http://127.0.0.1</a>>' ) or die "$@";<br>> $masg = $ldup->bind ;  # an anonymous bind
<br>> $masg = $ldup->search( # perform a search<br>>                         base   =><br>> "ou=entreprise,ou=annuaire,dc=caplorient,dc=com",<br>>                         scope  => 'sub',
<br>>                         filter => "(objectClass=nsview)"<br>>                       );<br>><br>>  $masg->code && die $masg->error;<br>>  foreach  $entry ($masg->entries)<br>
>  {<br>>          $uid=$cn=$givenname=$mail=$sn="NULL";<br>>          $dn=$entry->dn();<br>><br>>          foreach  $attr ($entry->attributes)<br>>                 {<br>>                 if($attr eq ou)
<br>>                         {<br>>                         $uid=$entry->get_value($attr);<br>>                                  print $dn."\n";<br>>                         print $uid."\n";
<br>>                         }<br>>                 }<br>><br>>  }<br>><br>> $mesg = $ldup->unbind;   # take down session<br>><br>> If anyone has got the same type of problem , thank you in advance for
<br>> the answer<br>><br>> Fabrice<br>> ------------------------------------------------------------------------<br>><br>> --<br>> Fedora-directory-users mailing list<br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Fedora-directory-users@redhat.com">
Fedora-directory-users@redhat.com</a><br>> <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>><br><br><br>--<br>Pete<br></div>