SASL (severity 2): Password verification failed

49 views
Skip to first unread message

Patrick Nogueira

unread,
Nov 9, 2023, 4:59:39 PM11/9/23
to memcached
I've been using memcache since forever and for the very first time I have to setup a installation with SASL support.


but when I try to connect to the memcache using the command memstat I cannot authenticate.

memcstat --servers="127.0.0.1" --username="patrick" --password=123123

When I check the Journal I get these messages:
Nov 09 21:42:51 MP4-MEMCACHE systemd-memcached-wrapper[1882]: Initialized SASL.
Nov 09 21:43:22 MP4-MEMCACHE systemd-memcached-wrapper[1882]: SASL (severity 2): Password verification failed

When I check the daemon status I get these messages:
Nov 09 21:45:53 MP4-MEMCACHE systemd-memcached-wrapper[1882]: Unknown sasl response:  -20
Nov 09 21:45:53 MP4-MEMCACHE systemd-memcached-wrapper[1882]: >23 Writing an error: Auth failure.
Nov 09 21:45:53 MP4-MEMCACHE systemd-memcached-wrapper[1882]: >23 Writing bin response:
Nov 09 21:45:53 MP4-MEMCACHE systemd-memcached-wrapper[1882]: >23   0x81 0x21 0x00 0x00
Nov 09 21:45:53 MP4-MEMCACHE systemd-memcached-wrapper[1882]: >23   0x00 0x00 0x00 0x20
Nov 09 21:45:53 MP4-MEMCACHE systemd-memcached-wrapper[1882]: >23   0x00 0x00 0x00 0x0d
Nov 09 21:45:53 MP4-MEMCACHE systemd-memcached-wrapper[1882]: >23   0x00 0x02 0x00 0x00
Nov 09 21:45:53 MP4-MEMCACHE systemd-memcached-wrapper[1882]: >23   0x00 0x00 0x00 0x00
Nov 09 21:45:53 MP4-MEMCACHE systemd-memcached-wrapper[1882]: >23   0x00 0x00 0x00 0x00
Nov 09 21:45:53 MP4-MEMCACHE systemd-memcached-wrapper[1882]: <23 connection closed.

Does anyone could help me to this this issue?
I already tried to create other users but the result is always the same.




Patrick Nogueira

unread,
Nov 9, 2023, 7:10:41 PM11/9/23
to memcached

Found out the issue
The sasl is adding the server name in lowercase after the username. I know that this could happen but my server name is in uppercase :(
Reply all
Reply to author
Forward
0 new messages