diff options
-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); |