summaryrefslogtreecommitdiff
path: root/source4/scripting/devel/drs
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/devel/drs')
-rwxr-xr-xsource4/scripting/devel/drs/unvampire_ad.sh5
-rwxr-xr-xsource4/scripting/devel/drs/vampire_ad.sh4
-rw-r--r--source4/scripting/devel/drs/vars1
3 files changed, 7 insertions, 3 deletions
diff --git a/source4/scripting/devel/drs/unvampire_ad.sh b/source4/scripting/devel/drs/unvampire_ad.sh
index 7f9763e18a..dbd3cfb431 100755
--- a/source4/scripting/devel/drs/unvampire_ad.sh
+++ b/source4/scripting/devel/drs/unvampire_ad.sh
@@ -4,8 +4,11 @@ set -x
. `dirname $0`/vars
+if [ -z "$site" ]; then
+ site="Default-First-Site-Name"
+fi
bin/ldbdel -r -H ldap://$server.$DNSDOMAIN -U$workgroup/administrator%$pass "CN=$machine,CN=Computers,$dn"
bin/ldbdel -r -H ldap://$server.$DNSDOMAIN -U$workgroup/administrator%$pass "CN=$machine,OU=Domain Controllers,$dn"
-bin/ldbdel -r -H ldap://$server.$DNSDOMAIN -U$workgroup/administrator%$pass "CN=$machine,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,$dn"
+bin/ldbdel -r -H ldap://$server.$DNSDOMAIN -U$workgroup/administrator%$pass "CN=$machine,CN=Servers,CN=$site,CN=Sites,CN=Configuration,$dn"
rm -f $PREFIX/private/*.ldb
diff --git a/source4/scripting/devel/drs/vampire_ad.sh b/source4/scripting/devel/drs/vampire_ad.sh
index 7a6be506fc..28f3c5a0bc 100755
--- a/source4/scripting/devel/drs/vampire_ad.sh
+++ b/source4/scripting/devel/drs/vampire_ad.sh
@@ -16,5 +16,5 @@ sudo rndc reconfig
REALM="$(echo $DNSDOMAIN | tr '[a-z]' '[A-Z]')"
sudo $GDB 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
+# PRIVATEDIR=$PREFIX/private sudo -E scripting/bin/setup_dns.sh $machine $DNSDOMAIN $machine_ip || exit 1
+#sudo rndc flush
diff --git a/source4/scripting/devel/drs/vars b/source4/scripting/devel/drs/vars
index e1fe53c61a..b69b9f9a39 100644
--- a/source4/scripting/devel/drs/vars
+++ b/source4/scripting/devel/drs/vars
@@ -8,4 +8,5 @@ workgroup=adruth
dn="DC=ad,DC=samba,DC=example,DC=com"
server=win2008-1
server_ip=192.168.122.53
+site="Default-First-Site-Name"