From: Stefan Metzmacher Date: Thu, 7 Mar 2024 12:43:13 +0000 (+0100) Subject: s3:net_rpc: make use of !c->explicit_credentials for NET_FLAGS_ANONYMOUS X-Git-Tag: tdb-1.4.11~742 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9082129f21e5b6f7cc5c2011336a952da84441e;p=thirdparty%2Fsamba.git s3:net_rpc: make use of !c->explicit_credentials for NET_FLAGS_ANONYMOUS Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index 2b904fb5533..c7f0126c465 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -319,7 +319,7 @@ int net_rpc_changetrustpw(struct net_context *c, int argc, const char **argv) { int conn_flags = NET_FLAGS_PDC; - if (!c->opt_user_specified && !c->opt_kerberos) { + if (!c->explicit_credentials) { conn_flags |= NET_FLAGS_ANONYMOUS; } @@ -879,7 +879,7 @@ int net_rpc_getsid(struct net_context *c, int argc, const char **argv) { int conn_flags = NET_FLAGS_PDC; - if (!c->opt_user_specified && !c->opt_kerberos) { + if (!c->explicit_credentials) { conn_flags |= NET_FLAGS_ANONYMOUS; }