src/LdapClient.php
public function rename($dn, $newdn, $newparent, $deleteolddn)
	{
		if (!$this->isBound || !$this->isConnected())
		{
			return false;
		}

		return ldap_rename($this->resource, $dn, $newdn, $newparent, $deleteolddn);
	}
public function rename($dn, $newdn, $newparent, $deleteolddn)
	{
		if (!$this->isBound || !$this->isConnected())
		{
			return false;
		}

		return ldap_rename($this->resource, $dn, $newdn, $newparent, $deleteolddn);
	}
public function rename ( $ dn , $ newdn , $ newparent , $ deleteolddn ) { if ( ! $ this -> isBound || ! $ this -> isConnected ( ) ) { return false ; } return ldap_rename ( $ this -> resource , $ dn , $ newdn , $ newparent , $ deleteolddn ) ; }
Modify the name of an entry

@param   string   $dn           The DN of the entry at the moment
@param   string   $newdn        The DN of the entry should be (only cn=newvalue)
@param   string   $newparent    The full DN of the parent (null by default)
@param   boolean  $deleteolddn  Delete the old values (default)

@return  boolean

@since   1.0
Modify the name of an entry