diff --git a/app/models/authenticator/httpd.rb b/app/models/authenticator/httpd.rb index ba71c571a42..d6c6bb4208f 100644 --- a/app/models/authenticator/httpd.rb +++ b/app/models/authenticator/httpd.rb @@ -123,6 +123,7 @@ def username_to_upn_name(user_attrs) return user_attrs[:username] if user_attrs[:domain].nil? user_name = user_attrs[:username].split("@").first + user_name = user_name.split("\\").last if user_name.include?("\\") "#{user_name}@#{user_attrs[:domain]}".downcase end