/Couchbase_C_Client_v3.0/tests/basic/ |
H A D | t_creds.cc | 53 ASSERT_EQ("", credentials.password()); in TEST_F() 56 // Try to add another user/password: in TEST_F() 64 ASSERT_EQ("pass2", credentials.password()); in TEST_F() 67 ASSERT_TRUE(auth.password().empty()); in TEST_F() 81 ASSERT_EQ("", credentials.password()); in TEST_F() 85 ASSERT_EQ("", credentials.password()); in TEST_F() 92 // Username/password should remain unchanged: in TEST_F() 94 ASSERT_EQ("", auth.password()); in TEST_F() 101 ASSERT_EQ("seekrit", credentials.password()); in TEST_F()
|
H A D | t_connstr.cc | 371 std::string password("secret"); in TEST_F() 374 lcb_createopts_credentials(cropts, nullptr, 0, password.c_str(), password.size()); in TEST_F() 385 ASSERT_EQ("secret", params.password()); in TEST_F() 389 std::string connstr("couchbase:///fluffle?password=bleh"); in TEST_F() 392 lcb_createopts_credentials(cropts, nullptr, 0, password.c_str(), password.size()); in TEST_F() 397 ASSERT_EQ(password, params.password()); in TEST_F()
|
/Couchbase_C_Client_v3.0/src/ |
H A D | auth-priv.h | 47 void password(std::string password) in password() function 49 password_ = std::move(password); in password() 77 const std::string &password() const in password() function 149 // Gets the "global" password 150 const std::string &password() const in password() function in lcb::Authenticator
|
H A D | auth.cc | 78 creds.password(password_); in credentials_for() 104 creds.password(it->second); in credentials_for() 146 lcb_STATUS lcbauth_credentials_password(lcbauth_CREDENTIALS *credentials, const char *password, size_t password_len) in lcbauth_credentials_password() argument 148 credentials->password(std::string(password, password_len)); in lcbauth_credentials_password()
|
/Couchbase_C_Client_v3.0/example/management/ |
H A D | eventing.cc | 56 fprintf(stderr, "Usage: %s couchbase://127.0.0.1 Administrator password\n", argv[0]); in main() 61 std::string password(argv[3]); in main() 66 check(lcb_createopts_credentials(options, username.c_str(), username.size(), password.c_str(), password.size()), in main()
|
/Couchbase_C_Client_v3.0/src/http/ |
H A D | http.cc | 141 LIBCOUCHBASE_API lcb_STATUS lcb_cmdhttp_password(lcb_CMDHTTP *cmd, const char *password, size_t password_len) in lcb_cmdhttp_password() argument 143 cmd->password = password; in lcb_cmdhttp_password() 606 std::string username, password; 618 if (cmd->password) { 619 password = cmd->password; 653 password.clear(); 654 } else if (username.empty() && password.empty()) { 658 password [all...] |
/Couchbase_C_Client_v3.0/example/subdoc/ |
H A D | subdoc-multi.cc | 88 const char *connstr, *username, *password; in main() local 100 password = argv[3]; in main() 102 password = "password"; in main() 107 lcb_createopts_credentials(crst, username, strlen(username), password, strlen(password)); in main()
|
H A D | subdoc-simple.cc | 93 const char *connstr, *username, *password; in main() local 106 password = argv[3]; in main() 108 password = "password"; in main() 112 lcb_createopts_credentials(crst, username, strlen(username), password, strlen(password)); in main()
|
H A D | subdoc-tombstone.cc | 66 std::string password("password"); in main() 75 password = argv[3]; in main() 79 lcb_createopts_credentials(crst, username.data(), username.size(), password.data(), password.size()); in main()
|
H A D | subdoc-xattrs.c | 111 static lcb_INSTANCE *connect_as(char *username, char *password) in connect_as() argument 117 lcb_createopts_credentials(crst, username, strlen(username), password, strlen(password)); in connect_as() 142 instance = connect_as("Administrator", "password"); in main() 221 char *payload = "password=jsmith123pwd&name=John+Smith" in main()
|
/Couchbase_C_Client_v3.0/tests/iotests/ |
H A D | t_ratelimit.cc | 27 const std::string &password, in retry_connect_on_auth_failure() 32 lcb_createopts_credentials(options, username.c_str(), username.size(), password.c_str(), password.size()); in retry_connect_on_auth_failure() 107 ASSERT_STATUS_EQ(LCB_SUCCESS, retry_connect_on_auth_failure(hw, &instance, username, "password")); in TEST_F() 147 ASSERT_STATUS_EQ(LCB_SUCCESS, retry_connect_on_auth_failure(hw, &instance, username, "password")); in TEST_F() 178 ASSERT_STATUS_EQ(LCB_SUCCESS, retry_connect_on_auth_failure(hw, &instance, username, "password")); in TEST_F() 210 std::string password{"password"}; in TEST_F() 215 ASSERT_STATUS_EQ(LCB_SUCCESS, retry_connect_on_auth_failure(hw, &instance, username, "password")); in TEST_F() 222 lcb_createopts_credentials(options, username.c_str(), username.size(), password in TEST_F() 26 retry_connect_on_auth_failure(HandleWrap &hw, lcb_INSTANCE **instance, const std::string &username, const std::string &password, std::chrono::seconds timeout = std::chrono::seconds(10)) retry_connect_on_auth_failure() argument [all...] |
H A D | t_netfail.cc | 564 std::string password("secret"); in TEST_F() 566 lcb_createopts_credentials(crParams, username.c_str(), username.size(), password.c_str(), password.size()); in TEST_F() 639 std::string password("secret"); in TEST_F() 641 lcb_createopts_credentials(crParams, username.c_str(), username.size(), password.c_str(), password.size()); in TEST_F() 679 auto password = (*store)[bucket_name]; in get_credentials() local 681 lcbauth_credentials_password(credentials, password.c_str(), password.size()); in get_credentials()
|
H A D | t_smoke.cc | 216 void connectCommon(const char *bucket = nullptr, const char *password = nullptr, lcb_STATUS expected = LCB_SUCCESS); 435 void SmokeTest::connectCommon(const char *bucket, const char *password, lcb_STATUS expected) in connectCommon() argument 442 if (password) { in connectCommon() 443 lcb_createopts_credentials(cropts, bucket, strlen(bucket), password, strlen(password)); in connectCommon()
|
H A D | t_regression.cc | 135 std::string password("secret"); in TEST_F() 138 lcb_createopts_credentials(crOpts, user.c_str(), user.size(), password.c_str(), password.size()); in TEST_F()
|
H A D | mock-unit-test.cc | 59 const std::string &password) in createConnection() 61 MockEnvironment::getInstance()->createConnection(handle, instance, username, password); in createConnection() 58 createConnection(HandleWrap &handle, lcb_INSTANCE **instance, const std::string &username, const std::string &password) createConnection() argument
|
H A D | mock-environment.cc | 321 const std::string &password) in createConnection() 326 lcb_createopts_credentials(options, username.c_str(), username.size(), password.c_str(), password.size()); in createConnection() 453 serverParams = ServerParams(mock->http, mock->bucket, mock->username, mock->password); in bootstrapRealCluster() 320 createConnection(HandleWrap &handle, lcb_INSTANCE **instance, const std::string &username, const std::string &password) createConnection() argument
|
/Couchbase_C_Client_v3.0/example/minimal/ |
H A D | durability.cc | 115 std::string password = "password"; in main() local 120 lcb_createopts_credentials(create_options, username.data(), username.size(), password.data(), password.size()); in main()
|
/Couchbase_C_Client_v3.0/example/db/ |
H A D | dbx.cc | 185 std::string password = "password"; in main() local 191 lcb_createopts_credentials(options, username.data(), username.size(), password.data(), password.size()); in main()
|
/Couchbase_C_Client_v3.0/example/metrics/ |
H A D | otel_metrics.cc | 149 std::string password = "password"; in main() local 170 lcb_createopts_credentials(options, username.data(), username.size(), password.data(), password.size()); in main()
|
/Couchbase_C_Client_v3.0/tests/mocksupport/ |
H A D | server.h | 49 char *password; member
|
H A D | server.c | 152 * format is host,bucket,username,password 181 info->password = strings[3]; 346 free(info->password); 370 *passp = info->password;
|
/Couchbase_C_Client_v3.0/example/tracing/ |
H A D | otel_tracing.cc | 121 std::string password = "password"; in main() local 141 lcb_createopts_credentials(options, username.data(), username.size(), password.data(), password.size()); in main()
|
/Couchbase_C_Client_v3.0/src/capi/ |
H A D | cmd_http.hh | 121 const char *password; member
|
/Couchbase_C_Client_v3.0/include/libcouchbase/ |
H A D | auth.h | 59 * N1QL queries against multiple password-protected buckets, you can use 60 * the @ref LCB_CNTL_BUCKET_CRED setting to "add" more bucket:password pairs 132 * lcbauth_add_pass(auth, "Administrator", "password", LCBAUTH_F_CLUSTER); 153 * User is bucket name. Password is bucket password. This flag is only 166 * @param pass the password. If the password is NULL, the credential is removed 231 * @return password or username, depending on where the callback used 264 * Sets password. The memory will be copied into the library. 271 LIBCOUCHBASE_API lcb_STATUS lcbauth_credentials_password(lcbauth_CREDENTIALS *credentials, const char *password, 408 * This mode allows to supply username/password wit [all...] |
/Couchbase_C_Client_v3.0/contrib/cbsasl/include/cbsasl/ |
H A D | cbsasl.h | 69 int (*password)(cbsasl_conn_t *conn, void *context, int id, cbsasl_secret_t **psecret); member 96 unsigned int saltedpasslen; // length of the salted password field 132 * password file. This function should only be called once. 160 * Does username/password authentication 197 * Refresh the internal data (this may result in loading password
|