diff options
author | Stefan Metzmacher <metze@samba.org> | 2016-08-23 10:42:30 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2017-02-25 01:35:17 +0100 |
commit | 746fe432eb4fc81f62e0e6ab68c9a2b21803a50e (patch) | |
tree | 58672e35b4421ff0e002bbbf9b35ca415015fbe2 | |
parent | b9eaad88004af7d5856ba632b881457d41a053e3 (diff) | |
download | samba-746fe432eb4fc81f62e0e6ab68c9a2b21803a50e.tar.gz |
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 <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 13fd543929c72fa5af1ae6e21ca8dda9a57a0f55)
-rw-r--r-- | source3/utils/net_rpc_trust.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |