You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by Jorge Allen <al...@yahoo.com> on 2013/05/10 02:03:34 UTC

[jira] [Commented] (ZOOKEEPER-1554) Can't use zookeeper client without SASL


I worked on a couple ways to deal with this until the next release: 3.5.0. 


You can eliminate the read permission to the variable 'java.security.auth.login.config' in the vm. This will throw a SecurityException, and the method will return false when it is caught.

Or you can make it believe it has sasl authentication, but give it a bogus path:

 System.setProperty("java.security.auth.login.config","/boguspath/at/home");

This will cause it to go into the method,but once it tries to open the file, it will bomb with another SecurityException.


Bon Appetit!



Jorge Allen
allenitfinance@yahoo.com