Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(NODE-3982): only pass username to SSPI if password is set #141

Merged
merged 1 commit into from
Feb 10, 2022
Merged

Conversation

addaleax
Copy link
Contributor

Description

What is changing?

On Windows, a password is required in order for the input credentials to be forwarded to SSPI.

Is there new documentation needed for these changes?

No.

What is the motivation for this change?

See https://jira.mongodb.org/browse/DRIVERS-2180 – Pending confirmation from TS, this resolves connectivity issues when only the username is passed to the MongoDB driver when connecting using kerberos. (mongosh test build with this patch available at https://s3.amazonaws.com/mciuploads/mongosh/5afb80349eab42e026c5c8219cf378c7933b0d66/mongosh-0.0.0-dev.0-win32-x64.zip)

Double check the following

  • Ran npm run lint script
  • Self-review completed using the relevant portions of the steps outlined here
  • PR title follows the correct format: <type>(NODE-xxxx)<!>: <description>
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@addaleax addaleax marked this pull request as draft February 10, 2022 10:56
@addaleax addaleax marked this pull request as ready for review February 10, 2022 20:40
@addaleax
Copy link
Contributor Author

Marking this as ready for review -- TS confirmed that this fix works as expected.

Copy link
Member

@durran durran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for the fast turnaround.

@durran durran merged commit 2d307a3 into 2.0 Feb 10, 2022
@durran durran deleted the 3982-dev branch February 10, 2022 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants