diff options
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/samlogon.c | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/source4/torture/rpc/samlogon.c b/source4/torture/rpc/samlogon.c index 104583058a..12b7ea92b1 100644 --- a/source4/torture/rpc/samlogon.c +++ b/source4/torture/rpc/samlogon.c @@ -1377,6 +1377,7 @@ BOOL torture_rpc_samlogon(void) goto failed; } + /* Try all the tests for different username forms */ for (ci = 0; ci < ARRAY_SIZE(usercreds); ci++) { if (!test_InteractiveLogon(p, mem_ctx, creds, @@ -1397,26 +1398,26 @@ BOOL torture_rpc_samlogon(void) } } + /* Using the first username form, try the different + * credentials flag setups, on only one of the tests (checks + * session key encryption) */ + for (i=0; i < ARRAY_SIZE(credential_flags); i++) { + if (!test_InteractiveLogon(p, mem_ctx, creds, + usercreds[0].domain, + usercreds[0].username, + usercreds[0].password)) { + ret = False; + } - for (ci = 0; ci < ARRAY_SIZE(usercreds); ci++) { - - if (!test_InteractiveLogon(p, mem_ctx, creds, - usercreds[ci].domain, - usercreds[ci].username, - usercreds[ci].password)) { + if (usercreds[ci].network_login) { + if (!test_SamLogon(p, mem_ctx, creds, + usercreds[0].domain, + usercreds[0].username, + usercreds[0].password, + 1)) { ret = False; } - - if (usercreds[ci].network_login) { - if (!test_SamLogon(p, mem_ctx, creds, - usercreds[ci].domain, - usercreds[ci].username, - usercreds[ci].password, - 1)) { - ret = False; - } - } } } |