Caution: The documentation you are viewing is
for an older version of Zend Framework.
You can find the documentation of the current version at
docs.zendframework.com
Object-oriented access to the LDAP tree using Zend\Ldap\Node — Zend Framework 2 2.3.9 documentation
Traverse LDAP tree recursively
1 2 3 4 5 6 7 8 | $options = array(/* ... */);
$ldap = new Zend\Ldap\Ldap($options);
$ldap->bind();
$ri = new RecursiveIteratorIterator($ldap->getBaseNode(),
RecursiveIteratorIterator::SELF_FIRST);
foreach ($ri as $rdn => $n) {
var_dump($n);
}
|