1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-01 13:19:39 +00:00

remove redundant empty lines from app/models/auth_source_ldap.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@13169 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-05-25 14:37:56 +00:00
parent b189d85dde
commit d0c741c88c

View File

@ -175,20 +175,16 @@ class AuthSourceLdap < AuthSource
end
attrs = {}
search_filter = base_filter & Net::LDAP::Filter.eq(self.attr_login, login)
ldap_con.search( :base => self.base_dn,
:filter => search_filter,
:attributes=> search_attributes) do |entry|
if onthefly_register?
attrs = get_user_attributes_from_ldap_entry(entry)
else
attrs = {:dn => entry.dn}
end
logger.debug "DN found for #{login}: #{attrs[:dn]}" if logger && logger.debug?
end
attrs
end