Sha256: 94c800b087b80bda17bde99f823e4db2ccec527966392358e3ea3af921b5860e
Contents?: true
Size: 723 Bytes
Versions: 3
Compression:
Stored size: 723 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, :allowed_groups, :denied_groups, :allowed_ous, :denied_ous def initialize @port = 389 @allowed_groups = [] @allowed_ous = [] @denied_groups =[] @denied_ous = [] end # Guesses the Server and Base string def domain=(s) @domain = s @server ||= s @base ||= s.gsub(/\./,', dc=').gsub(/^/,"dc=") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
adauth-2.0.0pre2 | lib/adauth/config.rb |
adauth-2.0.0pre1 | lib/adauth/config.rb |
adauth-2.0.0pre | lib/adauth/config.rb |