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

Admin UI: Indication whether LDAP is enabled is wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.5.1
    • 6.5.0
    • UI
    • 6.5 mad-hatter (RC-4 build 4959)
    • Untriaged
    • Centos 64-bit
    • Unknown

    Description

      Request

      Fix the ldap indicator in the security->Users UI.

      Background

      I was setting up an ldap server to check the 6.5 mad-hatter  (RC-4 build 4959) ldap integration.

      Problem

      Everything was working perfectly and i even enabled LDAP from the UI itself 

      and verified it in the Couchbase-cli

       

      ./couchbase-cli setting-ldap -c localhost -u Administrator -p xxx --get | python -m json.tool
      {
          "authenticationEnabled": true,
          "authorizationEnabled": true,
          "bindDN": "uid=root,cn=users,dc=somedomain,dc=co,dc=il",
          "bindPass": "**********",
          "cacheValueLifetime": 300000,
          "encryption": "None",
          "failOnMaxDepth": false,
          "groupsQuery": "%D?memberOf?base",
          "hosts": [
              "xxx"
          ],
          "maxCacheSize": 10000,
          "maxParallelConnections": 100,
          "nestedGroupsEnabled": false,
          "nestedGroupsMaxDepth": 10,
          "port": 389,
          "requestTimeout": 5000,
          "serverCertValidation": true,
          "userDNMapping": {
              "template": "uid=%u,cn=users,dc=somedomain,dc=co,dc=il"
          }
      }
      

       

      but even thought it is clearly enabled, it is marked as not

       

       

      It is also visible from the blog here: https://blog.couchbase.com/managing-ldap-groups-for-external-users-in-6-5/

      It also seem like the request the UI is doing is also returning true for ldap authentication

       

      http://xxx:8091/settings/ldap
      

       

       

      {"hosts": ["xxx"],"port"389,"encryption""None","serverCertValidation"true,"bindDN""uid=root,cn=users,dc=somedomain,dc=co,dc=il","authenticationEnabled"true,"userDNMapping": {"template""uid=%u,cn=users,dc=somedomain,dc=co,dc=il"},"authorizationEnabled"true,"nestedGroupsEnabled"false,"groupsQuery""%D?memberOf?base","requestTimeout"5000,"maxParallelConnections"100,"maxCacheSize"10000,"cacheValueLifetime"300000,"nestedGroupsMaxDepth"10,"bindPass""**********","failOnMaxDepth"false}
      

       

       

      So this is a clearly UI issue.

       

       

       

      Attachments

        For Gerrit Dashboard: MB-37357
        # Subject Branch Project Status CR V

        Activity

          People

            ritam.sharma Ritam Sharma
            roi.katz Roi Katz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty