Hello,
We are facing issues in integrating LDAP with MongoDB Enterprise trial version, facing issues in binding mongo with LDAP server.
Can anyone please provide some insights on binding MongoDB with LDAP server.
Thanks
KarthicK
Hello,
We are facing issues in integrating LDAP with MongoDB Enterprise trial version, facing issues in binding mongo with LDAP server.
Can anyone please provide some insights on binding MongoDB with LDAP server.
Thanks
KarthicK
Hello @DreamSKY_CreationS ,
Welcome to The MongoDB Community Forums!
Could you please confirm if you are still facing issue with this?
If yes, kindly send me a DM here in forums and I’ll get you in touch with the relevant team.
Regards,
Tarun
Hi @Tarun_Gaur,
Yes, we are still facing the issue with binding.
We are planning to upgrade to enterprise edition in our organization . But before that we are trying out LDAP integration with Trial Enterprise image.
Could you please help on this.
Thanks,
KarthicK
Hey KarthicK,
Unfortunately, ldap is not one of my strong suit. There are resources for this at
In case, if these documentations did not solve your issue, please DM me your contact details so I can notify the relevant teams. They should be contacting you shortly.
Feel free to reach out again for any help required.
Tarun
Hi Tarun,
Thanks for your response.
Since we are from the organization, we can’t share official contact details and can’t connect with it. Hence explaining the issues here.
We are getting the below errors while trying to execute the Mongoldap command as below.
**mongoldap --user <user_name> --password <password> -f <mongo.conf file path>**
[FAIL] Attempted to bind to LDAP server without TLS with a plaintext password.
* Sending a password over a network in plaintext is insecure.
* To fix this issue, enable TLS or switch to a different LDAP bind mechanism.
We are following the below configurations (with our LDAP server details )from MongoDB’s official documentation.
Source: https://mongodb.prakticum-team.ru/docs/manual/tutorial/authenticate-nativeldap-activedirectory/
security:
authorization: "enabled"
ldap:
servers: "activedirectory.example.net"
bind:
queryUser: "mongodbadmin@dba.example.com"
queryPassword: "secret123"
userToDNMapping:
'[
{
match: "(.+)",
ldapQuery: "DC=example,DC=com??sub?(userPrincipalName={0})"
}
]'
authz:
queryTemplate: "{USER}?memberOf?base"
setParameter:
authenticationMechanisms: "PLAIN"
So how we can implement LDAP bind mechanism to overcome these errors and connect to the LDAP server?
Thanks,
KarthicK
Sadly, I won’t be able to help you with this error as I do not have experience with LDAP, I would recommend you contact the support via Contact Us | MongoDB and you can also use the in-app chat support by clicking on chat icon on bottom right of the same support page.