To that end, I think SASL's confused everyone who's ever met it, and I
don't think anyone actually asked for it back in binprot days.
Said I was going to do this before but hadn't... Lets try something
simple, and if someone asks for SASL I think it's actually easy:
client connect:
set auth 0 0 [length]
username password
\r\n
... and if you get back a STORED, you're good to go. if you try to run any
other command you'll get:
CLIENT_ERROR unauthorized
password database is a username:password\n file on disk, reloaded when it
changes. no fancy datastructures so will get slow if people use a billion
users. user's don't do anything, but putting them there now in case we
ever decide to.
if we ever decide to support SASL again:
client connect:
get mech-list
MECH CRAM-MD5 PLAIN ETC
END
set sasl-step 0 0 [length]
data
STORED
get authenticated
[indicates done or STEP if SASL requires more steps]
... extra roundtrip in the protocol but this could be solved with
mget/mset.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/memcached/alpine.DEB.2.21.1905091527370.27082%40dskull.