Mongo DB connection is not working with LDAP creds

Hi Team,

We migrated to LDAP creds to connect mongo, After the migration mongo connection is getting failure. is there anything known issue in connecting mongo with LDAPcreds?

Regards
Udaya

Comments

  • Anyone faced this issue? any solutions from parasoft team?

  • benken_parasoftbenken_parasoft Posts: 348 ✭✭✭
    edited December 2017

    From client perspective, there are various way to authenticate. By default, the MongoDB java client will negotiate SCRAM-SHA-1 or MONGODB_CR authentication mechanism, depending on the version of the MongoDB server. Typically this will be SCRAM-SHA-1 unless MongoDB server is old.

    The MongoDB java client does support other authentication methods including x.509, Kerberos, and LDAP as detailed here. However, the "MongoDB Query Tool" only supports the default ones I mentioned (SCRAM-SHA-1 and MONGODB_CR).

  • @benken_parasoft can you point a documentation for this plugin? I am also struggling with this problem and I cannot find any documentation. I don't know what is supported and what is not.

  • It has been added as feature request and the ticket number is SOA-9147.
    And i see this is best tool to perform Automation with the experience of market tools. You might not know the features provided..

  • benken_parasoftbenken_parasoft Posts: 348 ✭✭✭
    edited December 2017

    I am also struggling with this problem

    I hope my previous answer makes sense. As mentioned, the "MongoDB Query Tool" only supports the default authentication mechanism (SCRAM-SHA-1) as described in MongoDB docs. The "MongoDB Query Tool" does not support the other possible authentication methods (x.509, Kerberos, and LDAP).

    I cannot find any documentation

    I'm happy to help with other questions. Downloads from the Parasoft Marketplace, including the "MongoDB Query Tool" include detailed documentation in pdf format. Additionally, many of them are starting to have their documentation available online.

  • benken_parasoftbenken_parasoft Posts: 348 ✭✭✭
    edited January 25

    The feature has been added. :)
    Please try out the updated MongoDB Query Tool from the Parasoft Marketplace.
    New online docs have also also been added.

  • ParasofttoudayaParasofttoudaya Posts: 166

    Thanks for sharing Ben :smile:

  • ParasofttoudayaParasofttoudaya Posts: 166
    edited February 15

    Ben,

    We are facing an issue, Existing MongoQueryTool were not working by using this jar.

    We have multiple teams configured in the same CTP server and all the teams were not ready to take this change.

    Any suggestions??

  • benken_parasoftbenken_parasoft Posts: 348 ✭✭✭

    Existing MongoQueryTool were not working by using this jar

    Tools saved with the older jar should open and behave as before. In particular, if you had a tool with username and/or password specified then the tool should now have "server-defined" in the new Authentication Mechanism field. In other words, tools using the SCRAM-SHA-1 mechanism will work as before.

    If you have old tests that now need to work with LDAP then they won't just work. You have to update the tests, putting LDAP in the new Authentication Mechanism field. In other words, make sure you aren't trying to run old tests against LDAP. You have to go back and update those tests to use LDAP.

    Any suggestions??

    You will need to provide detail about what isn't working so I can help you here on the forum. Otherwise, you can try reaching out to Parasoft Support for assistance.

Sign In or Register to comment.