diff --git a/lib/ldap_login/login.rb b/lib/ldap_login/login.rb index 51c0734..6e80bc4 100644 --- a/lib/ldap_login/login.rb +++ b/lib/ldap_login/login.rb @@ -1,4 +1,5 @@ module LdapLogin::Login + require 'net/ldap' LDAP_ADSERVER=["ad.asia.edu.tw","ad2.asia.edu.tw","ad3.asia.edu.tw"] def ldap_login_auth(user,request,session,flash,params) LDAP_ADSERVER=["ad.asia.edu.tw","ad2.asia.edu.tw","ad3.asia.edu.tw"]