[SERVER-8013] Update shell helper db.auth() to support SASL authentication Created: 21/Dec/12  Updated: 05/Nov/15  Resolved: 21/Dec/12

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 2.3.2

Type: Improvement Priority: Major - P3
Reporter: Andy Schwerin Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change
Participants:

 Description   

Old form:

db.auth(user, pass)

Also should support:

db.auth({ user: <String>, pwd: <null|String>, mechanism: <null|String>})

which allows specifying a mechanism to use, and also omitting a password for mechanisms like GSSAPI, which do not expect one.



 Comments   
Comment by Andy Schwerin [ 21/Dec/12 ]

Two ways to call db.auth, now!

Comment by auto [ 21/Dec/12 ]

Author:

{u'date': u'2012-12-21T20:55:14Z', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}

Message: SERVER-8013 Update shell helper db.auth() to support SASL authentication.

Make the parameters to saslClientAuthenticate in the C++ driver use field names
consistent with the field names in system.users documents.

Remove an information leak on auth failure in which the non-existence of a user
was revealed.

Have saslClientAuthenticate take a clear password as input, like DBClientWithCommands::auth().
Branch: master
https://github.com/mongodb/mongo/commit/acd3c9d43be478b209f5e0b732e0f4d5ff72cea7

Generated at Thu Feb 08 03:16:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.