diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/ntlm_auth.c | 34 |
1 files changed, 34 insertions, 0 deletions
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 |