Skip to content

Commit

Permalink
Merge pull request ManageIQ#21919 from awersate/master
Browse files Browse the repository at this point in the history
Multiple users being created for the same AD account
  • Loading branch information
jrafanie authored Oct 18, 2023
2 parents d2bff93 + 5a420fd commit c31edb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/authenticator/httpd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c31edb1

Please sign in to comment.