Enabling SASL auth on memcacheD server using Couchbase/spymemcache client

650 Views Asked by At

We need to enable SASL auth on memcached running instances. I wanted to know what are the changes required to enable auth using spymemcache client. I assume it will as simple as passing some connection factory instance with credentials. Also once SASL is enable on memcached server, will it enforce to always connect using SASL auth. The reason I ask is, I don't want other clients to break which are not SASL enabled. Wanted to know if someone has solved similar problem that can give a head start. Thanks!

1

There are 1 best solutions below

4
On

There is a code sample in the tests from a test I wrote some years ago when fixing a bug. That should help you on spymemcached.

If I recall correctly, once configuring/turning on SASL on the memcached server, it will in fact always use SASL auth so any that are not auth'ing would not be able to access. I'd have to check against current code though.