Caution: The documentation you are viewing is
for an older version of Zend Framework.
You can find the documentation of the current version at:
https://docs.zendframework.com/
Object oriented access to the LDAP tree using Zend_Ldap_Node - Zend_Ldap
Object oriented access to the LDAP tree using Zend_Ldap_Node
Basic CRUD operations
Retrieving data from the LDAP
Searching a node's subtree
Adding a new node to the LDAP
Deleting a node from the LDAP
Updating a node on the LDAP
Extended operations
Copy and move nodes in the LDAP
Tree traversal
Example #1 Traverse LDAP tree recursively
$options =
array(/* ... */);
$ldap = new Zend_Ldap($options);
$ldap->bind();
$ri = new RecursiveIteratorIterator($ldap->getBaseNode(),
RecursiveIteratorIterator::SELF_FIRST);
foreach ($ri as $rdn => $n) {
}