Object-oriented access to the LDAP tree using Zend\Ldap\Node
Basic CRUD operations
Retrieving data from the LDAP
Getting a node by its DN
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
Traverse LDAP tree recursively
| $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);
}
|
Edit this document
The source code of this file is hosted on GitHub. Everyone can
update and fix errors in this document with few clicks -
no downloads needed.
-
Login with your GitHub account.
-
Go to
Object-oriented access to the LDAP tree using Zend\Ldap\Node
on GitHub.
-
Edit file contents using GitHub's text editor in your web browser
-
Fill in the Commit message text box at the end of the page telling why
you did the changes. Press Propose file change button next to it when done.
-
On Send a pull request page you don't need to fill in text anymore. Just
press Send pull request button.
-
Your changes are now queued for review under project's Pull requests tab on GitHub.