From 7f6b524bf6e1a5eeed3df48b791db43cf4052608 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 14 Dec 2009 18:02:15 +1100 Subject: s4-devel: support vampire_ad.sh with no initial smb.conf --- source4/scripting/devel/drs/vampire_ad.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source4/scripting/devel/drs/vampire_ad.sh b/source4/scripting/devel/drs/vampire_ad.sh index baba02d5ac..c40ca64071 100755 --- a/source4/scripting/devel/drs/vampire_ad.sh +++ b/source4/scripting/devel/drs/vampire_ad.sh @@ -12,6 +12,9 @@ chmod a+r $namedtmp mv -f $namedtmp $PREFIX/private/named.conf sudo rndc reconfig `dirname $0`/unvampire_ad.sh -sudo bin/net vampire $DNSDOMAIN -Uadministrator%$pass -s $PREFIX/etc/smb.conf -d2 || exit 1 + +REALM="$(echo $DNSDOMAIN | tr '[a-z]' '[A-Z]')" + +sudo bin/net vampire $DNSDOMAIN -Uadministrator%$pass -s $PREFIX/etc/smb.conf --option=realm=$REALM --option="ads:dc function level=4" --option="ads:min function level=0" -d2 || exit 1 PRIVATEDIR=$PREFIX/private sudo -E scripting/bin/setup_dns.sh $machine $DNSDOMAIN $machine_ip || exit 1 sudo rndc flush -- cgit