From 75d652d9e53d8e87b9c144e2a06b20c8f1ee0cfb 2008-02-22 17:28:17 From: Jean-Philippe Lang Date: 2008-02-22 17:28:17 Subject: [PATCH] Ported r1169 from trunk. git-svn-id: http://redmine.rubyforge.org/svn/branches/0.6-stable@1170 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/auth_source_ldap.rb b/app/models/auth_source_ldap.rb index b79b3ce..5a6789a 100644 --- a/app/models/auth_source_ldap.rb +++ b/app/models/auth_source_ldap.rb @@ -27,6 +27,7 @@ class AuthSourceLdap < AuthSource end def authenticate(login, password) + return nil if login.blank? || password.blank? attrs = [] # get user's DN ldap_con = initialize_ldap_con(self.account, self.account_password)