diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-08-22 17:41:08 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-08-25 07:39:38 +1000 |
commit | 717706cb9691d435071c9883b3da649fcada2ea6 (patch) | |
tree | c35d2b30958bff0090ccafc3f3f6748c6ed8ac00 /source4/scripting/bin/samba_dnsupdate | |
parent | 219271bd154817ccf0cb4706769e07eb5dfa11ee (diff) | |
download | samba-717706cb9691d435071c9883b3da649fcada2ea6.tar.gz samba-717706cb9691d435071c9883b3da649fcada2ea6.tar.bz2 samba-717706cb9691d435071c9883b3da649fcada2ea6.zip |
s4-dns/spn: fixed DNS and SPN scripts to setup forest DNS name
Diffstat (limited to 'source4/scripting/bin/samba_dnsupdate')
-rwxr-xr-x | source4/scripting/bin/samba_dnsupdate | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate index 9f37034827..9609fe992b 100755 --- a/source4/scripting/bin/samba_dnsupdate +++ b/source4/scripting/bin/samba_dnsupdate @@ -225,9 +225,9 @@ def get_subst_vars(): samdb = SamDB(url=lp.samdb_url(), session_info=system_session(), lp=lp) - vars['DNSDOMAIN'] = lp.get('realm').lower() - vars['DNSFOREST'] = lp.get('realm').lower() - vars['HOSTNAME'] = lp.get('netbios name').lower() + "." + vars['DNSDOMAIN'] + vars['DNSDOMAIN'] = samdb.domain_dns_name() + vars['DNSFOREST'] = samdb.forest_dns_name() + vars['HOSTNAME'] = samdb.host_dns_name() vars['NTDSGUID'] = samdb.get_ntds_GUID() vars['SITE'] = samdb.server_site_name() res = samdb.search(base=samdb.get_default_basedn(), scope=SCOPE_BASE, attrs=["objectGUID"]) |