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

        $userDn = $this->adldap->user()->dn($username);

        if (is_string($groupDn) && is_string($userDn)) {
            $del = [];
            $del['member'] = $userDn;

            return $this->connection->modDelete($groupDn, $del);
        }

        return false;
    }
public function removeUser($groupName, $username)
    {
        $groupDn = $this->dn($groupName);

        $userDn = $this->adldap->user()->dn($username);

        if (is_string($groupDn) && is_string($userDn)) {
            $del = [];
            $del['member'] = $userDn;

            return $this->connection->modDelete($groupDn, $del);
        }

        return false;
    }
public function removeUser ( $ groupName , $ username ) { $ groupDn = $ this -> dn ( $ groupName ) ; $ userDn = $ this -> adldap -> user ( ) -> dn ( $ username ) ; if ( is_string ( $ groupDn ) && is_string ( $ userDn ) ) { $ del = [ ] ; $ del [ 'member' ] = $ userDn ; return $ this -> connection -> modDelete ( $ groupDn , $ del ) ; } return false ; }
Remove a user from a group.

@param string $groupName The group to remove a user from
@param string $username  The AD user to remove from the group

@return bool
Remove a user from a group .