Skip to content

Commit 2d307a3

Browse files
authored
fix(NODE-3982): only pass username to SSPI if password is set (#141)
1 parent b536f1a commit 2d307a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/win32/kerberos_sspi.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ auth_sspi_client_init(WCHAR* service,
7979
/* LogonID (We don't use this) */
8080
NULL,
8181
/* AuthData */
82-
*user ? &authIdentity : NULL,
82+
authIdentity.Password ? &authIdentity : NULL,
8383
/* Always NULL */
8484
NULL,
8585
/* Always NULL */

0 commit comments

Comments
 (0)