Skip to content

Commit

Permalink
ZOOKEEPER-1112: Add support for C client for SASL authentication Patch
Browse files Browse the repository at this point in the history
…apache#3

3rd patch
* includes a sasl-enabled cli as additional make artifacts

When using the test configuration as in tests/jaas.digest.server.conf
you can login via:

cli_sasl_st -u super -h zk-sasl-md5 -m DIGEST-MD5 hostlist

and password 'test'.

If you set up Kerberos 5 on the server side and have a valid ticket
its just:

cli_sasl_st -m GSSAPI hostlist

(Forward-ported from ticket attachment ZOOKEEPER-1112_3.patch by
Damien Diederen.)
  • Loading branch information
Tom Klonikowski authored and ztzg committed Aug 12, 2019
1 parent 7ec98f8 commit 722de09
Show file tree
Hide file tree
Showing 2 changed files with 827 additions and 0 deletions.
16 changes: 16 additions & 0 deletions zookeeper-client/zookeeper-client-c/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ cli_st_SOURCES = src/cli.c
cli_st_LDADD = libzookeeper_st.la
cli_st_CFLAGS = $(SASL_CFLAGS)

if WANT_SASL
bin_PROGRAMS += cli_sasl_st

cli_sasl_st_SOURCES = src/cli_sasl.c
cli_sasl_st_LDADD = libzookeeper_st.la
cli_sasl_st_CFLAGS = $(SASL_CFLAGS)
endif

if WANT_SYNCAPI
bin_PROGRAMS += cli_mt load_gen

Expand All @@ -85,6 +93,14 @@ load_gen_SOURCES = src/load_gen.c
load_gen_LDADD = libzookeeper_mt.la
load_gen_CFLAGS = -DTHREADED $(SASL_CFLAGS)

if WANT_SASL
bin_PROGRAMS += cli_sasl_mt

cli_sasl_mt_SOURCES = src/cli_sasl.c
cli_sasl_mt_LDADD = libzookeeper_mt.la
cli_sasl_mt_CFLAGS = -DTHREADED $(SASL_CFLAGS)
endif

endif

#########################################################################
Expand Down
Loading

0 comments on commit 722de09

Please sign in to comment.