diff options
author | Stefan Metzmacher <metze@samba.org> | 2016-08-23 12:12:35 +0200 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2017-02-21 16:09:21 +0100 |
commit | 9e26ad86fbd7e6f39f98fb9d037ac86f3146cb11 (patch) | |
tree | 2824b395b01021f1044f64544bec0c29d3b39f59 /source3/include/proto.h | |
parent | a2877541681e07f09aee7d7c21adbe50346755e3 (diff) | |
download | samba-9e26ad86fbd7e6f39f98fb9d037ac86f3146cb11.tar.gz |
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>
Diffstat (limited to 'source3/include/proto.h')
-rw-r--r-- | source3/include/proto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index b3d3ca0e5d1..e6d42845059 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -862,6 +862,9 @@ void update_trustdom_cache( void ); struct netlogon_creds_cli_context; struct messaging_context; struct dcerpc_binding_handle; +char *trust_pw_new_value(TALLOC_CTX *mem_ctx, + enum netr_SchannelType sec_channel_type, + int security); NTSTATUS trust_pw_change(struct netlogon_creds_cli_context *context, struct messaging_context *msg_ctx, struct dcerpc_binding_handle *b, |