-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return false when java.security.auth.login.config is unreadable #78
Comments
I see it that way:
So even if you would go past that check by making it a warning, my expectation is you start to run into the real problem by not being able to connect to zookeeper! Thoughts @fpj ? |
Oh you're right, I didn't notice that just above those lines. Will it make sense though to default |
Yes, i mean depends on your environment/setup! |
Ah I just meant, because of the line: boolean zkSaslEnabled = Boolean.parseBoolean(System.getProperty(ZK_SASL_CLIENT, "true")); It defaults to |
Oh yes, i think that makes sense! @fpj any concerns ? |
In the ZkClient#isZkSaslEnabled, the method fails when the file represented by
java.security.auth.login.config
is unreadable:Another 3rd-party library I'm using in the classpath, unfortunately, sets the
java.security.auth.login.config
system property togss.conf
, which causesZkClient
to fail when checking whether Sasl is enabled.Will it be alright to replace this with a logger warning instead (i.e., return
false
on cases where the config file is unreadable)? If not, what're your recommendations?The text was updated successfully, but these errors were encountered: