Skip to content

Fix KerberosAuthenticator serverPrincipal host replacement#5766

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

Fix KerberosAuthenticator serverPrincipal host replacement#5766
nishantmonu51 merged 1 commit intoapache:masterfrom
jon-wei:kerb_fixes

Conversation

@jon-wei
Copy link
Copy Markdown
Contributor

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

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
Copy link
Copy Markdown
Contributor

b-slim commented May 10, 2018

👍

@b-slim
Copy link
Copy Markdown
Contributor

b-slim commented May 10, 2018

@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
Copy link
Copy Markdown
Contributor Author

jon-wei commented May 10, 2018

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

Copy link
Copy Markdown
Member

@nishantmonu51 nishantmonu51 left a comment

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