ejabberd-mod-mam
ejabberd-mod-mam copied to clipboard
Authenticate to mongodb
Is there any option to authenticate to the mongodb. My mongodb is running on another host and I need to be able to authenticate the connection. Thanks
Hi, I am kind of shocked because I was pretty sure it's possible but you are right indeed. I'll see what I can do.
Cheers, Gregor
Thanks Gregor, it would be very much appreciated.
I noted that the new mongodb driver (https://github.com/comtihon/mongodb-erlang) has support for authentication but the interface has changed quite a bit vs the one you're using.
I wish I could help but I'm not confident enough in erlang.
Cheers
Yes, the 'new' mongodb driver was a huge rewrite while dropping support for replica sets and others for example. That's why I still kept the old one. I haven't checked lately but maybe the new one matured in the meantime.
Yeah, I noticed that a while back. But I believe it now supports replica sets and has matured a lot.
I have my fingers crossed that the new driver is OK and you find time to add support. Thanks!
I think I will try to add authentication support for the old mongodb driver first and make the migration to the new driver a separate issue.