]> git.ipfire.org Git - thirdparty/samba.git/commit
lib/util: add generate_random_machine_password() function
authorStefan Metzmacher <metze@samba.org>
Tue, 23 Aug 2016 07:30:05 +0000 (09:30 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 25 Feb 2017 00:35:16 +0000 (01:35 +0100)
commitb8e5ee1e557940fbf6ff23304809919bae4f783c
tree038c3d4871965311423ee1322f5272cf6ed20e6d
parentebef87abe869f6ef5edc291abf8bfd37194fe469
lib/util: add generate_random_machine_password() function

It generates more random password for the use as machine password,
restricted to codepoints <= 0xFFFF in order to be compatible
with MIT krb5 and Heimdal.

Note: the fallback to ascii if 'unix charset' is not 'utf8'.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12262

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit ad12cfae42cc592166d6a1c1ee323f1aae82f235)
lib/util/genrand_util.c
lib/util/samba_util.h