summaryrefslogtreecommitdiff
path: root/source4/scripting/bin/samba_upgradedns
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2012-04-02 17:15:09 +1000
committerAmitay Isaacs <amitay@samba.org>2012-04-02 10:56:10 +0200
commit13a4b7284753e7e52bad7dd19aa50327b886d845 (patch)
treeb17e8172fa47bc64a0a547f676df1ca51f66a934 /source4/scripting/bin/samba_upgradedns
parent2c322ca95a7dc4fb8396b475d115f31837316267 (diff)
downloadsamba-13a4b7284753e7e52bad7dd19aa50327b886d845.tar.gz
samba-13a4b7284753e7e52bad7dd19aa50327b886d845.tar.bz2
samba-13a4b7284753e7e52bad7dd19aa50327b886d845.zip
s4-upgradedns: Fix the fqdn for forest dns zone
Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Mon Apr 2 10:56:10 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4/scripting/bin/samba_upgradedns')
-rwxr-xr-xsource4/scripting/bin/samba_upgradedns2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/bin/samba_upgradedns b/source4/scripting/bin/samba_upgradedns
index 86172a762d..5a335a91f4 100755
--- a/source4/scripting/bin/samba_upgradedns
+++ b/source4/scripting/bin/samba_upgradedns
@@ -345,7 +345,7 @@ if __name__ == '__main__':
# Create DNS partitions if missing and fill DNS information
try:
expression = '(|(dnsRoot=DomainDnsZones.%s)(dnsRoot=ForestDnsZones.%s))' % \
- (dnsdomain, dnsdomain)
+ (dnsdomain, dnsforest)
msg = ldbs.sam.search(base=names.configdn, scope=ldb.SCOPE_DEFAULT,
expression=expression, attrs=['nCName'])
ncname = msg[0]['nCName'][0]