From 89f6691cdc49e3f18c12cdda2435a1a9a737c333 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 5 May 2003 06:33:58 +0000 Subject: Add some comments. (This used to be commit 855fab395f97dd232fd9bb78e62ad12b16fe2a24) --- source3/utils/ntlm_auth.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'source3/utils/ntlm_auth.c') diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c index 8cdc9692ac..b18e2d20e0 100644 --- a/source3/utils/ntlm_auth.c +++ b/source3/utils/ntlm_auth.c @@ -474,6 +474,10 @@ static DATA_BLOB get_challenge(void) return chal; } +/* + * Test LM authentication, no NT response supplied + */ + static BOOL test_lm(void) { NTSTATUS nt_status; @@ -531,6 +535,10 @@ static BOOL test_lm(void) return True; } +/* + * Test the normal 'LM and NTLM' combination + */ + static BOOL test_lm_ntlm(void) { BOOL pass = True; @@ -602,6 +610,10 @@ static BOOL test_lm_ntlm(void) return pass; } +/* + * Test the NTLM response only, no LM. + */ + static BOOL test_ntlm(void) { BOOL pass = True; @@ -655,6 +667,10 @@ static BOOL test_ntlm(void) return pass; } +/* + * Test the NTLM response only, but in the LM feild. + */ + static BOOL test_ntlm_in_lm(void) { BOOL pass = True; @@ -717,6 +733,10 @@ static BOOL test_ntlm_in_lm(void) return pass; } +/* + * Test the NTLM response only, but in the both the NT and LM feilds. + */ + static BOOL test_ntlm_in_both(void) { BOOL pass = True; @@ -787,6 +807,10 @@ static BOOL test_ntlm_in_both(void) return pass; } +/* + * Test the NTLMv2 response only + */ + static BOOL test_ntlmv2(void) { BOOL pass = True; @@ -858,6 +882,10 @@ static BOOL test_ntlmv2(void) return pass; } +/* + * Test the NTLMv2 and LMv2 responses + */ + static BOOL test_lmv2_ntlmv2(void) { BOOL pass = True; @@ -929,6 +957,10 @@ static BOOL test_lmv2_ntlmv2(void) return pass; } +/* + * Test the LMv2 response only + */ + static BOOL test_lmv2(void) { BOOL pass = True; @@ -1006,6 +1038,8 @@ static BOOL test_lmv2(void) - LM only - NT and LM - NT + - NT in LM feild + - NT in both feilds - NTLMv2 - NTLMv2 and LMv2 - LMv2 -- cgit