Sha256: e3887951ec33af3ddaf8c8aee6b2906a6553fe13e9d8eb8f99b8f04e398b88bf
Contents?: true
Size: 881 Bytes
Versions: 2
Compression:
Stored size: 881 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 # Base DN mattr_accessor :ldap_base_dn @@ldap_base_dn = nil # Attribute for login mattr_accessor :ldap_login_attribute @@ldap_login_attribute = 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise_ldap_authenticatable-0.1.6 | lib/devise_ldap_authenticatable.rb |
devise_ldap_authenticatable-0.1.3 | lib/devise_ldap_authenticatable.rb |