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_ldap.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_ldap.rb')
-rw-r--r-- | app/models/auth_source_ldap.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/auth_source_ldap.rb b/app/models/auth_source_ldap.rb index 6203a7c85..a619b2f85 100644 --- a/app/models/auth_source_ldap.rb +++ b/app/models/auth_source_ldap.rb @@ -91,6 +91,8 @@ class AuthSourceLdap < AuthSource end def self.get_attr(entry, attr_name) - entry[attr_name].is_a?(Array) ? entry[attr_name].first : entry[attr_name] + if !attr_name.blank? + entry[attr_name].is_a?(Array) ? entry[attr_name].first : entry[attr_name] + end end end |