diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-02-24 15:09:50 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-02-26 08:57:28 +0100 |
commit | 7473ca2d33e04d9b9dbb7fa56b0cb44603988036 (patch) | |
tree | 662d11884da61957513a06a4a9db55006d4e30ef /source4 | |
parent | 792dd38d7c0be5319db1eef625c142a6490cd12b (diff) | |
download | samba-7473ca2d33e04d9b9dbb7fa56b0cb44603988036.tar.gz samba-7473ca2d33e04d9b9dbb7fa56b0cb44603988036.tar.bz2 samba-7473ca2d33e04d9b9dbb7fa56b0cb44603988036.zip |
s4:libnet: use generate_random_password()
metze
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libnet/libnet_join.c | 2 | ||||
-rw-r--r-- | source4/libnet/libnet_vampire.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/libnet/libnet_join.c b/source4/libnet/libnet_join.c index 84d3250c31..71bef3135f 100644 --- a/source4/libnet/libnet_join.c +++ b/source4/libnet/libnet_join.c @@ -796,7 +796,7 @@ NTSTATUS libnet_JoinDomain(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, stru /* Grab a password of that minimum length */ - password_str = generate_random_str(tmp_ctx, MAX(8, policy_min_pw_len)); + password_str = generate_random_password(tmp_ctx, MAX(8, policy_min_pw_len), 255); /* set full_name and reset flags */ ZERO_STRUCT(u_info21); diff --git a/source4/libnet/libnet_vampire.c b/source4/libnet/libnet_vampire.c index 9554a63b3c..aa47100f02 100644 --- a/source4/libnet/libnet_vampire.c +++ b/source4/libnet/libnet_vampire.c @@ -94,7 +94,7 @@ static NTSTATUS vampire_prepare_db(void *private_data, settings.realm = s->join->out.realm; settings.domain = s->join->out.domain_name; settings.server_dn_str = p->dest_dsa->server_dn_str; - settings.machine_password = generate_random_str(s, 16); + settings.machine_password = generate_random_password(s, 16, 255); settings.targetdir = s->targetdir; status = provision_bare(s, s->lp_ctx, &settings, &result); |