Uploaded image for project: 'Couchbase PHP client library'
  1. Couchbase PHP client library
  2. PCBC-662

SDK3 DOC on User Auth options

    XMLWordPrintable

Details

    • 1
    • SDK4: 3.1GA,Ruby3.1,TxnTst,FLE

    Description

      Doc on Cert Auth & LDAP for SDK3.0.

      See the Scala doc: https://docs.couchbase.com/scala-sdk/1.0/howtos/sdk-authentication.html

      sdk-common material is at https://github.com/couchbase/docs-sdk-common/blob/release/6.5/modules/shared/partials/auth-overview.adoc

      Your page template is at ..... modules/howtos/pages/sdk-authentication.adoc

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            Per recent discussion, we just need to have a little snippet of what needs to be done if using LDAP, e.g. specify PLAIN in your SASL.

            ingenthr Matt Ingenthron added a comment - Per recent discussion, we just need to have a little snippet of what needs to be done if using LDAP, e.g. specify PLAIN in your SASL.

            Because PHP SDK is a wrapper around libcouchbase, the only change needed is to pass the option with connection string to enforce SASL mechanism:

            <?php
            use Couchbase\ClusterOptions;
            use Couchbase\Cluster;
             
            $options = new ClusterOptions();
            $options->credentials('Administrator', 'password');
            $cluster = new Cluster('couchbase://localhost?sasl_mech_force=PLAIN', $options);
            $bucket = $cluster->bucket("default");
            

            avsej Sergey Avseyev added a comment - Because PHP SDK is a wrapper around libcouchbase, the only change needed is to pass the option with connection string to enforce SASL mechanism: <?php use Couchbase\ClusterOptions; use Couchbase\Cluster;   $options = new ClusterOptions(); $options->credentials('Administrator', 'password'); $cluster = new Cluster('couchbase://localhost?sasl_mech_force=PLAIN', $options); $bucket = $cluster->bucket("default");

            People

              maria.shodunke Maria Shodunke
              richard.smedley Richard Smedley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty