diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-02-01 13:14:05 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-02-04 17:14:22 +0100 |
commit | 9292e5b74310632e1f0b4b2b76a9ef4ccae6874e (patch) | |
tree | 0d83eff5d57a9ceccecf64da2505d65ccf87ed6b /source3/libnet | |
parent | c5d991e5102069ec712fe609c031a10ee8b0f389 (diff) | |
download | samba-9292e5b74310632e1f0b4b2b76a9ef4ccae6874e.tar.gz samba-9292e5b74310632e1f0b4b2b76a9ef4ccae6874e.tar.bz2 samba-9292e5b74310632e1f0b4b2b76a9ef4ccae6874e.zip |
s3: use generate_random_password() instead of generate_random_str()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/libnet')
-rw-r--r-- | source3/libnet/libnet_join.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c index d6aa7937ee..3d0a6d30b8 100644 --- a/source3/libnet/libnet_join.c +++ b/source3/libnet/libnet_join.c @@ -811,7 +811,9 @@ static NTSTATUS libnet_join_joindomain_rpc_unsecure(TALLOC_CTX *mem_ctx, } if (!r->in.machine_password) { - r->in.machine_password = generate_random_str(mem_ctx, DEFAULT_TRUST_ACCOUNT_PASSWORD_LENGTH); + r->in.machine_password = generate_random_password(mem_ctx, + DEFAULT_TRUST_ACCOUNT_PASSWORD_LENGTH, + DEFAULT_TRUST_ACCOUNT_PASSWORD_LENGTH); NT_STATUS_HAVE_NO_MEMORY(r->in.machine_password); } @@ -882,7 +884,9 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx, } if (!r->in.machine_password) { - r->in.machine_password = generate_random_str(mem_ctx, DEFAULT_TRUST_ACCOUNT_PASSWORD_LENGTH); + r->in.machine_password = generate_random_password(mem_ctx, + DEFAULT_TRUST_ACCOUNT_PASSWORD_LENGTH, + DEFAULT_TRUST_ACCOUNT_PASSWORD_LENGTH); NT_STATUS_HAVE_NO_MEMORY(r->in.machine_password); } |