[SR-Users] authenticating to mongodb fails

Daniel-Constantin Mierla miconda at gmail.com
Tue Nov 7 15:38:53 CET 2017


Can you set debug=3 in kamailio.cfg and then look at debug messages to
see there is some hint about what happens?

Cheers,
Daniel


On 07.11.17 15:11, hdssdsdsdsfsdf hdssdsdsdsfsdf wrote:
> 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?
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training, Nov 13-15, 2017, in Berlin - www.asipto.com
Kamailio World Conference - www.kamailioworld.com




More information about the sr-users mailing list