archimag / mongo-cl-driver

Common Lisp driver for MongoDB
Other
35 stars 8 forks source link

What about auth enabled mongodb #8

Open sjatkins opened 9 years ago

sjatkins commented 9 years ago

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

archimag commented 9 years ago

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

sjatkins commented 9 years ago

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 commented 9 years ago

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

archimag commented 9 years ago

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 commented 9 years ago

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.