Hi,<br>i try to understand what's wrong with my virtual views.<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 : 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 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 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 or with php under ou=entreprise,ou=annuaire,dc=test,dc=fr , FDS 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 href="http://127.0.0.1">127.0.0.1</a>' ) or die "$@";<br>$masg = $ldup->bind ;  # an anonymous bind
<br>$masg = $ldup->search( # perform a search<br>                        base   => "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 the answer
<br><br>Fabrice<br>