Class: Adauth::Config

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

Overview

Holds all of adauth config in attr_accessor values

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Creates a new instance of Adauth::Config

Sets port, allowed_groups, denied_groups, ad_sv_attrs and ad_mv_attrs to default so they can be omitted from the config



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

def initialize
   @port = 389
   @allowed_groups = []
   @denied_groups = []
   @ad_sv_attrs = {}
   @ad_mv_attrs = {}
   @allowed_ous = []
   @denied_ous = []
   @ad_sv_group_attrs = {}
   @ad_mv_group_attrs = {}
end

Instance Attribute Details

#ad_mv_attrsObject

Returns the value of attribute ad_mv_attrs.



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

def ad_mv_attrs
  @ad_mv_attrs
end

#ad_mv_group_attrsObject

Returns the value of attribute ad_mv_group_attrs.



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

def ad_mv_group_attrs
  @ad_mv_group_attrs
end

#ad_sv_attrsObject

Returns the value of attribute ad_sv_attrs.



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

def ad_sv_attrs
  @ad_sv_attrs
end

#ad_sv_group_attrsObject

Returns the value of attribute ad_sv_group_attrs.



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

def ad_sv_group_attrs
  @ad_sv_group_attrs
end

#admin_passwordObject

Returns the value of attribute admin_password.



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

def admin_password
  @admin_password
end

#admin_userObject

Returns the value of attribute admin_user.



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

def admin_user
  @admin_user
end

#allowed_groupsObject

Returns the value of attribute allowed_groups.



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

def allowed_groups
  @allowed_groups
end

#allowed_ousObject

Returns the value of attribute allowed_ous.



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

def allowed_ous
  @allowed_ous
end

#baseObject

Returns the value of attribute base.



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

def base
  @base
end

#denied_groupsObject

Returns the value of attribute denied_groups.



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

def denied_groups
  @denied_groups
end

#denied_ousObject

Returns the value of attribute denied_ous.



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

def denied_ous
  @denied_ous
end

#domainObject

Returns the value of attribute domain.



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

def domain
  @domain
end

#portObject

Returns the value of attribute port.



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

def port
  @port
end

#serverObject

Returns the value of attribute server.



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

def server
  @server
end