[uWSGI] Auth MongoDB collections for configuration

Roberto De Ioris roberto at unbit.it
Thu Apr 10 14:05:57 CEST 2014


> Hi. I'm trying to scan mongodb for collections. Without auth on mongodb
> all
> is working ok, when I add auth like:
>
> emperor = mongodb://user:pass@127.0.0.1:27017,emperor.vassals,{enabled:1}
>
> I get the following error:
>
> Thu Apr 10 13:42:40 getaddrinfo("user:pass at 127.0.0.1") failed: Name or
> service not known.
>
> How should I use the auth to mongo db? Is it supported?
> _______________________________________________


Hi auth api is not supported, but should be an easy feature to add:

http://api.mongodb.org/cplusplus/1.5.4/classmongo_1_1_d_b_client_connection.html#a9356da552e73d6077b0ef00250cbbed0


-- 
Roberto De Ioris
http://unbit.it


More information about the uWSGI mailing list