Sha256: 53d37bc2356b91a97cfecfae57d0d5dc87b7735305a702e952a55924ce8d5607
Contents?: true
Size: 846 Bytes
Versions: 1
Compression:
Stored size: 846 Bytes
Contents
module Adauth # Holds all of Adauths Config values. # # Sets the defaults an create and generates guess values. class Config attr_accessor :domain, :port, :base, :server, :encryption, :query_user, :query_password, :allow_fallback, :allowed_groups, :denied_groups, :allowed_ous, :denied_ous, :contains_nested_groups def initialize @port = 389 @allowed_groups = [] @allowed_ous = [] @denied_groups =[] @denied_ous = [] @allow_fallback = false @contains_nested_groups = false end # Guesses the Server and Base string def domain=(s) @domain = s @server ||= s @base ||= s.gsub(/\./,', dc=').insert(0, 'dc=') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adauth-2.0.1 | lib/adauth/config.rb |