summaryrefslogtreecommitdiff
path: root/source4/scripting/bin
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-01-07 21:28:03 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-08 13:03:06 +1100
commit59f314d321bb276ebdf2da3017b6a5d3b79d13e2 (patch)
tree5c89a5b515e615df693d910cb2c66f6ee58c34b4 /source4/scripting/bin
parent501dd4a3b51635fd215d6e397b64f264911c7250 (diff)
downloadsamba-59f314d321bb276ebdf2da3017b6a5d3b79d13e2.tar.gz
samba-59f314d321bb276ebdf2da3017b6a5d3b79d13e2.tar.bz2
samba-59f314d321bb276ebdf2da3017b6a5d3b79d13e2.zip
s4-scripting: we need to use a base search for the NTDS GUID
now we have nTDSConnections structures we can get more than 1 reply
Diffstat (limited to 'source4/scripting/bin')
-rwxr-xr-xsource4/scripting/bin/setup_dns.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/bin/setup_dns.sh b/source4/scripting/bin/setup_dns.sh
index f20ad145c1..de4485fc07 100755
--- a/source4/scripting/bin/setup_dns.sh
+++ b/source4/scripting/bin/setup_dns.sh
@@ -16,7 +16,7 @@ RSUFFIX=$(echo $DOMAIN | sed s/[\.]/,DC=/g)
PRIVATEDIR=$(bin/testparm --section-name=global --parameter-name='private dir' --suppress-prompt 2> /dev/null)
}
-OBJECTGUID=$(bin/ldbsearch -H "$PRIVATEDIR/sam.ldb" -b "CN=NTDS Settings,CN=$HOSTNAME,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=$RSUFFIX" objectguid|grep ^objectGUID| cut -d: -f2)
+OBJECTGUID=$(bin/ldbsearch -s base -H "$PRIVATEDIR/sam.ldb" -b "CN=NTDS Settings,CN=$HOSTNAME,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=$RSUFFIX" objectguid|grep ^objectGUID| cut -d: -f2)
echo "Found objectGUID $OBJECTGUID"