summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet_join.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-02-24 15:09:50 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-26 08:57:28 +0100
commit7473ca2d33e04d9b9dbb7fa56b0cb44603988036 (patch)
tree662d11884da61957513a06a4a9db55006d4e30ef /source4/libnet/libnet_join.c
parent792dd38d7c0be5319db1eef625c142a6490cd12b (diff)
downloadsamba-7473ca2d33e04d9b9dbb7fa56b0cb44603988036.tar.gz
samba-7473ca2d33e04d9b9dbb7fa56b0cb44603988036.tar.bz2
samba-7473ca2d33e04d9b9dbb7fa56b0cb44603988036.zip
s4:libnet: use generate_random_password()
metze
Diffstat (limited to 'source4/libnet/libnet_join.c')
-rw-r--r--source4/libnet/libnet_join.c2
1 files changed, 1 insertions, 1 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);