Hi,
We have an external install of MongoDB 3.3 (The 8.0 docs say Mongo 3.0 is minimum). This is a new DB. We are using DL 8.0.0.50-beta, on CentOS 7.
Unfortunately Balancer will not connect to the DB - auth fails every time. We are updating the ‘PasswordHash’ element of dbConnect.xml with the SCRAM-SHA-1 hashed password, produced like this:
[code]>>> from passlib.hash import scram
print scram.encrypt(“12345678”)
$scram$100000$lTIGYEyJcS6FMAbg$sha-1=TwRn9Yo4cTlSWUpJczX/y1s4rNw,sha-256=EiPH2D3/YmvLp2vvwRPu4O.qc/RrMJw1tlEXXJJx5fo,sha-512=/h9qet6jFrqXNjFXttuUTWC3.0tuVFylxRnYsaszONkAISsX72wVyCW.xE8fdY5lIP2slKvQoBc1xzvDZXEo8g
[/code]
I am able to connect via PyMongo if I use SCRAM, as you’d expect
[code]>>> client = MongoClient()
client.dbname.authenticate(‘username’, ‘12345678’, mechanism=‘MONGODB-CR’)
Traceback (most recent call last):
…
raise OperationFailure(msg % errmsg, code, response)
OperationFailure: command SON([(‘authenticate’, 1), (‘user’, u’username’), (‘nonce’, u’b8827153302cb634’), (‘key’, u’2c1f54a2a0794d614b2a59a223916219’)]) on namespace dbname.$cmd failed: auth failed
client.dbname.authenticate(‘username’, ‘12345678’, mechanism=‘SCRAM-SHA-1’)
True[/code]
So why is DL Balancer not able to connect? Is it using SCRAM too?