First pass through fixing SASL.
[m6w6/libmemcached] / libtest / memcached.cc
index b59dc22fa03c7efed4658828aad5a1dc410b5b96..d2ce941ea54147a3cc1ea630f4c18bc5c4e91aae 100644 (file)
@@ -89,7 +89,7 @@ public:
 
   virtual const char *sasl() const
   {
-    return NULL;
+    return "-S";
   }
 
   const std::string& password() const
@@ -210,7 +210,7 @@ bool Memcached::build(size_t argc, const char *argv[])
   add_option("-M");
 #endif
 
-  if (sasl())
+  if (_username.size())
   {
     add_option(sasl());
   }