From 9ada48ffdb3b7ab4bc1bce0f6b2179f67292bcf8 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 24 Feb 2010 15:12:17 +0100 Subject: s4:torture/rpc: use generate_random_password() metze --- source4/torture/rpc/netlogon.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/torture/rpc/netlogon.c') diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index 2806cca52b..0270a5aea9 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -292,7 +292,7 @@ static bool test_SetPassword(struct torture_context *tctx, r.in.new_password = &new_password; r.out.return_authenticator = &return_authenticator; - password = generate_random_str(tctx, 8); + password = generate_random_password(tctx, 8, 255); E_md4hash(password, new_password.hash); netlogon_creds_des_encrypt(creds, &new_password); @@ -367,7 +367,7 @@ static bool test_SetPassword_flags(struct torture_context *tctx, r.in.new_password = &new_password; r.out.return_authenticator = &return_authenticator; - password = generate_random_str(tctx, 8); + password = generate_random_password(tctx, 8, 255); E_md4hash(password, new_password.hash); netlogon_creds_des_encrypt(creds, &new_password); @@ -460,7 +460,7 @@ static bool test_SetPassword2(struct torture_context *tctx, r.in.new_password = &new_password; r.out.return_authenticator = &return_authenticator; - password = generate_random_str(tctx, 8); + password = generate_random_password(tctx, 8, 255); encode_pw_buffer(password_buf.data, password, STR_UNICODE); netlogon_creds_arcfour_crypt(creds, password_buf.data, 516); @@ -518,7 +518,7 @@ static bool test_SetPassword2(struct torture_context *tctx, "ServerPasswordSet failed to actually change the password"); /* now try a random password */ - password = generate_random_str(tctx, 8); + password = generate_random_password(tctx, 8, 255); encode_pw_buffer(password_buf.data, password, STR_UNICODE); netlogon_creds_arcfour_crypt(creds, password_buf.data, 516); -- cgit