summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-02-24 12:19:27 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-02-24 03:53:38 +0100
commitf14dffa815b47af4061cf1d0c35e0237d35c07a9 (patch)
tree677bc1b427dcbf6b813851f1f59cee0fe21794ef /source3/torture
parentb947d84c88d1fcc3bdd75f3002bb38b673cbecd3 (diff)
downloadsamba-f14dffa815b47af4061cf1d0c35e0237d35c07a9.tar.gz
samba-f14dffa815b47af4061cf1d0c35e0237d35c07a9.tar.bz2
samba-f14dffa815b47af4061cf1d0c35e0237d35c07a9.zip
s3-selftest: Verify GK and GF flag behaviour
At least this ensures that the helper has not crashed, it will require a little more to ensure that the values are correct. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Feb 24 03:53:38 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/torture')
-rwxr-xr-xsource3/torture/test_ntlm_auth.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/source3/torture/test_ntlm_auth.py b/source3/torture/test_ntlm_auth.py
index b6e06a9bd5..be725485a0 100755
--- a/source3/torture/test_ntlm_auth.py
+++ b/source3/torture/test_ntlm_auth.py
@@ -209,6 +209,32 @@ def main():
if buf.count("AF ", 0, 3) != 1:
sys.exit(4)
+ if opts.client_helper == "ntlmssp-client-1":
+ writeLine(client_out, "GK")
+ buf = readLine(client_in)
+
+ if buf.count("GK ", 0, 3) != 1:
+ sys.exit(4)
+
+ writeLine(client_out, "GF")
+ buf = readLine(client_in)
+
+ if buf.count("GF ", 0, 3) != 1:
+ sys.exit(4)
+
+ if opts.server_helper == "squid-2.5-ntlmssp":
+ writeLine(server_out, "GK")
+ buf = readLine(server_in)
+
+ if buf.count("GK ", 0, 3) != 1:
+ sys.exit(4)
+
+ writeLine(server_out, "GF")
+ buf = readLine(server_in)
+
+ if buf.count("GF ", 0, 3) != 1:
+ sys.exit(4)
+
os.close(server_in)
os.close(server_out)
os.close(client_in)