[api] Fix ldap incorrect use of 'login' variable
[api] Fix 'user_ldap_strategy.rb' unable to call 'logger.debug' method

make direct call to Rails.logger.debug instead of logger.debug