[SERVER-68904] MongoDB YAML "Unrecognized option: security.ldap.servers" Created: 17/Aug/22  Updated: 27/Oct/23  Resolved: 12/Jul/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.4.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: David Rabaez Assignee: Varun Ravichandran
Resolution: Gone away Votes: 0
Labels: LDAP, mongodb
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Security
Sprint: Security 2023-07-10, Security 2023-07-24
Participants:

 Description   

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'



 Comments   
Comment by Varun Ravichandran [ 12/Jul/23 ]

I am closing this ticket out as there appears to be no more work on our end.

david.rabaez@gmail.com if you are running MongoDB Enterprise and are still running into the error above, please feel free to let us know and reopen this ticket.

Comment by Varun Ravichandran [ 26/Jun/23 ]

Hi david.rabaez@gmail.com,

I apologize for the delay in getting back to your question! LDAP authentication and authorization is an enterprise-only feature, so the corresponding configuration options will not be recognized in community builds of the server.

Can you confirm whether or not you are running the enterprise version of 4.4?

Best,

Varun Ravichandran 

Comment by Dave Rolsky [ 17/Aug/22 ]

Hi david.rabaez@gmail.com,

You reported this to the tools project, but this looks like an issue with MongoDB Server. I will move the ticket to that project.

Cheers,

Dave Rolsky

Generated at Thu Feb 08 06:12:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.