[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13122176#comment-13122176
 ] 

[email protected] commented on ZOOKEEPER-1112:
----------------------------------------------------------


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/2252/
-----------------------------------------------------------

(Updated 2011-10-06 19:09:56.213145)


Review request for zookeeper and Eugene Koontz.


Summary
-------

It now supports DIGEST-MD5 and GSSAPI (and virtually any mech SASL supports). 
cli_mt works with GSSAPI, cli_st with DIGEST-MD5 and GSSAPI

Example: cli_st -u super -h zk-sasl-md5 -m DIGEST-MD5 localhost:2181
         cli_mt -M GSSAPI localhost:2181

* requires libsasl2 and plugins

* zookeeper
  o zoo_(a)sasl(*zh, *conn, *data, len, cptr)
* zk_sasl
  o zoo_sasl_init(*callbacks)
  o zoo_sasl_connect(*zh, *servicename, *host, **conn, **supportedmechs, 
*mechcount)
  o zoo_(a)sasl_authenticate(*zh, *conn, *mech, *supportedmechs)

This latest patch includes

* detection of libsasl2
* configure option --with-sasl (default: on)
* compiler flag SASL
* a simple test for DIGEST-MD5 authentication


This addresses bug ZOOKEEPER-1112.
    https://issues.apache.org/jira/browse/ZOOKEEPER-1112


Diffs
-----

  src/c/src/zk_adaptor.h 6aed38f 
  src/c/src/zk_sasl.h PRE-CREATION 
  src/c/src/zk_sasl.c PRE-CREATION 
  src/c/src/cli.c c9fe4dd 
  src/c/Makefile.am dbf4080 
  src/c/configure.ac 4e1a8d5 
  src/c/include/proto.h bce408e 
  src/c/include/zookeeper.h 7d1066a 
  src/c/src/zookeeper.c 64d7a4d 
  src/c/tests/TestClient.cc 2d45cec 
  src/c/tests/jaas.digest.server.conf PRE-CREATION 
  src/c/tests/zkServer.sh 0af80f8 
  src/java/main/org/apache/zookeeper/server/ZooKeeperSaslServer.java 0ca18dc 

Diff: https://reviews.apache.org/r/2252/diff


Testing
-------


Thanks,

Tom


                
> Add support for C client for SASL authentication
> ------------------------------------------------
>
>                 Key: ZOOKEEPER-1112
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1112
>             Project: ZooKeeper
>          Issue Type: New Feature
>            Reporter: Eugene Koontz
>         Attachments: ZOOKEEPER-1112.patch, zookeeper-c-client-sasl.patch
>
>
> Hopefully this would leverage the SASL server-side support provided by 
> ZOOKEEPER-938. It would be similar to the Java SASL client support also 
> provided in ZOOKEEPER-938.
> Java has built-in SASL support, but I'm not sure what C libraries are 
> available for SASL and if so, are they compatible with the Apache license.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to