Class: Adauth::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/adauth/config.rb

Overview

Holds all of Adauths Config values.

Sets the defaults an create and generates guess values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



10
11
12
13
14
15
16
17
18
19
# File 'lib/adauth/config.rb', line 10

def initialize
    @port = 389
    @allowed_groups = []
    @allowed_ous = []
    @denied_groups =[]
    @denied_ous = []
    @allow_fallback = false
    @contains_nested_groups = false
    @anonymous_bind = false
end

Instance Attribute Details

#allow_fallbackObject

Returns the value of attribute allow_fallback.



6
7
8
# File 'lib/adauth/config.rb', line 6

def allow_fallback
  @allow_fallback
end

#allowed_groupsObject

Returns the value of attribute allowed_groups.



6
7
8
# File 'lib/adauth/config.rb', line 6

def allowed_groups
  @allowed_groups
end

#allowed_ousObject

Returns the value of attribute allowed_ous.



6
7
8
# File 'lib/adauth/config.rb', line 6

def allowed_ous
  @allowed_ous
end

#anonymous_bindObject

Returns the value of attribute anonymous_bind.



6
7
8
# File 'lib/adauth/config.rb', line 6

def anonymous_bind
  @anonymous_bind
end

#baseObject

Returns the value of attribute base.



6
7
8
# File 'lib/adauth/config.rb', line 6

def base
  @base
end

#contains_nested_groupsObject

Returns the value of attribute contains_nested_groups.



6
7
8
# File 'lib/adauth/config.rb', line 6

def contains_nested_groups
  @contains_nested_groups
end

#denied_groupsObject

Returns the value of attribute denied_groups.



6
7
8
# File 'lib/adauth/config.rb', line 6

def denied_groups
  @denied_groups
end

#denied_ousObject

Returns the value of attribute denied_ous.



6
7
8
# File 'lib/adauth/config.rb', line 6

def denied_ous
  @denied_ous
end

#domainObject

Returns the value of attribute domain.



6
7
8
# File 'lib/adauth/config.rb', line 6

def domain
  @domain
end

#encryptionObject

Returns the value of attribute encryption.



6
7
8
# File 'lib/adauth/config.rb', line 6

def encryption
  @encryption
end

#portObject

Returns the value of attribute port.



6
7
8
# File 'lib/adauth/config.rb', line 6

def port
  @port
end

#query_passwordObject

Returns the value of attribute query_password.



6
7
8
# File 'lib/adauth/config.rb', line 6

def query_password
  @query_password
end

#query_userObject

Returns the value of attribute query_user.



6
7
8
# File 'lib/adauth/config.rb', line 6

def query_user
  @query_user
end

#serverObject

Returns the value of attribute server.



6
7
8
# File 'lib/adauth/config.rb', line 6

def server
  @server
end