Samba4 DNS

From Stadm
Revision as of 15:05, 4 June 2014 by Stadm1 (talk | contribs) (Created page with "==DNS Entries for PDS== ==Find Variables== --- samba_dnsupdate 2014-06-04 15:58:59.324101278 -0700 +++ /root/scripts_samba/samba_dnsupdate 2014-06-04 15:41:38.683189142 -0...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

DNS Entries for PDS

Find Variables

--- samba_dnsupdate	2014-06-04 15:58:59.324101278 -0700
+++ /root/scripts_samba/samba_dnsupdate	2014-06-04 15:41:38.683189142 -0700
@@ -271,17 +271,9 @@ def get_subst_vars(samdb):
     vars['HOSTNAME']  = samdb.host_dns_name()
     vars['NTDSGUID']  = samdb.get_ntds_GUID()
     vars['SITE']      = samdb.server_site_name()
-    if opts.verbose:
-        print "INFO: DNSDOMAIN is :: %s" % vars['DNSDOMAIN']
-        print "INFO: DNSFOREST is :: %s" % vars['DNSFOREST']
-        print "INFO: HOSTNAME is :: %s" % vars['HOSTNAME']
-        print "INFO: NTDSGUID is :: %s" % vars['NTDSGUID']
-        print "INFO: SITE is :: %s" % vars['SITE']
     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
-    if opts.verbose:
-        print "INFO: DOMAINGUID is :: %s" % vars['DOMAINGUID']
     am_rodc = samdb.am_rodc()