From: Ralph Boehme Date: Sun, 14 Jan 2024 07:34:17 +0000 (+0100) Subject: net: create creds for other domain X-Git-Tag: talloc-2.4.2~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b2920fd367d26cfbf6f6f442a5c01fae4734abd;p=thirdparty%2Fsamba.git net: create creds for other domain BUG: https://bugzilla.samba.org/show_bug.cgi?id=15533 Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- diff --git a/source3/utils/net_rpc_trust.c b/source3/utils/net_rpc_trust.c index bf28fd0865d..a3354ad68d4 100644 --- a/source3/utils/net_rpc_trust.c +++ b/source3/utils/net_rpc_trust.c @@ -488,8 +488,10 @@ static int rpc_trust_common(struct net_context *net_ctx, int argc, } other_net_ctx->opt_host = other_dom_data->host; - other_net_ctx->opt_user_name = other_dom_data->user_name; - other_net_ctx->opt_user_specified = true; + other_net_ctx->creds = cli_credentials_init(other_net_ctx); + cli_credentials_parse_string(other_net_ctx->creds, + other_dom_data->user_name, + CRED_SPECIFIED); } else { dom_data[1].domsid = dom_sid_parse_talloc(mem_ctx, other_dom_data->domain_sid_str);