stijnsanders / TMongoWire

Delphi MongoDB driver
MIT License
102 stars 37 forks source link

mLab Authenticate #35

Open bittencourtthulio opened 7 years ago

bittencourtthulio commented 7 years ago

Hello, I am Brazilian and we are developing a suite of components for MongoDB here in Brazil, based on the TMongoWire class, we are implementing the connection with mLab, but we are not having success in MongoDB version 3.2 authentication, could you help us with this? Below the link of the free suite that we are developing

Https://github.com/bittencourtthulio/TMongoComponents

stijnsanders commented 7 years ago

I've had a try and can reproduce. The problem is I last worked on this with mongo version 3.0, and the download now is 3.4 and I can't seem to find a download for version 3.2 to use the default mongo.exe to listen to the data that is exchanged between client/server that does do correct authentication... Do you have a 3.2 installer (and can put it up somewhere online that I can download it?)

bittencourtthulio commented 7 years ago

Hello, I was able to solve using your own mongoAuth3 class, it would be nice to put some information to use it in the case of mongo 3.2 and also to use the mLab. I would like to talk to you more about your class, would you have an email to pass me?um e-mail para me passar?um e-mail para me passar?

2016-12-10 22:01 GMT-02:00 Stijn Sanders notifications@github.com:

I've had a try and can reproduce. The problem is I last worked on this with mongo version 3.0, and the download now is 3.4 and I can't seem to find a download for version 3.2 to use the default mongo.exe to listen to the data that is exchanged between client/server that does do correct authentication... Do you have a 3.2 installer (and can put it up somewhere online that I can download it?)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/stijnsanders/TMongoWire/issues/35#issuecomment-266251297, or mute the thread https://github.com/notifications/unsubscribe-auth/AU9GJg2nuaMGElDWVrDjLKljFgvd9YyHks5rGz1mgaJpZM4LJhcV .

stijnsanders commented 7 years ago

Dang! I was trying with mongoAuth3, without success. I've added a message to mongoAuth.pas, that it is only for versions up to 2.6. (I should consider removing it some time in the future). So this issue is still open: If someone can provide me with the 3.2 installer (or if mLab will offer version 3.4) I can't listen in on a stock mongo.exe that authenticates with mLab from my development machine.

bittencourtthulio commented 7 years ago

I had success using mLab and mongoAuth3, and mLab uses version 3.2.2, in the video below I show using the mLab already implemented in my component. Https://www.youtube.com/watch?v=e2iDjFio-rY

2016-12-12 20:45 GMT-02:00 Stijn Sanders notifications@github.com:

Dang! I was trying with mongoAuth3, without success. I've added a message to mongoAuth.pas, that it is only for versions up to 2.6. (I should consider removing it some time in the future). So this issue is still open: If someone can provide me with the 3.2 installer (or if mLab will offer version 3.4) I can't listen in on a stock mongo.exe that authenticates with mLab from my development machine.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/stijnsanders/TMongoWire/issues/35#issuecomment-266577657, or mute the thread https://github.com/notifications/unsubscribe-auth/AU9GJtlEaDAkRiOTtWltbR2OONcuKbrWks5rHc59gaJpZM4LJhcV .

bittencourtthulio commented 7 years ago

For you to carry out the tests, follow Mongo 3.2.8 attached

​ mongodb-src-r3.2.8.zip https://drive.google.com/file/d/0ByRSwDTyNXiub0MzVzlxUlNSVnc/view?usp=drive_web

2016-12-13 7:42 GMT-02:00 Bittencourt Thulio bittencourtthulio@gmail.com:

I had success using mLab and mongoAuth3, and mLab uses version 3.2.2, in the video below I show using the mLab already implemented in my component. Https://www.youtube.com/watch?v=e2iDjFio-rY

2016-12-12 20:45 GMT-02:00 Stijn Sanders notifications@github.com:

Dang! I was trying with mongoAuth3, without success. I've added a message to mongoAuth.pas, that it is only for versions up to 2.6. (I should consider removing it some time in the future). So this issue is still open: If someone can provide me with the 3.2 installer (or if mLab will offer version 3.4) I can't listen in on a stock mongo.exe that authenticates with mLab from my development machine.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/stijnsanders/TMongoWire/issues/35#issuecomment-266577657, or mute the thread https://github.com/notifications/unsubscribe-auth/AU9GJtlEaDAkRiOTtWltbR2OONcuKbrWks5rHc59gaJpZM4LJhcV .

stijnsanders commented 2 years ago

MongoDB 5 had the wire protocol extensively changed. Could you confirm of mongoAuth3.pas still works, using the most recent commit?