ad)
if test -n "$1" ;then
test -x "$net_cmd" || fatal "Cannot find $net_cmd executable required to join to Active Directory domain"
write_nsswitch "hosts" "files dns myhostname"
# Check domain name in DNS
check_domain_in_dns "$1" || exit 1
write_profile "$object"
usage
;;
esac