Class: Adauth::Config
- Inherits:
- 
      Object
      
        - Object
- Adauth::Config
 
- 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
- 
  
    
      #allow_fallback  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute allow_fallback. 
- 
  
    
      #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. 
- 
  
    
      #contains_nested_groups  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute contains_nested_groups. 
- 
  
    
      #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. 
- 
  
    
      #encryption  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute encryption. 
- 
  
    
      #port  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute port. 
- 
  
    
      #query_password  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute query_password. 
- 
  
    
      #query_user  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute query_user. 
- 
  
    
      #server  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute server. 
Instance Method Summary collapse
- 
  
    
      #initialize  ⇒ Config 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Config. 
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
| 9 10 11 12 13 14 15 16 17 | # File 'lib/adauth/config.rb', line 9 def initialize @port = 389 @allowed_groups = [] @allowed_ous = [] @denied_groups =[] @denied_ous = [] @allow_fallback = false @contains_nested_groups = false end | 
Instance Attribute Details
#allow_fallback ⇒ Object
Returns the value of attribute allow_fallback.
| 6 7 8 | # File 'lib/adauth/config.rb', line 6 def allow_fallback @allow_fallback end | 
#allowed_groups ⇒ Object
Returns the value of attribute allowed_groups.
| 6 7 8 | # File 'lib/adauth/config.rb', line 6 def allowed_groups @allowed_groups end | 
#allowed_ous ⇒ Object
Returns the value of attribute allowed_ous.
| 6 7 8 | # File 'lib/adauth/config.rb', line 6 def allowed_ous @allowed_ous end | 
#base ⇒ Object
Returns the value of attribute base.
| 6 7 8 | # File 'lib/adauth/config.rb', line 6 def base @base end | 
#contains_nested_groups ⇒ Object
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_groups ⇒ Object
Returns the value of attribute denied_groups.
| 6 7 8 | # File 'lib/adauth/config.rb', line 6 def denied_groups @denied_groups end | 
#denied_ous ⇒ Object
Returns the value of attribute denied_ous.
| 6 7 8 | # File 'lib/adauth/config.rb', line 6 def denied_ous @denied_ous end | 
#domain ⇒ Object
Returns the value of attribute domain.
| 6 7 8 | # File 'lib/adauth/config.rb', line 6 def domain @domain end | 
#encryption ⇒ Object
Returns the value of attribute encryption.
| 6 7 8 | # File 'lib/adauth/config.rb', line 6 def encryption @encryption end | 
#port ⇒ Object
Returns the value of attribute port.
| 6 7 8 | # File 'lib/adauth/config.rb', line 6 def port @port end | 
#query_password ⇒ Object
Returns the value of attribute query_password.
| 6 7 8 | # File 'lib/adauth/config.rb', line 6 def query_password @query_password end | 
#query_user ⇒ Object
Returns the value of attribute query_user.
| 6 7 8 | # File 'lib/adauth/config.rb', line 6 def query_user @query_user end | 
#server ⇒ Object
Returns the value of attribute server.
| 6 7 8 | # File 'lib/adauth/config.rb', line 6 def server @server end |