summaryrefslogtreecommitdiff
path: root/authfile.h
Commit message (Collapse)AuthorAgeFilesLines
* Improve opening of authentication file1.6.8Tomas Korbar2020-10-261-1/+1
|
* -Y [filename] for ascii authentication modedormando2019-05-201-0/+16
Loads "username:password\n" tokens (up to 8) out of a supplied authfile. If enabled, disables binary protocol (though may be able to enable both if sasl is also used?). authentication is done via the "set" command. A separate handler is used to avoid some hot path conditionals and narrow the code executed in an unauthenticated state. ie: set foo 0 0 7\r\n foo bar\r\n returns "STORED" on success. Else returns CLIENT_ERROR with some information. Any key is accepted: if using a client that doesn't try to authenticate when connecting to a pool of servers, the authentication set can be tried with the same key as one that failed to coerce the client to routing to the correct server. Else an "auth" or similar key would always go to the same server.