/** * Returns the specified DN as a Zend_Ldap_Node * * @param string|Zend_Ldap_Dn $dn * @return Zend_Ldap_Node|null * @throws Zend_Ldap_Exception */ public function getNode($dn) { /** * Zend_Ldap_Node */ #require_once 'Zend/Ldap/Node.php'; return Zend_Ldap_Node::fromLdap($dn, $this); }
public function testLoadFromLdapWithDnObject() { $dn = Zend_Ldap_Dn::fromString($this->_createDn('ou=Test1,')); $node = Zend_Ldap_Node::fromLdap($dn, $this->_getLdap()); $this->assertType('Zend_Ldap_Node', $node); $this->assertTrue($node->isAttached()); }
/** * Returns the specified DN as a Zend_Ldap_Node * * @param string|Zend_Ldap_Dn $dn * @return Zend_Ldap_Node|null * @throws Zend_Ldap_Exception */ public function getNode($dn) { /** * Zend_Ldap_Node */ require_once PHP_LIBRARY_PATH . 'Zend/Ldap/Node.php'; return Zend_Ldap_Node::fromLdap($dn, $this); }
public function testMoveNode() { $dnOld = $this->_createDn('ou=Test1,'); $dnNew = $this->_createDn('ou=Test,'); $node = Zend_Ldap_Node::fromLdap($dnOld, $this->_getLdap()); $node->setDn($dnNew); $node->update(); $this->assertFalse($this->_getLdap()->exists($dnOld)); $this->assertTrue($this->_getLdap()->exists($dnNew)); $node = Zend_Ldap_Node::fromLdap($dnNew, $this->_getLdap()); $node->move($dnOld); $node->update(); $this->assertFalse($this->_getLdap()->exists($dnNew)); $this->assertTrue($this->_getLdap()->exists($dnOld)); $node = Zend_Ldap_Node::fromLdap($dnOld, $this->_getLdap()); $node->rename($dnNew); $node->update(); $this->assertFalse($this->_getLdap()->exists($dnOld)); $this->assertTrue($this->_getLdap()->exists($dnNew)); }
/** * Returns the specified DN as a Zend_Ldap_Node * * @param string|Zend_Ldap_Dn $dn * @return Zend_Ldap_Node|null * @throws Zend_Ldap_Exception */ public function getNode($dn) { /** * Zend_Ldap_Node */ return Zend_Ldap_Node::fromLdap($dn, $this); }
/** * Returns the specified DN as a Zend_Ldap_Node * * @param string|Zend_Ldap_Dn $dn * @return Zend_Ldap_Node|null * @throws Zend_Ldap_Exception */ public function getNode($dn) { /** * Zend_Ldap_Node */ //$1 'Zend/Ldap/Node.php'; return Zend_Ldap_Node::fromLdap($dn, $this); }