Memcached SASL Authentication Detection
SASL changes your workflow: text protocol probing may fail, and the server may require binary protocol before it will answer anything useful.
Detect likely SASL or binary-only behavior
Start with a basic text probe:
Signs you need a different approach:
Connection closes immediately without a
VERSION.You get only
ERRORresponses to basic text commands.
Confirm with memcstat using binary mode
If you have credentials:
If you do not have credentials yet, binary mode without auth can still confirm behavior:
Interpretation:
If
-bworks and text probing fails, you’re likely looking at SASL/binary-only configuration.If
-bworks only with-u/-p, the service is enforcing authentication and you should pivot to credential sourcing elsewhere.
memcdump with SASL credentials
Use memccat to fetch specific keys once you have them.
Warning
The memcached binary protocol is considered deprecated upstream, but SASL deployments still rely on it in real environments. Treat this as a client-compatibility problem, not a reason to stop.
References
-
memcached -S enables SASL and requires binary protocol.
-
manpages.debian.orgmanpages.debian.org/experimental/libmemcached-tools/memcstat.1.en.html (opens in new tab)
memcstat binary and SASL flags (-b, -u, -p).
-
docs.memcached.orgdocs.memcached.org/protocols (opens in new tab)
protocol overview noting binary protocol deprecation.
Was this helpful?
Your feedback helps improve this page.