From 9eb6afb00d85c1a7b367d51a19eed41172f7a2e9 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 4 Jun 2004 11:58:46 +0000 Subject: r1009: Make all users of NT and LM passwords use the samr_Password structure. This includes the netlogon pipe, for the machine account password change system. Andrew Bartlett (This used to be commit 49d545a82057ee8b60d50aa55e908efe59875150) --- source4/torture/rpc/netlogon.c | 2 +- source4/torture/rpc/samr.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index bfa63c2af7..902910d179 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -1119,7 +1119,7 @@ static BOOL test_SetPassword(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) r.in.computer_name = TEST_MACHINE_NAME; password = generate_random_str(mem_ctx, 8); - E_md4hash(password, r.in.new_password.data); + E_md4hash(password, r.in.new_password.hash); creds_des_encrypt(&creds, &r.in.new_password); diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index dab1b3bed5..311ed23dbe 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -91,7 +91,7 @@ static BOOL test_SetDsrmPassword(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, NTSTATUS status; struct samr_SetDsrmPassword r; struct samr_Name name; - struct samr_Hash hash; + struct samr_Password hash; if (lp_parm_int(-1, "torture", "dangerous") != 1) { printf("samr_SetDsrmPassword disabled - enable dangerous tests to use\n"); @@ -734,7 +734,7 @@ static BOOL test_ChangePasswordUser(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, NTSTATUS status; struct samr_ChangePasswordUser r; BOOL ret = True; - struct samr_Hash hash1, hash2, hash3, hash4, hash5, hash6; + struct samr_Password hash1, hash2, hash3, hash4, hash5, hash6; struct policy_handle user_handle; char *oldpass = *password; char *newpass = samr_rand_pass(mem_ctx); @@ -794,7 +794,7 @@ static BOOL test_OemChangePasswordUser2(struct dcerpc_pipe *p, TALLOC_CTX *mem_c NTSTATUS status; struct samr_OemChangePasswordUser2 r; BOOL ret = True; - struct samr_Hash lm_verifier; + struct samr_Password lm_verifier; struct samr_CryptPassword lm_pass; struct samr_AsciiName server, account; char *oldpass = *password; @@ -838,7 +838,7 @@ static BOOL test_ChangePasswordUser2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, BOOL ret = True; struct samr_Name server, account; struct samr_CryptPassword nt_pass, lm_pass; - struct samr_Hash nt_verifier, lm_verifier; + struct samr_Password nt_verifier, lm_verifier; char *oldpass = *password; char *newpass = samr_rand_pass(mem_ctx); uint8_t old_nt_hash[16], new_nt_hash[16]; @@ -891,7 +891,7 @@ static BOOL test_ChangePasswordUser3(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, BOOL ret = True; struct samr_Name server, account; struct samr_CryptPassword nt_pass, lm_pass; - struct samr_Hash nt_verifier, lm_verifier; + struct samr_Password nt_verifier, lm_verifier; char *oldpass = *password; char *newpass = samr_rand_pass(mem_ctx); uint8_t old_nt_hash[16], new_nt_hash[16]; -- cgit