summaryrefslogtreecommitdiff
path: root/source4/scripting/devel
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-27 12:18:02 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-27 15:24:40 +1000
commit725e48c22c92e284bb55567f2116c8ddc82a0529 (patch)
tree167b18243d36b6fdb73d06e64eac023c2c6c4489 /source4/scripting/devel
parent4679bb731b3620006249abb0f9808c755266d87a (diff)
downloadsamba-725e48c22c92e284bb55567f2116c8ddc82a0529.tar.gz
samba-725e48c22c92e284bb55567f2116c8ddc82a0529.tar.bz2
samba-725e48c22c92e284bb55567f2116c8ddc82a0529.zip
s4-drsdevel: support sites in drs developer scripts
Diffstat (limited to 'source4/scripting/devel')
-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"