diff options
-rw-r--r-- | source3/libnet/libnet_join.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c index b1ebed3e15..c1ff8bb052 100644 --- a/source3/libnet/libnet_join.c +++ b/source3/libnet/libnet_join.c @@ -530,6 +530,10 @@ WERROR libnet_Join(TALLOC_CTX *mem_ctx, return WERR_NOT_SUPPORTED; } + if (IS_DC) { + return WERR_SETUP_DOMAIN_CONTROLLER; + } + if (r->in.join_flags & WKSSVC_JOIN_FLAGS_JOIN_TYPE) { status = do_DomainJoin(mem_ctx, r); |