summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-05-05 06:33:58 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-05-05 06:33:58 +0000
commit89f6691cdc49e3f18c12cdda2435a1a9a737c333 (patch)
tree6dfdd9ce3bafdd7364768c0f1b05968d22e7059f /source3/utils
parent60233cd3567a325d57362b0b810d148203cd839f (diff)
downloadsamba-89f6691cdc49e3f18c12cdda2435a1a9a737c333.tar.gz
samba-89f6691cdc49e3f18c12cdda2435a1a9a737c333.tar.bz2
samba-89f6691cdc49e3f18c12cdda2435a1a9a737c333.zip
Add some comments.
(This used to be commit 855fab395f97dd232fd9bb78e62ad12b16fe2a24)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/ntlm_auth.c34
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