diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-02-24 15:12:17 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-02-26 08:57:29 +0100 |
commit | 9ada48ffdb3b7ab4bc1bce0f6b2179f67292bcf8 (patch) | |
tree | bc0af443025e0b7ce6efcfb2d4ea755814361e4f /source4/torture/rpc/netlogon.c | |
parent | 7473ca2d33e04d9b9dbb7fa56b0cb44603988036 (diff) | |
download | samba-9ada48ffdb3b7ab4bc1bce0f6b2179f67292bcf8.tar.gz samba-9ada48ffdb3b7ab4bc1bce0f6b2179f67292bcf8.tar.bz2 samba-9ada48ffdb3b7ab4bc1bce0f6b2179f67292bcf8.zip |
s4:torture/rpc: use generate_random_password()
metze
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); |