s3: net: Do not set NET_FLAGS_ANONYMOUS with -k
authorJustin Stephenson <jstephen@redhat.com>
Mon, 17 Dec 2018 16:26:11 +0000 (11:26 -0500)
committerJeremy Allison <jra@samba.org>
Tue, 8 Jan 2019 02:40:28 +0000 (03:40 +0100)
commita2402f9714449f9dcb86f40dc178a5b5d8384469
tree2bd6cfcb6ec1bffebe0c6f1818aa1286d1d0ce0c
parentb06f0912fc6873d3f7ca49d57267005c0f5c6c19
s3: net: Do not set NET_FLAGS_ANONYMOUS with -k

This affects net rpc getsid and net rpc changetrustpw commands.
This avoids an anonymous IPC connection being made when -k is used,
this only affects net rpc getsid and net rpc changetrustpw commands.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13726

Signed-off-by: Justin Stephenson <jstephen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/utils/net_rpc.c