s3:net: always set ctx->opt_user_specified = true when we overwrite opt_user_name
authorStefan Metzmacher <metze@samba.org>
Mon, 11 Nov 2019 12:43:02 +0000 (13:43 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 28 May 2020 06:43:37 +0000 (06:43 +0000)
commit715d8751447e3ec140cb70084d27ba958c07c21a
tree39625e012bd0f1708306afbe6eb6d32faff32bc0
parent84f04f90bd35c678e4336191968cbb48b0fb596b
s3:net: always set ctx->opt_user_specified = true when we overwrite opt_user_name

If we force changing the used username we should make that clear.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/utils/net_rpc.c
source3/utils/net_rpc_trust.c
source3/utils/net_util.c