]> source.dussan.org Git - redmine.git/commitdiff
Fixed: LDAP authentication without password may be possible (#714).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 22 Feb 2008 17:26:53 +0000 (17:26 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 22 Feb 2008 17:26:53 +0000 (17:26 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1169 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/auth_source_ldap.rb

index b79b3ced04d823468c52eae113d81fa358fbffd8..5a6789a3b5c6429ef26f0757c5b66736143992f5 100644 (file)
@@ -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)