From 0a091604a45b4b143745a20fa842878ceb745c39 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Thu, 29 Nov 2012 22:44:33 +0100 Subject: [PATCH] s4-torture: pass down netlogon flags in netr_ServerPasswordSet2 tests. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Guenther Signed-off-by: Günther Deschner Reviewed-by: Stefan Metzmacher --- source4/torture/rpc/netlogon.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index a97fb449d4c..f6d7262d1d9 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) -- 2.11.4.GIT