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

What about auth enabled mongodb #8

Open
sjatkins opened this issue Mar 29, 2015 · 5 comments
Open

What about auth enabled mongodb #8

sjatkins opened this issue Mar 29, 2015 · 5 comments

Comments

@sjatkins
Copy link

I don't see anything the the codebase for this. Is it missing or am I missing it?

@archimag
Copy link
Owner

How about "authenticate" in driver/database.lisp?

@sjatkins
Copy link
Author

sjatkins commented May 1, 2015

Why would something like this throw a cryptic error? Is there some other pattern I should use to connect to my authenicated db?

MONGO> (defvar db (make-instance 'database :name "admin"))
DB
MONGO> (authenticate db my-user my-password)
#<PROMISE name: "attach: #:|finished-promise75|" finished: NIL errored: T forward: NIL {1002E32FF3}>

@sjatkins
Copy link
Author

sjatkins commented May 1, 2015

When I used a usocket client I got the same promise based error which surprised me.

@archimag
Copy link
Owner

archimag commented May 1, 2015

I don't know. I wrote this code long ago. But I will use this driver in nearest future again. Maybe then I will fix this problem.

@sjatkins
Copy link
Author

sjatkins commented May 3, 2015

Thank you for a speedy and honest answer. Perhaps I will look into it myself soon. But I have needs for persistence for a lisp based web app that are pressing so I will probably use postmodern until that fire dies down. But I would love to eventually move it to mongo.

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

2 participants