diff options
-rw-r--r-- | source3/utils/net_ads.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index a6712b7172..b4814521aa 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -1159,6 +1159,12 @@ int net_ads_join(int argc, const char **argv) } } + if (!*domain) { + d_fprintf(stderr, "Please supply a valid domain name\n"); + werr = WERR_INVALID_PARAM; + goto fail; + } + /* Do the domain join here */ r->in.domain_name = domain; |