summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource3/torture/test_ntlm_auth.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/torture/test_ntlm_auth.py b/source3/torture/test_ntlm_auth.py
index 386bfb7f0c..1ee5b83bd7 100755
--- a/source3/torture/test_ntlm_auth.py
+++ b/source3/torture/test_ntlm_auth.py
@@ -212,7 +212,7 @@ def main():
sys.exit(4)
- if opts.client_helper == "ntlmssp-client-1" and opts.server_helper == "gss-spnego":
+ elif opts.client_helper == "ntlmssp-client-1" and opts.server_helper == "gss-spnego":
# We're in the parent
writeLine(client_out, "YR")
buf = readLine(client_in)
@@ -242,7 +242,7 @@ def main():
sys.exit(4)
- if opts.client_helper == "gss-spnego-client" and opts.server_helper == "gss-spnego":
+ elif opts.client_helper == "gss-spnego-client" and opts.server_helper == "gss-spnego":
# We're in the parent
writeLine(server_out, "YR")
buf = readLine(server_in)
@@ -266,6 +266,9 @@ def main():
if buf.count("AF * ", 0, 5) == 1:
break
+ else:
+ sys.exit(5)
+
if opts.client_helper == "ntlmssp-client-1":
writeLine(client_out, "GK")
buf = readLine(client_in)