summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-08-06 12:27:11 -0400
committerSimo Sorce <simo@redhat.com>2014-08-07 12:44:47 -0400
commit43f3a179a1924f958821869dc0e444017c15acde (patch)
tree8196d2ee624f8fe2e9a5ee78d1b720a2e622b88a /tests
parent54b51d7c10d1a28fce0819eb085ba93af67ecbd8 (diff)
downloadgss-ntlmssp-43f3a179a1924f958821869dc0e444017c15acde.tar.gz
gss-ntlmssp-43f3a179a1924f958821869dc0e444017c15acde.tar.xz
gss-ntlmssp-43f3a179a1924f958821869dc0e444017c15acde.zip
Test both NTLMv1 and NTLMv2
Diffstat (limited to 'tests')
-rw-r--r--tests/ntlmssptest.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ntlmssptest.c b/tests/ntlmssptest.c
index d1b334d..c9d7bdc 100644
--- a/tests/ntlmssptest.c
+++ b/tests/ntlmssptest.c
@@ -2171,6 +2171,24 @@ int main(int argc, const char *argv[])
ret = test_GSS_Wrap_EX(ctx, &T_GSSWRAPEXv2);
fprintf(stdout, "Test: %s\n", (ret ? "FAIL":"SUCCESS"));
+ fprintf(stdout, " *** Test with NTLMv1 auth");
+ setenv("LM_COMPAT_LEVEL", "0", 1);
+
+ fprintf(stdout, "Test GSSAPI conversation (user env file)\n");
+ ret = test_gssapi_1(true, false);
+ fprintf(stdout, "Test: %s\n", (ret ? "FAIL":"SUCCESS"));
+
+ fprintf(stdout, "Test GSSAPI conversation (with password)\n");
+ ret = test_gssapi_1(false, false);
+ fprintf(stdout, "Test: %s\n", (ret ? "FAIL":"SUCCESS"));
+
+ fprintf(stdout, "Test Connectionless exchange\n");
+ ret = test_gssapi_cl();
+ fprintf(stdout, "Test: %s\n", (ret ? "FAIL":"SUCCESS"));
+
+ fprintf(stdout, " *** Again forcing NTLMv2 auth");
+ setenv("LM_COMPAT_LEVEL", "5", 1);
+
fprintf(stdout, "Test GSSAPI conversation (user env file)\n");
ret = test_gssapi_1(true, false);
fprintf(stdout, "Test: %s\n", (ret ? "FAIL":"SUCCESS"));