[GODRIVER-1002] Credential.PasswordSet doesn't work or is incorrectly documented Created: 26/Apr/19  Updated: 28/Oct/23  Resolved: 12/Dec/19

Status: Closed
Project: Go Driver
Component/s: Documentation
Affects Version/s: 1.0.1
Fix Version/s: 1.3.0

Type: Bug Priority: Major - P3
Reporter: David Golden Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Improve GoDoc

 Description   

I can provide username and password credentials and log in with SCRAM whether the PasswordSet field of options.Credential is true or false. This seems contrary to its documentation.



 Comments   
Comment by Githook User [ 12/Dec/19 ]

Author:

{'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}

Message: GODRIVER-1002 Fix documentation for Credential.PasswordSet (#256)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/c38d91e1f60b9fde1a3d7f6f7b8351b1453a2348

Comment by Divjot Arora (Inactive) [ 11/Dec/19 ]

PR: https://github.com/mongodb/mongo-go-driver/pull/256

Comment by Ian Whalen (Inactive) [ 29/Apr/19 ]

need to deprecate this field.

Comment by David Golden [ 26/Apr/19 ]

FWIW, I tried creating a user with an empty password on 4.0 and the database refused: [js] Error: couldn't add user: User passwords must not be empty

Maybe the field should be deprecated? Or is it necessary for SSPI if an empty password is allowed there?

Generated at Thu Feb 08 08:35:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.