Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-6823

SASL password with space not being handled properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • bug-backlog
    • 1.8.1, 2.0, 2.2.0
    • couchbase-bucket
    • Security Level: Public
    • None
    • Untriaged
    • asdasd
    • Yes

    Description

      I'm getting a SASL auth error using 'isasl' and libcouchbase.
      The bucket is a memcached bucket with a password including a space in it "a password". When the password is changed to "a_password" it works fine.

      Attached is the JSON bucket output (pools/defaults/buckets/memcached_bucket)

      mnunberg@csure:/sources/libcouchbase$ /opt/couchbase/bin/couchbase-cli bucket-edit --cluster=10.3.121.209 --bucket-password="a password" -u Administrator -p 123456 --bucket="memcached_bucket"
      SUCCESS: bucket-edit
      mnunberg@csure:/sources/libcouchbase$ echo 'hi' | ./tools/cbc create -h 10.3.121.209 -u Administrator -P 123456 a_key -b memcached_bucketERROR: Authentication error
      "SASL authentication failed"
      mnunberg@csure:/sources/libcouchbase$ /opt/couchbase/bin/couchbase-cli bucket-edit --cluster=10.3.121.209 --bucket-password="a_password" -u Administrator -p 123456 --bucket="memcached_bucket"
      SUCCESS: bucket-edit
      mnunberg@csure:/sources/libcouchbase$ echo 'hi' | ./tools/cbc create -h 10.3.121.209 -u Administrator -P 123456 a_key -b memcached_bucketStored "a_key" CAS:100000000000000
      mnunberg@csure:/sources/libcouchbase$

      Attachments

        Issue Links

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

          Activity

            People

              trond Trond Norbye
              mnunberg Mark Nunberg (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty