diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-02-22 17:26:53 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-02-22 17:26:53 +0000 |
commit | b935aebd99369a9c8e848f9d346be56e02c57c4b (patch) | |
tree | c84358f17e2d7aadbc076d5987e526443540be70 /app | |
parent | ade572048a768c0ee330d444216469c0e9d97f42 (diff) | |
download | redmine-b935aebd99369a9c8e848f9d346be56e02c57c4b.tar.gz redmine-b935aebd99369a9c8e848f9d346be56e02c57c4b.zip |
Fixed: LDAP authentication without password may be possible (#714).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1169 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/auth_source_ldap.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/auth_source_ldap.rb b/app/models/auth_source_ldap.rb index b79b3ced0..5a6789a3b 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) |