]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Joao Alves Neto <alves_joao@hotmail.com>
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 6 Jun 2009 11:09:41 +0000 (23:09 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 6 Jun 2009 11:09:41 +0000 (23:09 +1200)
Make fakeauth handle NTLMv2 better

NTLMv2 requires challenge flags to be a mirror of those received.

helpers/ntlm_auth/fakeauth/fakeauth_auth.c

index 18c75fc3bd8773e9c7f5bd38df93f9864f857678..23bf008e1666e94fbc46ed6d645ff409369d4506 100644 (file)
@@ -159,6 +159,7 @@ ntlmMakeChallenge(struct ntlm_challenge *chal, int32_t flags)
        (NEGOTIATE_UNICODE & flags ? NEGOTIATE_UNICODE : NEGOTIATE_ASCII)
        );
     chal->hdr.type = htole32(NTLM_CHALLENGE);
+    chal->flags = flags;
     chal->unknown[6] = htole16(0x003a);
 
     d = (char *) chal + 48;