From 9b2920fd367d26cfbf6f6f442a5c01fae4734abd Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Sun, 14 Jan 2024 08:34:17 +0100 Subject: [PATCH] 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 --- source3/utils/net_rpc_trust.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 2.47.3