Skip to content
Permalink
Browse files

fix(win32): initialize with a domain, if one is provided

  • Loading branch information
mbroadst committed Aug 14, 2018
1 parent 5394561 commit 309ba6178e7b667a99ec50186bd8424101f54d40
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/win32/kerberos_sspi.cc
@@ -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;
}
@@ -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) {

0 comments on commit 309ba61

Please sign in to comment.
You can’t perform that action at this time.