summaryrefslogtreecommitdiffstats
path: root/app/models/auth_source_ldap.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-02-26 08:29:20 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-02-26 08:29:20 +0000
commitaa521c5a5a31d901e99c924bfd1861f74d5db2be (patch)
treee92969fbe0c7f717f9f67e2b60e1e50be5407a5c /app/models/auth_source_ldap.rb
parent3de1f2e157487b64a10127eeb007ab3879b325d9 (diff)
downloadredmine-aa521c5a5a31d901e99c924bfd1861f74d5db2be.tar.gz
redmine-aa521c5a5a31d901e99c924bfd1861f74d5db2be.zip
User model should not have to clean up LDAP attributes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3488 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/auth_source_ldap.rb')
-rw-r--r--app/models/auth_source_ldap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/auth_source_ldap.rb b/app/models/auth_source_ldap.rb
index 1378d004d..0a5355072 100644
--- a/app/models/auth_source_ldap.rb
+++ b/app/models/auth_source_ldap.rb
@@ -37,7 +37,7 @@ class AuthSourceLdap < AuthSource
if attrs.first && attrs.first[:dn] && authenticate_dn(attrs.first[:dn], password)
logger.debug "Authentication successful for '#{login}'" if logger && logger.debug?
- return attrs
+ return [] << attrs.first.except(:dn)
end
rescue Net::LDAP::LdapError => text
raise "LdapError: " + text