ejabberd-mod-mam icon indicating copy to clipboard operation
ejabberd-mod-mam copied to clipboard

Authenticate to mongodb

Open kevb opened this issue 8 years ago • 5 comments

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

kevb avatar Apr 17 '16 03:04 kevb

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

kongo2002 avatar Apr 17 '16 08:04 kongo2002

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

kevin-bennett-ags avatar Apr 17 '16 09:04 kevin-bennett-ags

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.

kongo2002 avatar Apr 17 '16 09:04 kongo2002

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!

kevin-bennett-ags avatar Apr 17 '16 09:04 kevin-bennett-ags

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.

kongo2002 avatar Apr 17 '16 10:04 kongo2002