summaryrefslogtreecommitdiff
path: root/source3/utils/net.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-07-15 13:28:34 +0200
committerAndreas Schneider <asn@samba.org>2013-08-05 10:30:01 +0200
commit05d9b4165af9e7f03d3fbeb64db4fc305fcec4df (patch)
treea86496018341a936d363b2dc703b59c25e9aab83 /source3/utils/net.h
parent3e4ded48bbeacdcd128f3c667cbdd12a3efca312 (diff)
downloadsamba-05d9b4165af9e7f03d3fbeb64db4fc305fcec4df.tar.gz
samba-05d9b4165af9e7f03d3fbeb64db4fc305fcec4df.tar.bz2
samba-05d9b4165af9e7f03d3fbeb64db4fc305fcec4df.zip
s3-net: avoid confusing output in net_rpc_oldjoin() if NET_FLAGS_EXPECT_FALLBACK is passed
"net rpc join" tries net_rpc_oldjoin() first and falls back to net_rpc_join_newstyle(). We should not print the join failed if just net_rpc_oldjoin() failed. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/utils/net.h')
-rw-r--r--source3/utils/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/net.h b/source3/utils/net.h
index 2056d894d5..e97734ae34 100644
--- a/source3/utils/net.h
+++ b/source3/utils/net.h
@@ -182,6 +182,7 @@ enum netdom_domain_t { ND_TYPE_NT4, ND_TYPE_AD };
#define NET_FLAGS_SIGN 0x00000040 /* sign RPC connection */
#define NET_FLAGS_SEAL 0x00000080 /* seal RPC connection */
#define NET_FLAGS_TCP 0x00000100 /* use ncacn_ip_tcp */
+#define NET_FLAGS_EXPECT_FALLBACK 0x00000200 /* the caller will fallback */
/* net share operation modes */
#define NET_MODE_SHARE_MIGRATE 1