mongo-cl-driver icon indicating copy to clipboard operation
mongo-cl-driver copied to clipboard

What about auth enabled mongodb

Open sjatkins opened this issue 10 years ago • 5 comments

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

sjatkins avatar Mar 29 '15 20:03 sjatkins

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

archimag avatar Mar 29 '15 20:03 archimag

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 avatar May 01 '15 05:05 sjatkins

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

sjatkins avatar May 01 '15 06:05 sjatkins

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.

archimag avatar May 01 '15 08:05 archimag

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.

sjatkins avatar May 03 '15 04:05 sjatkins