Dreamscapes/Ldap/Core/Ldap.php
public function rename($dn, $newRdn, $newParent, $deleteOldRdn)
    {
        @ldap_rename($this->resource, $dn, $newRdn, $newParent, $deleteOldRdn);
        $this->verifyOperation();

        return $this;
    }
public function rename($dn, $newRdn, $newParent, $deleteOldRdn)
    {
        @ldap_rename($this->resource, $dn, $newRdn, $newParent, $deleteOldRdn);
        $this->verifyOperation();

        return $this;
    }
Modify the name of an entry

@param  string $dn           The distinguished name of an LDAP entity
@param  string $newRdn       The new RDN
@param  string $newParent    The new parent/superior entry
@param  bool   $deleteOldRdn If TRUE the old RDN value(s) are removed, else the old RDN
value(s) are retained as non-distinguished values of the entry
@return self