Quantcast
Channel: Active questions tagged mongodb-atlas - Stack Overflow
Viewing all articles
Browse latest Browse all 271

MongoDB C driver asks to connect a smart card reader when trying to ping atlas database?

$
0
0

When trying to ping MongoDB database though the C driver api, it asks to connect Smart Card Reader?

The auth method used is SCRAM. I copied the connection string from MongoDB site and changed username + password to match the account i have created for managing databases on atlas.

NOTE: Trying to connect to MongoDB database through MongoDB Shell worked fine.Here's the image of the Smart Card Reader popup

I can't figure out why it tries to use Smart Card Reader as auth method when using C driver? Can somebody more knowledgeable on the topic help out?

Here's the code that causes the "Connect Smart Card Reader" popup to appear

    command = BCON_NEW("ping", BCON_INT32(1));    ok = mongoc_database_command_simple(        database, command, NULL, &reply, &error    );

Viewing all articles
Browse latest Browse all 271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>