summaryrefslogtreecommitdiff
path: root/source4/scripting/bin
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-08-19 17:32:26 +1000
committerAndrew Tridgell <tridge@samba.org>2011-08-25 07:39:37 +1000
commitb6e18870026a03edfc21a4695824f4c988a14b11 (patch)
treead687d98091a1b59b47eb599a18449c8e166cbce /source4/scripting/bin
parent67651905f984745dab4de3944d1c0a988b8d5d50 (diff)
downloadsamba-b6e18870026a03edfc21a4695824f4c988a14b11.tar.gz
samba-b6e18870026a03edfc21a4695824f4c988a14b11.tar.bz2
samba-b6e18870026a03edfc21a4695824f4c988a14b11.zip
s4-dns: fixed base search on domain NC
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/scripting/bin')
-rwxr-xr-xsource4/scripting/bin/samba_dnsupdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate
index 78d7dc1712..9f37034827 100755
--- a/source4/scripting/bin/samba_dnsupdate
+++ b/source4/scripting/bin/samba_dnsupdate
@@ -230,7 +230,7 @@ def get_subst_vars():
vars['HOSTNAME'] = lp.get('netbios name').lower() + "." + vars['DNSDOMAIN']
vars['NTDSGUID'] = samdb.get_ntds_GUID()
vars['SITE'] = samdb.server_site_name()
- res = samdb.search(base=None, scope=SCOPE_BASE, attrs=["objectGUID"])
+ res = samdb.search(base=samdb.get_default_basedn(), scope=SCOPE_BASE, attrs=["objectGUID"])
guid = samdb.schema_format_value("objectGUID", res[0]['objectGUID'][0])
vars['DOMAINGUID'] = guid
am_rodc = samdb.am_rodc()