On Fri, 6 Apr 2018, Om Kale wrote:

> and then try to run my client, I get the following error on the server:
>
>
> OKALE-M-33H5:memcached-1.5.7 okale$ ./memcached -S -v
> Reading configuration from: 
> </Users/okale/Library/Caches/Homebrew/memcached-1.5.7/memcached.conf>
> Initialized SASL.
> mech:  ``SRP'' with 15 bytes of data
> SASL (severity 2): no secret in database
> sasl result code:  -4
> Unknown sasl response:  -4
>
>
> I have added my username, password in a file called memcached-sasl-pwdb which 
> is located at
> /Users/okale/Library/Caches/Homebrew/memcached-1.5.7/memcached-sasl-pwdb
>
>
> OKALE-M-33H5:memcached-1.5.7 okale$ cat memcached-sasl-pwdb
> ok:hello
>
>
>
> My memcached.conf located at 
> /Users/okale/Library/Caches/Homebrew/memcached-1.5.7/memcached.conf and 
> contains:
>
>
> OKALE-M-33H5:memcached-1.5.7 okale$ cat memcached.conf
> mech_list: plain
>
>
> I have a couple of questions:
> 1. How can the memcached server on start up know the configured users and the 
> username:password details. (Does it read it from memcached-sasl-pwdb? If
> yes, how do I configure it/point to it?)

I guess the wiki didn't get fully updated :( If you use PWDB, it's via
MEMCACHED_SASL_PWDB as an environment variable, so:
$
MEMCACHED_SASL_PWDB="/Users/okale/Library/Caches/Homebrew/memcached-1.5.7/memcached-sasl-pwdb"
./memcached -S -v


> 2. What's the use of the memcached.conf file in the "Reading configuration 
> from: </Users/okale/Library/Caches/Homebrew/memcached-1.5.7/memcached.conf>"

Stating the supported mechanisms for sasl authentication (ie; the at-rest
state of the password data)

> in the output. I am presuming this read will tell the memcached server the 
> username:password details. If yes, what should be the location of this file
> 3. Do I need to install/point to any additional ssl libraries during server 
> bring up?

Should be answered above. Hopefully that works for you

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to memcached+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to