Sha256: 4609a6b25c83fe9987eded508f0d592c4961e5d0f41675248d54560a61b6a18b
Contents?: true
Size: 1.07 KB
Versions: 8
Compression:
Stored size: 1.07 KB
Contents
module GitHub class Ldap module MembershipValidators class Base # Internal: The GitHub::Ldap object to search domains with. attr_reader :ldap # Internal: an Array of Net::LDAP::Entry group objects to validate with. attr_reader :groups # Public: Instantiate new validator. # # - ldap: GitHub::Ldap object # - groups: Array of Net::LDAP::Entry group objects # - options: Hash of options def initialize(ldap, groups, options = {}) @ldap = ldap @groups = groups @options = options end # Abstract: Performs the membership validation check. # # Returns Boolean whether the entry's membership is validated or not. # def perform(entry) # end # Internal: Domains to search through. # # Returns an Array of GitHub::Ldap::Domain objects. def domains @domains ||= ldap.search_domains.map { |base| ldap.domain(base) } end private :domains end end end end
Version data entries
8 entries across 8 versions & 1 rubygems