Skip to content

Commit b3a11d0

Browse files
authored
CDRIVER-4291 do not pass username to SSPI when password is not set (#1264)
1 parent ce74688 commit b3a11d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libmongoc/src/mongoc/mongoc-sspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ _mongoc_sspi_auth_sspi_client_init (WCHAR *service,
204204
/* LogonID (We don't use this) */
205205
NULL,
206206
/* AuthData */
207-
user ? &authIdentity : NULL,
207+
password ? &authIdentity : NULL,
208208
/* Always NULL */
209209
NULL,
210210
/* Always NULL */

0 commit comments

Comments
 (0)