|
SASLHowto
HOWTO use SASL auth.
IntroductionIn 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. Getting StartedIn order to deploy memcached with SASL, you'll need two things:
Configuring SASLFor the most part, you just do the normal SASL admin stuff. # Create a user for memcached. saslpasswd2 -a memcached -c cacheuser Running MemcachedIn order to enable SASL support in the server you must use the -S flag. The -S flag does a few things things:
Further InfoRead more about memcached's SASL auth protocol. |