Problem with mongodb 2.4 and authentication

71 views
Skip to first unread message

Nicholas Lloyd

unread,
Jul 26, 2013, 8:40:22 AM7/26/13
to monge...@googlegroups.com

Re: Problem with mongodb 2.4 and authentication


As the issue says: db.eval() is basically unavailable for DBs requiring authentication UNLESS you are authenticated against the admin DB.
I am proposing, and will prepare a pull request for this, that we replace db.eval() use with this library: https://github.com/nlloyd/horn-of-mongo
I actually got the idea to write it because of this project and the fact that I couldn't see any "print('...')" results from any executed script since db.eval() was being used.

Pull request pending.

David Carr

unread,
Oct 9, 2013, 11:56:06 AM10/9/13
to monge...@googlegroups.com
Any progress on this?  I'd be interested in this sort of enhancement as well.  We've experienced some weird Mongo hangs/deadlocks that we think are related to the use of db.eval(), and would be glad if it wasn't needed.

Nicholas Lloyd

unread,
Oct 9, 2013, 12:28:26 PM10/9/13
to monge...@googlegroups.com
I don't have a pull request for this yet (waiting on the ant task pull request which has been sitting there for a while now).
I have the changes locally and can create a branch in my fork for you though.

Geert Pante

unread,
Apr 29, 2014, 9:20:35 AM4/29/14
to monge...@googlegroups.com
I had the same problem. Can you check out https://github.com/secondmarket/mongeez/pull/38 to see if it fixes your problem?
Reply all
Reply to author
Forward
0 new messages