Details
-
Task
-
Resolution: Fixed
-
Major
-
None
-
DOC-2020-S24-Dec13, DOC-2020-S25-Jan03, DOC-2021-Jan17-S1
-
1
Description
This is the link I would like to amend: https://docs.couchbase.com/java-sdk/3.0/howtos/sdk-authentication.html#ldap
If LDAP is enabled, Couchbase Server will only allow PLAIN sasl authentication which by default, for good security, the SDK will not allow. |
In SDK 3.x, only SASL SCRAM is allowed for non-TLS. To use LDAP on a non-TLS connection, SASL PLAIN should be forced with .onlyEnablePlainSaslMechanism(). This requires 3.0.9+
Here is an example:
PasswordAuthenticatorauthenticator = PasswordAuthenticator
|
.builder()
|
.username("gauss") |
.password("password") |
.onlyEnablePlainSaslMechanism()
|
.build();
|