You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Hasitha Abeykoon <ha...@gmail.com> on 2012/11/01 05:39:08 UTC

how to Disable Authentication of ZooKeeper

Hi,

It seems with newer version of ZooKeeper,  the Kerberos authentication
or Kerberos authentication is enforced. When I am starting Zookeeper within
our platform  now I am getting following error, and the server won't start.

 Error starting Coordination server
java.io.IOException: No JAAS configuration section named 'Server' was
foundin
'/home/hasitha/Desktop/wso2mb-2.0.1/repository/conf/security/jaas.conf'.
 at
org.apache.zookeeper.server.ServerCnxnFactory.configureSaslLogin(ServerCnxnFactory.java:194)
at
org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:87)
 at
org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServerMain.java:110)
at
org.wso2.carbon.coordination.server.CoordinationServer.run(CoordinationServer.java:81)

I do not need authentication at the moment. So I have to disable it. Is
there a way to do that?
Is there a way to do that via zoo.cfg, by editing

authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider
#requireClientAuthScheme=sasl


to have


authProvider.1=null


or something? It says


"requireClientAuthScheme=sasl is optional: if it is set to any value,
it will only allow non-authenticated clients to ping, create session,
close session, or sasl-authenticate."


But even without above line it asks for that jass.conf file.


Thanks.

-- 
*Hasitha Abeykoon,*
*Department of Computer Science & Engineering,*
*University of Moratuwa. *
*
*
*Skype: foreverhasitha*