we now require the full domain name, for the DNS/CLDAP lookup
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
class cmd_join(Command):
"""Joins domain as either member or backup domain controller [server connection needed]"""
- synopsis = "%prog join <domain> [BDC | MEMBER | RODC] [options]"
+ synopsis = "%prog join <dnsdomain> [BDC | MEMBER | RODC] [options]"
takes_optiongroups = {
"sambaopts": options.SambaOptions,
if not role is None:
role = role.upper()
+ if domain.find('.') == -1:
+ raise CommandError("Please use the full DNS domain name, not the short form for '%s'" % domain)
+
if role is None:
secure_channel_type = SEC_CHAN_WKSTA
elif role == "BDC":