From: Stefan Metzmacher Date: Tue, 23 Aug 2016 08:42:30 +0000 (+0200) Subject: s3:net_rpc_trust: make use of trust_pw_new_value() X-Git-Tag: samba-4.4.10~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=746fe432eb4fc81f62e0e6ab68c9a2b21803a50e;p=thirdparty%2Fsamba.git s3:net_rpc_trust: make use of trust_pw_new_value() BUG: https://bugzilla.samba.org/show_bug.cgi?id=12262 Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme (cherry picked from commit 13fd543929c72fa5af1ae6e21ca8dda9a57a0f55) --- diff --git a/source3/utils/net_rpc_trust.c b/source3/utils/net_rpc_trust.c index 5e58103fb03..5c13e06a28f 100644 --- a/source3/utils/net_rpc_trust.c +++ b/source3/utils/net_rpc_trust.c @@ -518,9 +518,9 @@ static int rpc_trust_common(struct net_context *net_ctx, int argc, } DEBUG(0, ("Using random trust password.\n")); - trust_pw = generate_random_password(mem_ctx, - DEFAULT_TRUST_ACCOUNT_PASSWORD_LENGTH, - DEFAULT_TRUST_ACCOUNT_PASSWORD_LENGTH); + trust_pw = trust_pw_new_value(mem_ctx, + SEC_CHAN_DOMAIN, + SEC_DOMAIN); if (trust_pw == NULL) { DEBUG(0, ("generate_random_password failed.\n")); goto done;