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)
committerStefan Metzmacher <metze@samba.org>
Sat, 25 Feb 2017 00:35:17 +0000 (01:35 +0100)
commitd33207755a21a21cb2ad9af37df378cd765676c3
tree406aa1f833b999d718f1106e12f1cb9acfb46bb7
parent73f8a92f3c1291be85c8568ccc983fb2f5b95842
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>
(cherry picked from commit 9e26ad86fbd7e6f39f98fb9d037ac86f3146cb11)
source3/include/proto.h
source3/libsmb/trusts_util.c