I have RHEL6.1 with php. I've installed libmemcached-1.0.2 from src.rpm and compiled php-memcached 2.0.0b2. If I try to setSaslAuthData('user','pass') and write something to memcached (Couchbase server) I always end up with return code 5 (WRITE FAILURE). Commenting setSaslAuthData out turns to work with default bucket. But I need to get it working with SASL. Any ideas on what's wrong with my setup?
P.S. of course binary protocol is ON
Best Answer
Are you sure memcached is compiled with sasl?
$ memcached -S
You should see this output if memcached wasn't compiled with SASL: "This server is not built with SASL support."