Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-68904

MongoDB YAML "Unrecognized option: security.ldap.servers"

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.4.0
    • Component/s: None
    • Server Security
    • Security 2023-07-10, Security 2023-07-24

      I am running MongoDB v.4.4.0 on Linux CentOS 7. I am having trouble setting up the YAML config file for for security and authorization. When I have the below config file I only receive an error saying "Unrecognized option: security.ldap.servers". What is wrong with my config?

      systemLog: 
        destination: file
        path: "/home/mongo/mongodb/logs/mongod.log"
        logAppend: true
      
      storage: 
        dbPath: "/home/mongo/mongodb/data/db"
      
      net: 
        bindIp: localhost, 127.0.0.1
        port: 27017
      
      security: 
      #  authorization: enabled
        ldap: 
          servers: "ldap"
          bind: 
            queryUser: user
            queryPassword: pass
          transportSecurity: none
          userToDNMapping: '[{match: "(.+)", ldapQuery: "o=int,c=com?uid?sub?userPrincipalName={0}@ldap.xxx.com"}]'
          authz: 
            queryTemplate: '{USER}?memberOf?base'
      setParameter: 
        authenticationMechanisms: 'PLAIN,SCRAM-SHA-1'
      

            Assignee:
            varun.ravichandran@mongodb.com Varun Ravichandran
            Reporter:
            david.rabaez@gmail.com David Rabaez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: