summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-07-17 10:55:58 +0200
committerAndreas Schneider <asn@samba.org>2012-07-17 10:58:39 +0200
commita3e835635cbdfdb6ec8ef6125f2ce53cfa5eba69 (patch)
tree9b6a1030e8b6bac98756296afd86824628110393 /source4
parent2c3dc04be26b5129e26aeae7aef3b8f5de7cb8c1 (diff)
downloadsamba-a3e835635cbdfdb6ec8ef6125f2ce53cfa5eba69.tar.gz
samba-a3e835635cbdfdb6ec8ef6125f2ce53cfa5eba69.tar.bz2
samba-a3e835635cbdfdb6ec8ef6125f2ce53cfa5eba69.zip
s4-torture: Improve samlogon test.
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/samlogon.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/torture/rpc/samlogon.c b/source4/torture/rpc/samlogon.c
index e4d07844a9..640bd6a6e3 100644
--- a/source4/torture/rpc/samlogon.c
+++ b/source4/torture/rpc/samlogon.c
@@ -1941,6 +1941,7 @@ bool torture_rpc_samlogon(struct torture_context *torture)
usercreds[ci].parameter_control,
usercreds[ci].expected_interactive_error)) {
ret = false;
+ goto failed;
}
if (usercreds[ci].network_login) {
@@ -1954,6 +1955,7 @@ bool torture_rpc_samlogon(struct torture_context *torture)
usercreds[ci].old_password,
0)) {
ret = false;
+ goto failed;
}
}
}
@@ -1965,6 +1967,10 @@ bool torture_rpc_samlogon(struct torture_context *torture)
for (i=0; i < ARRAY_SIZE(credential_flags); i++) {
/* TODO: Somehow we lost setting up the different credential flags here! */
+ torture_comment(torture,
+ "Testing with flags: 0x%08x\n",
+ credential_flags[i]);
+
if (!test_InteractiveLogon(p, mem_ctx, torture, creds,
usercreds[0].comment,
TEST_MACHINE_NAME,
@@ -1974,6 +1980,7 @@ bool torture_rpc_samlogon(struct torture_context *torture)
usercreds[0].parameter_control,
usercreds[0].expected_interactive_error)) {
ret = false;
+ goto failed;
}
if (usercreds[0].network_login) {
@@ -1987,6 +1994,7 @@ bool torture_rpc_samlogon(struct torture_context *torture)
usercreds[0].old_password,
1)) {
ret = false;
+ goto failed;
}
}
}