On Sat, 30 Sep 2017 06:33:01 GMT, Erdem wrote:

(...)

When I try to connect a remote mongodb I get authentication errors.

vibe.db.mongo.connection.MongoAuthException@../../.dub/packages/vibe-d-0.8.1/vibe-d/mongodb/vibe/db/mongo/connection.d(527): Authentication failed.
(...)

On the other side I may connect to the remoto database from mongo shell using same credentials.

It could be that an unsupported or disabled authentication mechanism is used (currently it still defaults to MONGODB-CR, which is not accepted by default for recent versions). Does adding &authmechanism=SCRAM-SHA-1 to the URL help?