src/Classes/AdldapGroups.php
public function rename($groupName, $newName, $container)
    {
        $groupDn = $this->dn($groupName);

        if ($groupDn) {
            $newRDN = 'CN='.$newName;

            // Determine the container
            $container = array_reverse($container);
            $container = 'OU='.implode(', OU=', $container);

            $dn = $container.', '.$this->adldap->getBaseDn();

            return $this->connection->rename($groupDn, $newRDN, $dn, true);
        }

        return false;
    }
public function rename($groupName, $newName, $container)
    {
        $groupDn = $this->dn($groupName);

        if ($groupDn) {
            $newRDN = 'CN='.$newName;

            // Determine the container
            $container = array_reverse($container);
            $container = 'OU='.implode(', OU=', $container);

            $dn = $container.', '.$this->adldap->getBaseDn();

            return $this->connection->rename($groupDn, $newRDN, $dn, true);
        }

        return false;
    }
public function rename ( $ groupName , $ newName , $ container ) { $ groupDn = $ this -> dn ( $ groupName ) ; if ( $ groupDn ) { $ newRDN = 'CN=' . $ newName ; // Determine the container $ container = array_reverse ( $ container ) ; $ container = 'OU=' . implode ( ', OU=' , $ container ) ; $ dn = $ container . ', ' . $ this -> adldap -> getBaseDn ( ) ; return $ this -> connection -> rename ( $ groupDn , $ newRDN , $ dn , true ) ; } return false ; }
Rename a group.

@param string $groupName The group to rename
@param string $newName   The new name to give the group
@param array  $container

@return bool
Rename a group .