Sha256: 7f6124a1e25090e9f2edba2a20622ce066920cfaa152a7d9f023febbb0da5bbc

Contents?: true

Size: 521 Bytes

Versions: 9

Compression:

Stored size: 521 Bytes

Contents

module GitHub
  class Ldap
    module MemberSearch
      # Look up group members using the existing `Group#members` and
      # `Group#subgroups` API.
      class Classic < Base
        # Public: Performs search for group members, including groups and
        # members of subgroups recursively.
        #
        # Returns Array of Net::LDAP::Entry objects.
        def perform(group_entry)
          group = ldap.load_group(group_entry)
          group.members + group.subgroups
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
github-ldap-1.10.1 lib/github/ldap/member_search/classic.rb
github-ldap-1.10.0 lib/github/ldap/member_search/classic.rb
github-ldap-1.9.0 lib/github/ldap/member_search/classic.rb
github-ldap-1.8.2 lib/github/ldap/member_search/classic.rb
github-ldap-1.8.1 lib/github/ldap/member_search/classic.rb
github-ldap-1.8.0 lib/github/ldap/member_search/classic.rb
github-ldap-1.7.1 lib/github/ldap/member_search/classic.rb
github-ldap-1.7.0 lib/github/ldap/member_search/classic.rb
github-ldap-1.6.0 lib/github/ldap/member_search/classic.rb