Sha256: 9425cb397ea139601f91bc4f4d136b135e06343a0366f2730a64502b1f2e9deb

Contents?: true

Size: 714 Bytes

Versions: 1

Compression:

Stored size: 714 Bytes

Contents

# encoding: utf-8
require 'devise'

require 'devise_ldap_authenticatable/schema'
require 'devise_ldap_authenticatable/ldap_adapter'
require 'devise_ldap_authenticatable/routes'

module Devise
  # host
  mattr_accessor :ldap_host
  @@ldap_host = nil

  # port
  mattr_accessor :ldap_port
  @@ldap_port = nil
  
  # Use SSL
  mattr_accessor :ldap_ssl
  @@ldap_ssl = false
  
  # Add valid users to database
  mattr_accessor :ldap_create_user
  @ldap_create_user = false
end

# Add ldap_authenticatable strategy to defaults.
#
Devise.add_module(:ldap_authenticatable,
                  :strategy   => true,
                  :controller => :sessions,
                  :model  => 'devise_ldap_authenticatable/model')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
devise_ldap_authenticatable-0.1.2 lib/devise_ldap_authenticatable.rb