Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
None
-
None
-
1
Description
Regarding the libcouchbase Dynamic Authenticator, we have implemented the callbacks -
const char *GetUsername(void *cookie, const char *host, const char *port, |
const char *bucket); |
|
const char *GetPassword(void *cookie, const char *host, const char *port, |
const char *bucket); |
We noticed that cbauth couldn't get the credentials for the host, port provided by the callbacks.
Quoting from the logs attached here,
2018-02-27T03:34:53.474-08:00 [Error] UTIL LCB Failed to get credentials for endpoint: <ud>10.111.170.102:11210</ud>, err: Unable to find given hostport in cbauth database: `10.111.170.102:11210' |
We have also collected the lcb_dump and we see the corresponding cluster configuration received by libcouchbase -
2018-02-27T03:21:43.294-08:00 [INFO] === CLUSTER CONFIG BEGIN ===
2018-02-27T03:21:43.294-08:00 [INFO] {"nodeLocator":"vbucket","uuid":"dc31a3b08a14daf1d4855ac4f6edc793","rev":53,"name":"dst_bucket","nodesExt":[{"hostname":"10.111.170.101","services":{"mgmt":8091,"capi":8092,"kv":11210,"mgmtSSL":18091,"capiSSL":18092,"kvSSL":11207}},{"hostname":"10.111.170.102","services":{"mgmt":8091,"capi":8092,"kv":11210,"mgmtSSL":18091,"capiSSL":18092,"kvSSL":11207}},{"hostname":"10.111.170.103","services":{"mgmt":8091,"capi":8092,"kv":11210,"mgmtSSL":18091,"capiSSL":18092,"kvSSL":11207}},{"hostname":"10.111.170.104","services":{"mgmt":8091,"mgmtSSL":18091}},{"hostname":"10.112.170.101","services":{"mgmt":8091,"mgmtSSL":18091}},{"hostname":"10.112.170.102","services":{"mgmt":8091,"mgmtSSL":18091}},{"hostname":"10.112.170.103","services":{"mgmt":8091,"n1ql":8093,"indexScan":9101,"indexAdmin":9100,"mgmtSSL":18091,"n1qlSSL":18093}}
Attachments
Issue Links
- relates to
-
MB-28395 CBAuth failing to provide auth against valid kv host:port
- Closed