Remove mysql
This commit is contained in:
parent
8381941d51
commit
5002916352
1
Gemfile
1
Gemfile
|
@ -22,7 +22,6 @@ gem 'mini_magick'
|
|||
gem 'mongoid', '> 2.1', '< 3.0.0'
|
||||
gem 'mongoid-tree', :require => 'mongoid/tree'
|
||||
gem "mongo_session_store-rails3"
|
||||
gem 'mysql2'
|
||||
gem 'nokogiri'
|
||||
|
||||
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
#encoding: utf-8
|
||||
require 'mysql2'
|
||||
|
||||
$nccu_ldap_connection
|
||||
|
||||
module NccuLdapConnection
|
||||
BASE = 'ou=People,dc=nccu,dc=edu,dc=tw'
|
||||
|
||||
def self.establish
|
||||
$nccu_ldap_connection = Net::LDAP.new
|
||||
$nccu_ldap_connection.port =LDAP_CONFIG["port"]
|
||||
$nccu_ldap_connection.host = LDAP_CONFIG["host"]
|
||||
$nccu_ldap_connection.authenticate(LDAP_CONFIG["authenticate_info"],LDAP_CONFIG["authenticate_pwd"])
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in New Issue