You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Stephen Tyree <ty...@gmail.com> on 2011/12/28 17:13:06 UTC

How to use zookeeper.DigestAuthenticationProvider.superDigest?

Hello,

I added the following line to my zookeeper config file:


zookeeper.DigestAuthenticationProvider.superDigest=super:4LVnEr8VX5VVtn/KiU6Aff8jqh8=

Which I generated using the following command-line:

    java -cp "./zookeeper-3.3.2.jar:./lib/log4j-1.2.15.jar"
org.apache.zookeeper.server.auth.DigestAuthenticationProvider
super:EjV93vqJeB3wHqrx

I then run zkCli.sh, and using the following call to addauth:

   addauth digest super:EjV93vqJeB3wHqrx

However, when I attempt to delete anything with an ACL, I get the following
error:

   Exception in thread "main"
org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode =
NoAuth

What am I doing wrong here?

Thanks,
Stephen Tyree

Re: How to use zookeeper.DigestAuthenticationProvider.superDigest?

Posted by Patrick Hunt <ph...@apache.org>.
According to the docs it's a system property only, not a config property:

http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_authOptions

I suspect this is the issue.

Patrick

On Wed, Dec 28, 2011 at 8:13 AM, Stephen Tyree <ty...@gmail.com> wrote:
> Hello,
>
> I added the following line to my zookeeper config file:
>
>
> zookeeper.DigestAuthenticationProvider.superDigest=super:4LVnEr8VX5VVtn/KiU6Aff8jqh8=
>
> Which I generated using the following command-line:
>
>    java -cp "./zookeeper-3.3.2.jar:./lib/log4j-1.2.15.jar"
> org.apache.zookeeper.server.auth.DigestAuthenticationProvider
> super:EjV93vqJeB3wHqrx
>
> I then run zkCli.sh, and using the following call to addauth:
>
>   addauth digest super:EjV93vqJeB3wHqrx
>
> However, when I attempt to delete anything with an ACL, I get the following
> error:
>
>   Exception in thread "main"
> org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode =
> NoAuth
>
> What am I doing wrong here?
>
> Thanks,
> Stephen Tyree