Skip to content

Commit

Permalink
Fix comparision case for service name hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
cdelafuente-r7 committed Jan 24, 2025
1 parent d8e9093 commit 25bd5d7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1088,8 +1088,8 @@ def load_credential_from_file(file_path, options = {})
end

unless !sname_hostname ||
sname_hostname.to_s.downcase == credential.server.components[1] ||
sname_hostname.to_s.downcase.ends_with?('.' + credential.server.components[1])
sname_hostname.to_s.downcase == credential.server.components[1].downcase ||
sname_hostname.to_s.downcase.ends_with?('.' + credential.server.components[1].downcase)
wlog("Filtered credential #{file_path} ##{index} reason: SPN (#{sname_hostname}) hostname does not match (spn: #{credential.server.components.snapshot.join('/')})")
next
end
Expand Down

0 comments on commit 25bd5d7

Please sign in to comment.