[SR-Users] authenticating to mongodb fails

hdssdsdsdsfsdf hdssdsdsdsfsdf hdssdsdsdsfsdf at mail.com
Tue Nov 7 15:11:09 CET 2017


When I connect using mongo, the credentials work:

$ mongo kamailio -u "kam" -p "kam"
MongoDB shell version v3.4.9
connecting to: mongodb://127.0.0.1:27017/kamailio
MongoDB server version: 3.4.9
> db.subscriber.find()
{ "_id" : ObjectI ...

But when I use the following DBURL in kamailio.cfg, kamailio fails to even login to mongo:

#!define DBURL "mongodb://kam:kam@localhost/kamailio"

If I disable mongodb authentication, kamailio starts up just fine again. Any idea what's going wrong here?



More information about the sr-users mailing list