git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2c3dc04
)
s4-torture: Improve samlogon test.
author
Andreas Schneider
<asn@samba.org>
Tue, 17 Jul 2012 08:55:58 +0000
(10:55 +0200)
committer
Andreas Schneider
<asn@samba.org>
Tue, 17 Jul 2012 08:58:39 +0000
(10:58 +0200)
source4/torture/rpc/samlogon.c
patch
|
blob
|
history
diff --git
a/source4/torture/rpc/samlogon.c
b/source4/torture/rpc/samlogon.c
index e4d07844a9529778623031f6802d5f683392d16b..640bd6a6e3b7c087ac9f8a2aea8c68100bb34810 100644
(file)
--- 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;
usercreds[ci].parameter_control,
usercreds[ci].expected_interactive_error)) {
ret = false;
+ goto failed;
}
if (usercreds[ci].network_login) {
}
if (usercreds[ci].network_login) {
@@
-1954,6
+1955,7
@@
bool torture_rpc_samlogon(struct torture_context *torture)
usercreds[ci].old_password,
0)) {
ret = false;
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! */
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,
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;
usercreds[0].parameter_control,
usercreds[0].expected_interactive_error)) {
ret = false;
+ goto failed;
}
if (usercreds[0].network_login) {
}
if (usercreds[0].network_login) {
@@
-1987,6
+1994,7
@@
bool torture_rpc_samlogon(struct torture_context *torture)
usercreds[0].old_password,
1)) {
ret = false;
usercreds[0].old_password,
1)) {
ret = false;
+ goto failed;
}
}
}
}
}
}