Skip to content

Commit

Permalink
fix(win32): initialize with a domain, if one is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Aug 14, 2018
1 parent 5394561 commit 309ba61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/win32/kerberos_sspi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ auth_sspi_client_init(WCHAR* service,
authIdentity.UserLength = ulen;
authIdentity.Password = (unsigned short*)password;
authIdentity.PasswordLength = plen;
authIdentity.Domain = NULL;
authIdentity.DomainLength = 0;
authIdentity.Domain = (unsigned short*)domain;
authIdentity.DomainLength = dlen;

authIdentity.Flags = SEC_WINNT_AUTH_IDENTITY_UNICODE;
}
Expand Down Expand Up @@ -269,7 +269,7 @@ auth_sspi_client_unwrap(sspi_client_state* state, SEC_CHAR* challenge) {
result = sspi_error_result(status, "DecryptMessage");
goto done;
}

if (wrapBufs[1].cbBuffer) {
state->response = base64_encode((const SEC_CHAR*)wrapBufs[1].pvBuffer, wrapBufs[1].cbBuffer);
if (!state->response) {
Expand Down

0 comments on commit 309ba61

Please sign in to comment.