diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-11-25 19:33:41 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-11-25 19:33:41 +0000 |
commit | c54f15e35f37adb8f6e025ce45dc7645c5f2292e (patch) | |
tree | a6ac336def98158028610f4c583e35b0f93582c7 /app/models/auth_source.rb | |
parent | db37e578f2697e07e10931c100e848b996e483d5 (diff) | |
download | redmine-c54f15e35f37adb8f6e025ce45dc7645c5f2292e.tar.gz redmine-c54f15e35f37adb8f6e025ce45dc7645c5f2292e.zip |
Do not request blank LDAP attributes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2056 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/auth_source.rb')
-rw-r--r-- | app/models/auth_source.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/auth_source.rb b/app/models/auth_source.rb index a0a2cdc5f..537ed2d43 100644 --- a/app/models/auth_source.rb +++ b/app/models/auth_source.rb @@ -38,7 +38,8 @@ class AuthSource < ActiveRecord::Base begin logger.debug "Authenticating '#{login}' against '#{source.name}'" if logger && logger.debug? attrs = source.authenticate(login, password) - rescue + rescue => e + logger.error "Error during authentication: #{e.message}" attrs = nil end return attrs if attrs |