hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From FANG Yang <fa...@douban.com>
Subject Re: invalid acl for ZOO_CREATOR_ALL_ACL
Date Wed, 20 Oct 2010 02:33:38 GMT
2010/10/20 Benjamin Reed <breed@yahoo-inc.com>

>  which scheme are you using?
>
> ben

 I Just call zoo_add_auth in c souce code, as follows:
     zoo_add_auth(zh,"digest","pat:passwd",10,0,0)

>
>
> On 10/18/2010 11:57 PM, FANG Yang wrote:
>
>> 2010/10/19 FANG Yang<fangy@douban.com>
>>
>>  hi, all
>>>     I have a simple zk client written by c ,which is attachment  #1. When
>>> i
>>> use  ZOO_CREATOR_ALL_ACL, the ret code of zoo_create is -114((Invalid ACL
>>> specified definde in zookeeper.h)), but after i replace it with
>>> ZOO_OPEN_ACL_UNSAFE, it work. Zookeeper Programmer's Guide mention that
>>> CREATE_ALL_ACL grants all permissions to the creator of the node. The
>>> creator must have been authenticated by the server (for example, using
>>> “digest” scheme) before it can create nodes with this ACL. I call
>>> zoo_add_auth accroding to func testAuth of TestClient.cc in src/c/tests
>>> in
>>> my source code, but it doesn't work, ret code is still -114 . Would you
>>> guys
>>> do me a favor, plz?
>>>
>>> --
>>> 方阳 FANG Yang
>>> 开发工程师 Software Engineer
>>> Douban Inc.
>>> MSN:franklin.fang@hotmail.com
>>> Gtalk:franklin.fang@gmail.com
>>> skype:franklin.fang
>>> No.14 Jiuxianqiao Road, Area 51 A1-1-2016, Beijing 100016 , China
>>> 北京市酒仙桥路14号51楼A1区1门2016,100016
>>>
>>>    And my zk version is 3.2.2, mode is standalone.
>>
>>
>>
>


-- 
方阳 FANG Yang
开发工程师 Software Engineer
Douban Inc.
MSN:franklin.fang@hotmail.com
Gtalk:franklin.fang@gmail.com
skype:franklin.fang
No.14 Jiuxianqiao Road, Area 51 A1-1-2016, Beijing 100016 , China
北京市酒仙桥路14号51楼A1区1门2016,100016

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message