Cannot connect to memcached server with sasl enabled

I'm having difficulty setting up SASL on a memcached instance on AWS running ubuntu.

Specifications:

  • memcached-1.4.24: compiled with --enable-sasl, started with -S
  • Ubuntu 14.04.2 LTS
  • connection with Ubuntu 12.04.5

When I try to connect, I see the following in memcached logs:

<31 new binary client connection.
<31 Read binary protocol data:
<31    0x80 0x20 0x00 0x00
<31    0x00 0x00 0x00 0x00
<31    0x00 0x00 0x00 0x00
<31    0x00 0x02 0x00 0x00
<31    0x00 0x00 0x00 0x00
<31    0x00 0x00 0x00 0x00
authenticated() in cmd 0x20 is true
>31 Writing bin response:
>31   0x81 0x20 0x00 0x00
>31   0x00 0x00 0x00 0x00
>31   0x00 0x00 0x00 0x2e
>31   0x00 0x02 0x00 0x00
>31   0x00 0x00 0x00 0x00
>31   0x00 0x00 0x00 0x00
<31 Read binary protocol data:
<31    0x80 0x21 0x00 0x0a
<31    0x00 0x00 0x00 0x00
<31    0x00 0x00 0x00 0x0a
<31    0x00 0x02 0x00 0x00
<31    0x00 0x00 0x00 0x00
<31    0x00 0x00 0x00 0x00
authenticated() in cmd 0x21 is true
mech:  ``DIGEST-MD5'' with 0 bytes of data
SASL (severity 5): DIGEST-MD5 server step 1
sasl result code:  1
>31 Writing bin response:
>31   0x81 0x21 0x00 0x00
>31   0x00 0x00 0x00 0x21
>31   0x00 0x00 0x00 0x78
>31   0x00 0x02 0x00 0x00
>31   0x00 0x00 0x00 0x00
>31   0x00 0x00 0x00 0x00
<31 connection closed.
SASL (severity 5): DIGEST-MD5 common mech dispose

I am testing client connections using a client sample, sasl_test from a blog post: http://blog.memcachier.com/2014/11/05/ubuntu-libmemcached-and-sasl-support/

The following output is displayed:

$ ./sasl_test user password ec2-52-6-196-187.compute-1.amazonaws.com
Set failed: WRITE FAILURE

I confirmed that the test client can connect to other servers.

Any ideas?

+4
source share
1 answer

, . . memcached libmemcached. ?

,

0

All Articles