[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
[backend] transport link chain in remote_getrev if the expansion failed

Should help with stuck 'service in progress' errors.