Skip to content
New issue

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

problems with database authentication #23

Open
abelsoares opened this issue Feb 26, 2014 · 0 comments
Open

problems with database authentication #23

abelsoares opened this issue Feb 26, 2014 · 0 comments

Comments

@abelsoares
Copy link

I try to use this script to backup a specific database on mongohq with no sucess
I have set a user on the database i want to backup and it's running mongo 2.4.4.

I set up DBAUTHDB and then find that the problem was with option --authenticationDatabase, which just didn´t work as expected.

It however works fine if i replace --authenticationDatabase with --db

I don´t know if this is a issue with the script or with my configurations, since i don't see no reason why --authenticationDatabase doesn´t work for my case.

i edited the script to fit this problem, adding new field DBNAME and pass --db if field is set otherwise use --authenticationDatabase if DBAUTHDB is set.

if open to pull request just say something.
Nice script by the way ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant