Skip to content

Fix KerberosAuthenticator serverPrincipal host replacement - #5766

Merged
nishantmonu51 merged 1 commit into
apache:masterfrom
jon-wei:kerb_fixes
May 10, 2018
Merged

nishantmonu51 merged 1 commit into
apache:masterfrom
jon-wei:kerb_fixes

Conversation

@jon-wei

@jon-wei jon-wei commented May 9, 2018

Copy link
Copy Markdown
Contributor

The Kerberos authenticator has a feature to replace the "_HOST" placeholder string (if present) in the serverPrincipal with the value of druid.host.

This transformation wasn't applied in getPrincipalFromRequestNew(), this patch changes serverPrincipal such that the host replacement is applied in the constructor and saved.

@jon-wei jon-wei added this to the 0.12.1 milestone May 9, 2018
@b-slim

b-slim commented May 10, 2018

Copy link
Copy Markdown
Contributor

👍

@b-slim

b-slim commented May 10, 2018

Copy link
Copy Markdown
Contributor

@jon-wei do you have the Stack trace that lead to this issue? it is helpful to have it indexed for eventual FAQs about kerberos madness..

@jon-wei

jon-wei commented May 10, 2018

Copy link
Copy Markdown
Contributor Author

@b-slim I don't have a stack trace, I noticed the issue while reviewing the code

@nishantmonu51 nishantmonu51 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants