#!/bin/bash

. ${TOOLKIT}-functions.sh

getconfirm samba.domain_master || {
	echo "
ERROR:	you have requested srv-samba-pdc module, but
	samba.domain_master is FALSE, check your config
" >&2
	exit 1
}

getconfirm samba.ldap || {
	echo "
ERROR:	you must enable LDAP support (samba.ldap=yes)
	if you want to use samba as Primary Domain Controller
" >&2
	exit 1
}

exit 0
