public function move($username, $container)
    {
        $user = new User([
            'username' => $username,
            'container' => $container,
        ]);

        // Validate only the username and container attributes
        $user->validateRequired(['username', 'container']);

        $this->adldap->utilities()->validateLdapIsBound();

        $userInfo = $this->info($user->getAttribute('username'));

        $dn = $userInfo['dn'];

        $newRDn = 'cn='.$user->getAttribute('username');

        $container = array_reverse($container);

        $newContainer = 'ou='.implode(',ou=', $container);

        $newBaseDn = strtolower($newContainer).','.$this->adldap->getBaseDn();

        return $this->connection->rename($dn, $newRDn, $newBaseDn, true);
    }