We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The meow attack makes it seem good to check one's instances for weak login credentials. But that's not straightforward to do. This function call:
Mongo.start_link( url: "mongodb://#{hostname}:#{port}/admin", username: username, password: password )
...returns {:ok, pid} even if the credentials are wrong.
{:ok, pid}
Is there a way to try a simple connection and get back an {:error, reason} if the credentials are not valid?
{:error, reason}
The text was updated successfully, but these errors were encountered:
Try {:ok, _v} = Mongo.ping(conn) after starting the link. This works for me
{:ok, _v} = Mongo.ping(conn)
Sorry, something went wrong.
No branches or pull requests
The meow attack makes it seem good to check one's instances for weak login credentials. But that's not straightforward to do. This function call:
...returns
{:ok, pid}
even if the credentials are wrong.Is there a way to try a simple connection and get back an
{:error, reason}
if the credentials are not valid?The text was updated successfully, but these errors were encountered: