Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-13117

X.509 auth page does not state that a user with credentials may be required

      Description

      I attempted to follow the instructions in https://docs.mongodb.com/manual/tutorial/configure-x509-client-authentication/ to configure x.509 authentication. This was on a brand new deployment created with mlaunch which had no existing users. My idea was to create the first and only user with x.509 authentication.

      However, when attempting to create the user (or run other administrative commands), the server always replied with "unauthorized" error even though I have not enabled auth.

      Investigating this, I believe the following occurred:

      Therefore it is my impression that in order to create an x.509 user, when the deployment uses member authentication, one must already have another user with credentials (stored in admin database) created. This is not mentioned in https://docs.mongodb.com/manual/tutorial/configure-x509-client-authentication/.

      Scope of changes

      • Re-validate x.509 tutorial and confirm additional step required in 4.2, 4.0, 3.6
      • Check w/ security if there are additional workarounds here
      • Document and backport

      Impact to Other Docs

      Given that LDAP users are also created on $external I can only assume this issue also applies there. LDAP is a bit of a beast, so if this behavior is intentional and generally true we may need to open up additional tickets to fix this.

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            emet.ozar@mongodb.com Emet Ozar
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:
              1 year, 24 weeks, 4 days ago