- summary HOWTO use SASL auth.
In order to use memcached in a hostile network (e.g. a cloudy ISP where the infrastructure is shared and you can't control it), you're going to want some kind of way to keep people from messing with your cache servers.
SASL (as described in RFC2222) is a standard for adding authentication mechanisms to protocols in a way that is protocol independent.
In order to deploy memcached with SASL, you'll need two things:
# A memcached server with SASL support (version 1.4.3 or greater built with `--enable-sasl`) # A client that supports SASL
For the most part, you just do the normal SASL admin stuff.
In order to enable SASL support in the server you must use the `-S` flag.
The `-S` flag does a few things things:
# Enable all of the SASL commands. # Require binary protocol _only_. # Require authentication to have been successful before commands may be issued on a connection.
Read more about memcached's [SASLAuthProtocol].