s3:libsmb: add trust_pw_new_value() helper function
authorStefan Metzmacher <metze@samba.org>
Tue, 23 Aug 2016 10:12:35 +0000 (12:12 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 21 Feb 2017 15:09:21 +0000 (16:09 +0100)
commit9e26ad86fbd7e6f39f98fb9d037ac86f3146cb11
tree2824b395b01021f1044f64544bec0c29d3b39f59
parenta2877541681e07f09aee7d7c21adbe50346755e3
s3:libsmb: add trust_pw_new_value() helper function

This generates a new trust password based on the secure channel type
and lp_security().

NT4 really has a limit of 28 UTF16 bytes.

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>
source3/include/proto.h
source3/libsmb/trusts_util.c