Skip to content

Commit

Permalink
Be less strict on hostname matching for ccache credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelch-r7 committed Sep 18, 2023
1 parent c1a44c8 commit 6000677
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ def load_credential_from_file(file_path, options = {})
next
end

unless !sname_hostname || sname_hostname.to_s.casecmp?(credential.server.components[1])
unless !sname_hostname || sname_hostname.to_s.downcase.ends_with?(credential.server.components[1])
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 6000677

Please sign in to comment.