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 :( On Thursday, November 9, 2023 at 6:59:39 PM UTC-3 Patrick Nogueira wrote:
> I've been using memcache since forever and for the very first time I have > to setup a installation with SASL support. > > I tried this tutorial > https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-memcached-on-ubuntu-22-04 > > 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. > > > > > -- --- You received this message because you are subscribed to the Google Groups "memcached" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/memcached/47c7b88e-7a5d-4773-b78c-f42afaa80059n%40googlegroups.com.
