public function search($sAMAaccountType = Adldap::ADLDAP_SECURITY_GLOBAL_GROUP, $select = [], $sorted = true)
    {
        $search = $this->adldap->search()
            ->select($select)
            ->where('objectCategory', '=', 'group');

        if ($sAMAaccountType !== null) {
            $search->where('samaccounttype', '=', $sAMAaccountType);
        }

        if ($sorted) {
            $search->sortBy('samaccountname', 'asc');
        }

        return $search->get();
    }