Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-7493

Correct usage of LDAP with Java SDK 3.x

    XMLWordPrintable

Details

    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();

       

      Attachments

        Activity

          People

            richard.smedley Richard Smedley
            hitesh.walia Hitesh Walia
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty