Trond Norbye's Weblog

« Testing libmemcached... | Main | SASL support in... »

http://blogs.sun.com/trond/date/20091025 Sunday October 25, 2009

SASL support in Memcached!

I got a merge request for adding SASL support to memcached from Dustin Sallings before the weekend. Luckily for me he had already went a couple of rounds back and forth with dormando fixing some details, so my job reviewing the code was pretty easy resulting in only one minor detail I wanted him to fix before I applied and pushed the patch. We need more documentation of the SASL support, so feel free to submit contributions!

The SASL support requires the binary protocol, so you cannot telnet to the port to test it out. If you enable SASL support, memcached will disable the ASCII protocol.

To build a memcached server with SASL support you need to pass --enable-sasl as an option to configure, and add -S as a parameter to memcached:

trond@storm > ./configure --enable-sasl
[ ... cut ... ]
checking sasl/sasl.h usability... yes
checking sasl/sasl.h presence... yes
checking for sasl/sasl.h... yes
checking for library containing sasl_server_init... -lsasl2
[ ... cut ... ]
trond@storm > ./memcached -S

Right now the only way to play with the SASL support is to test out a development build of the SPY memcached client, or by using the memcached-test program. I would suggest that you start bugging the maintainers of your favorite memcached driver asking for SASL support :-)

Comments:

Looking right now at what it will take to add it to libmemcached and to the associated command line tools.

Posted by Mark Atwood on October 25, 2009 at 11:58 PM CET #

Ah.. I have already registered a blueprint on launchpad for that :-)

Posted by Trond Norbye on October 26, 2009 at 12:02 AM CET #

[Trackback] This post was mentioned on Twitter by trondn: http://bit.ly/XXxVg

Posted by uberVU - social comments on October 27, 2009 at 03:12 PM CET #

Trond - great work! I need to do the Cache::Memcached client!

Posted by CaptTofu on November 06, 2009 at 05:46 PM CET #

Trond - great work! I need to do the Cache::Memcached client!

Posted by CaptTofu on November 06, 2009 at 05:48 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed

Valid HTML! Valid CSS!

This is a personal weblog, I do not speak for my employer.