PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Extended operations

Copy and move entries in the LDAP

Example 522. Copy a LDAP entry recursively with all its descendants

<?php
$options 
= array(/* ... */);
$ldap = new Zend_Ldap($options);
$ldap->bind();
$ldap->copy('cn=Hugo Müller,ou=People,dc=my,dc=local',
            
'cn=Hans Meier,ou=People,dc=my,dc=local',
            
true);

Example 523.  Move a LDAP entry recursively with all its descendants to a different subtree

<?php
$options 
= array(/* ... */);
$ldap = new Zend_Ldap($options);
$ldap->bind();
$ldap->moveToSubtree('cn=Hugo Müller,ou=People,dc=my,dc=local',
                     
'ou=Dismissed,dc=my,dc=local',
                     
true);

Zend Framework