Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix regression in manual NTLM auth
Commit a0c0a0e ("Fix up NTLM auth for non-proxy authentication" swapped
the order of the two arguments in generating the fixed Type1 message.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Feb 28, 2015
1 parent 758411c commit 8e10de6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ntlm.c
Expand Up @@ -1021,9 +1021,8 @@ int ntlm_authorization(struct openconnect_info *vpninfo, int proxy,
return ret;
}
if (auth_state->state == NTLM_MANUAL && user && pass) {
buf_append(buf, "%sAuthorization: NTLM %s\r\n",
"TlRMTVNTUAABAAAABYIIAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAA",
proxy ? "Proxy-" : "");
buf_append(buf, "%sAuthorization: NTLM %s\r\n", proxy ? "Proxy-" : "",
"TlRMTVNTUAABAAAABYIIAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAA");
auth_state->state = NTLM_MANUAL_REQ;
return 0;
}
Expand Down

0 comments on commit 8e10de6

Please sign in to comment.