Class: Adauth::Config
- Inherits:
-
Object
- Object
- Adauth::Config
- Defined in:
- lib/adauth/config.rb
Overview
Holds all of adauth config in attr_accessor values
Instance Attribute Summary collapse
-
#ad_mv_attrs ⇒ Object
Returns the value of attribute ad_mv_attrs.
-
#ad_mv_group_attrs ⇒ Object
Returns the value of attribute ad_mv_group_attrs.
-
#ad_sv_attrs ⇒ Object
Returns the value of attribute ad_sv_attrs.
-
#ad_sv_group_attrs ⇒ Object
Returns the value of attribute ad_sv_group_attrs.
-
#admin_password ⇒ Object
Returns the value of attribute admin_password.
-
#admin_user ⇒ Object
Returns the value of attribute admin_user.
-
#allowed_groups ⇒ Object
Returns the value of attribute allowed_groups.
-
#allowed_ous ⇒ Object
Returns the value of attribute allowed_ous.
-
#base ⇒ Object
Returns the value of attribute base.
-
#denied_groups ⇒ Object
Returns the value of attribute denied_groups.
-
#denied_ous ⇒ Object
Returns the value of attribute denied_ous.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#port ⇒ Object
Returns the value of attribute port.
-
#server ⇒ Object
Returns the value of attribute server.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
Creates a new instance of Adauth::Config.
Constructor Details
#initialize ⇒ Config
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_attrs ⇒ Object
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_attrs ⇒ Object
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_attrs ⇒ Object
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_attrs ⇒ Object
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_password ⇒ Object
Returns the value of attribute admin_password.
5 6 7 |
# File 'lib/adauth/config.rb', line 5 def admin_password @admin_password end |
#admin_user ⇒ Object
Returns the value of attribute admin_user.
5 6 7 |
# File 'lib/adauth/config.rb', line 5 def admin_user @admin_user end |
#allowed_groups ⇒ Object
Returns the value of attribute allowed_groups.
5 6 7 |
# File 'lib/adauth/config.rb', line 5 def allowed_groups @allowed_groups end |
#allowed_ous ⇒ Object
Returns the value of attribute allowed_ous.
5 6 7 |
# File 'lib/adauth/config.rb', line 5 def allowed_ous @allowed_ous end |
#base ⇒ Object
Returns the value of attribute base.
5 6 7 |
# File 'lib/adauth/config.rb', line 5 def base @base end |
#denied_groups ⇒ Object
Returns the value of attribute denied_groups.
5 6 7 |
# File 'lib/adauth/config.rb', line 5 def denied_groups @denied_groups end |
#denied_ous ⇒ Object
Returns the value of attribute denied_ous.
5 6 7 |
# File 'lib/adauth/config.rb', line 5 def denied_ous @denied_ous end |
#domain ⇒ Object
Returns the value of attribute domain.
5 6 7 |
# File 'lib/adauth/config.rb', line 5 def domain @domain end |
#port ⇒ Object
Returns the value of attribute port.
5 6 7 |
# File 'lib/adauth/config.rb', line 5 def port @port end |
#server ⇒ Object
Returns the value of attribute server.
5 6 7 |
# File 'lib/adauth/config.rb', line 5 def server @server end |