diff options
Diffstat (limited to 'source4/torture/rpc/netlogon.c')
-rw-r--r-- | source4/torture/rpc/netlogon.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |