summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2012-11-29 22:44:33 +0100
committerStefan Metzmacher <metze@samba.org>2012-12-09 19:39:07 +0100
commit0a091604a45b4b143745a20fa842878ceb745c39 (patch)
tree16226c063dbb3422a41fc64f6cc00c774ccd8c34 /source4
parentd1f481ffe17ce84ffddbedf1bd7efb0654e2807e (diff)
downloadsamba-0a091604a45b4b143745a20fa842878ceb745c39.tar.gz
samba-0a091604a45b4b143745a20fa842878ceb745c39.tar.bz2
samba-0a091604a45b4b143745a20fa842878ceb745c39.zip
s4-torture: pass down netlogon flags in netr_ServerPasswordSet2 tests.
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/netlogon.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c
index a97fb449d4..f6d7262d1d 100644
--- a/source4/torture/rpc/netlogon.c
+++ b/source4/torture/rpc/netlogon.c
@@ -506,9 +506,10 @@ static DATA_BLOB netlogon_very_rand_pass(TALLOC_CTX *mem_ctx, int len)
/*
try a change password for our machine account
*/
-static bool test_SetPassword2(struct torture_context *tctx,
- struct dcerpc_pipe *p,
- struct cli_credentials *machine_credentials)
+static bool test_SetPassword2_with_flags(struct torture_context *tctx,
+ struct dcerpc_pipe *p,
+ struct cli_credentials *machine_credentials,
+ uint32_t flags)
{
struct netr_ServerPasswordSet2 r;
const char *password;
@@ -520,7 +521,7 @@ static bool test_SetPassword2(struct torture_context *tctx,
struct netr_CryptPassword new_password;
struct dcerpc_binding_handle *b = p->binding_handle;
- if (!test_SetupCredentials(p, tctx, machine_credentials, &creds)) {
+ if (!test_SetupCredentials2(p, tctx, flags, machine_credentials, cli_credentials_get_secure_channel_type(machine_credentials), &creds)) {
return false;
}
@@ -672,6 +673,13 @@ static bool test_SetPassword2(struct torture_context *tctx,
return true;
}
+static bool test_SetPassword2(struct torture_context *tctx,
+ struct dcerpc_pipe *p,
+ struct cli_credentials *machine_credentials)
+{
+ return test_SetPassword2_with_flags(tctx, p, machine_credentials, NETLOGON_NEG_AUTH2_ADS_FLAGS);
+}
+
static bool test_GetPassword(struct torture_context *tctx,
struct dcerpc_pipe *p,
struct cli_credentials *machine_credentials)