Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ubuntu 无法连接到启用sasl的memcached服务器_Ubuntu_Memcached_Sasl - Fatal编程技术网

Ubuntu 无法连接到启用sasl的memcached服务器

Ubuntu 无法连接到启用sasl的memcached服务器,ubuntu,memcached,sasl,Ubuntu,Memcached,Sasl,我在运行ubuntu的AWS上的memcached实例上设置SASL时遇到了一些困难 规格: memcached-1.4.24:使用--enable sasl编译,以-S开头 Ubuntu 14.04.2 LTS 从Ubuntu 12.04.5连接 尝试连接时,我在memcached日志中看到以下内容: <31 new binary client connection. <31 Read binary protocol data: <31 0x80 0x20 0x00

我在运行ubuntu的AWS上的memcached实例上设置SASL时遇到了一些困难

规格:

  • memcached-1.4.24:使用--enable sasl编译,以-S开头
  • Ubuntu 14.04.2 LTS
  • 从Ubuntu 12.04.5连接
尝试连接时,我在memcached日志中看到以下内容:

<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
我已经确认测试客户端可以连接到其他服务器


有什么想法吗?

在尝试使用spy memcached library连接DIGEST-MD5时,我看到了完全相同的错误

在我的例子中,spy memcached库不支持使用“DIGEST-MD5”机制进行身份验证

检查sasl_测试是否支持DIGEST-MD5

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