Sha256: 859769b2f409259105d297220b5a123e096854a70d6f4b11f72de0c5f8033a75
Contents?: true
Size: 923 Bytes
Versions: 4
Compression:
Stored size: 923 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, :anonymous_bind def initialize @port = 389 @allowed_groups = [] @allowed_ous = [] @denied_groups =[] @denied_ous = [] @allow_fallback = false @contains_nested_groups = false @anonymous_bind = 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
adauth-2.0.5 | lib/adauth/config.rb |
adauth-2.0.4 | lib/adauth/config.rb |
adauth-2.0.3 | lib/adauth/config.rb |
adauth-2.0.2 | lib/adauth/config.rb |