29.5. Object oriented access to the LDAP tree using Zend_Ldap_Node

29.5.1. Basic CRUD operations

29.5.1.1. Retrieving data from the LDAP

29.5.1.1.1. Getting a node by its DN

29.5.1.1.2. Searching a node's subtree

29.5.1.2. Adding a new node to the LDAP

29.5.1.3. Deleting a node from the LDAP

29.5.1.4. Updating a node on the LDAP

29.5.2. Extended operations

29.5.2.1. Copy and move nodes in the LDAP

29.5.3. Tree traversal

Example 29.12. 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) {
    var_dump($n);
}