You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this library to connect a Memcached node with CRAM-MD5 SASL authentication. but I'm getting an authentication error.
I should mention that I tried similar code using the library net.spy.memcached and its client can successfully connect and fetch the data.
the versions I'm using:
this library: 2.4.8
library net.spy.memcached: 2.12.3
here is a reproducible code. just remember I created and ran 3 different Memcached nodes on 3 different ports on my local PC to test these two libraries against all the authentication methods (no authentication, PLAIN, and CRAM-MD5). both libraries successfully connect and fetch data using no authentication and PLAIN methods. but when I'm trying CRAM-MD5, only net.spy.memcached client can pass the authentication and get the data. Xmemcached client failed to authenticate. I'm wondering why. it seems I'm using closely similar configurations in both libraries. you can create similar nodes on your machine and then test the code below yourself.
My question is what should I do to make the Xmemcached client pass the CRAM-MD5 authentication? I prefer using your library due to its synchronized methods. I'm using Memcached in an environment that does not need more than one node and also one client. so I don't want to struggle with the multithreading problems.
Hello @killme2008
I'm using this library to connect a Memcached node with
CRAM-MD5
SASL authentication. but I'm getting an authentication error.I should mention that I tried similar code using the library
net.spy.memcached
and its client can successfully connect and fetch the data.the versions I'm using:
this library:
2.4.8
library
net.spy.memcached
:2.12.3
here is a reproducible code. just remember I created and ran 3 different Memcached nodes on 3 different ports on my local PC to test these two libraries against all the authentication methods (
no authentication
,PLAIN
, andCRAM-MD5
). both libraries successfully connect and fetch data usingno authentication
andPLAIN
methods. but when I'm tryingCRAM-MD5
, onlynet.spy.memcached
client can pass the authentication and get the data.Xmemcached
client failed to authenticate. I'm wondering why. it seems I'm using closely similar configurations in both libraries. you can create similar nodes on your machine and then test the code below yourself.My question is what should I do to make the Xmemcached client pass the
CRAM-MD5
authentication? I prefer using your library due to its synchronized methods. I'm using Memcached in an environment that does not need more than one node and also one client. so I don't want to struggle with the multithreading problems.Thanks for your help.
and here is the console result:
The text was updated successfully, but these errors were encountered: