Bläddra i källkod

HPCC-18109 Couchbase Plugin: Allow access to password-protected buckets

Signed-off-by: Dan S. Camper <dan.camper@lexisnexisrisk.com>
Dan S. Camper 7 år sedan
förälder
incheckning
7f73d9c2b3
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      plugins/couchbase/couchbaseembed.hpp

+ 1 - 1
plugins/couchbase/couchbaseembed.hpp

@@ -190,7 +190,7 @@ namespace couchbaseembed
         inline CouchbaseConnection(bool useSSL, const char * host, unsigned port, const char * bucketname, const char * user, const char * password, const char * connOptions)
         {
             m_connectionString.setf("couchbase%s://%s:%d/%s%s", useSSL ? "s" : "", host, port, bucketname, connOptions);
-            m_pCouchbaseClient = new Couchbase::Client(m_connectionString.str());//USER/PASS still needed
+            m_pCouchbaseClient = new Couchbase::Client(m_connectionString.str(), password);
             m_pQuery = nullptr;
         }