Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-757

zkpython acl/auth usage needs documentation + unit test

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.3.0, 3.4.0
    • None
    • None
    • ubuntu karmic / lucid ... sun jdk 1.6.0_20

    Description

      The zookeeper digest authentication and acl scheme needs a bit more documentation. Currently its documented in the programmer guide.

      """
      digest uses a username:password string to generate MD5 hash which is then used as an ACL ID identity. Authentication is done by sending the username:password in clear text. When used in the ACL the expression will be the username:base64 encoded SHA1 password digest.
      """

      however its actually the digest of the entire credential that needs to be used.

      I've attached a python unit test that sets and verifies an acl on a node.

      Attachments

        1. working-test-acl-verify.diff
          2 kB
          Kapil Thangavelu

        Activity

          People

            Unassigned Unassigned
            kapilt Kapil Thangavelu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: