From 5b4119bf13114eb4ee6a94d1d8ea0d4eab755f90 Mon Sep 17 00:00:00 2001 From: chiu Date: Mon, 22 Feb 2021 12:12:19 +0800 Subject: [PATCH] fix error --- lib/ldap_login/login.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ldap_login/login.rb b/lib/ldap_login/login.rb index 39b8c8f..e6311b5 100644 --- a/lib/ldap_login/login.rb +++ b/lib/ldap_login/login.rb @@ -13,7 +13,7 @@ module LdapLogin::Login ldap = Net::LDAP.new ldap.host = ldap_host ldap.port = 389 - ldap.auth #{ldap_user}@asia.edu.tw, ldap_pass + ldap.auth "#{ldap_user}@asia.edu.tw", ldap_pass if ldap.bind puts ['ldap_user',ldap_user,'ldap_pass',ldap_pass] if !user.nil?