From f14dffa815b47af4061cf1d0c35e0237d35c07a9 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 24 Feb 2012 12:19:27 +1100 Subject: 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 Autobuild-Date: Fri Feb 24 03:53:38 CET 2012 on sn-devel-104 --- source3/torture/test_ntlm_auth.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'source3') 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) -- cgit