summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-14 18:02:15 +1100
committerAndrew Tridgell <tridge@samba.org>2009-12-14 22:29:58 +1100
commit7f6b524bf6e1a5eeed3df48b791db43cf4052608 (patch)
tree6f7fe6cf3a7b29a17df579076339c0bbc6d19f24
parentb11b22752a9a0d2e88e4857c0e211298d2a7b8a3 (diff)
downloadsamba-7f6b524bf6e1a5eeed3df48b791db43cf4052608.tar.gz
samba-7f6b524bf6e1a5eeed3df48b791db43cf4052608.tar.bz2
samba-7f6b524bf6e1a5eeed3df48b791db43cf4052608.zip
s4-devel: support vampire_ad.sh with no initial smb.conf
-rwxr-xr-xsource4/scripting/devel/drs/vampire_ad.sh5
1 files changed, 4 insertions, 1 deletions
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