From: Stephen Gran Date: Sun, 23 Aug 2009 12:24:17 +0000 (+0100) Subject: we're not ready to write the debian.net entries in the ldap hosts tree X-Git-Tag: userdir-ldap-0.3.71~3 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=8e375e4a9b96d99d643f2b39e6b159e718b54312 we're not ready to write the debian.net entries in the ldap hosts tree Signed-off-by: Stephen Gran --- diff --git a/ud-generate b/ud-generate index 0b67ff8..334af5d 100755 --- a/ud-generate +++ b/ud-generate @@ -753,26 +753,26 @@ def GenDNS(File): try: F = open(File + ".tmp", "w") - global HostAttrs - - for x in HostAttrs: - if x[1].has_key("hostname") == 0 or \ - x[1].has_key("architecture") == 0 or\ - x[1].has_key("sshRSAHostKey") == 0: - continue - - if IsDebianHost.match(GetAttr(x, "hostname")) is not None: - continue - - DNSInfo = ExtractDNSInfo(x) - start = True - for Line in DNSInfo: - if start == True: - Line = "%s.\t%s" % (GetAttr(x, "hostname"), Line) - start = False - else: - Line = "\t\t\t%s" % (Line) - F.write(Line + "\n") +# global HostAttrs +# +# for x in HostAttrs: +# if x[1].has_key("hostname") == 0 or \ +# x[1].has_key("architecture") == 0 or\ +# x[1].has_key("sshRSAHostKey") == 0: +# continue +# +# if IsDebianHost.match(GetAttr(x, "hostname")) is not None: +# continue +# +# DNSInfo = ExtractDNSInfo(x) +# start = True +# for Line in DNSInfo: +# if start == True: +# Line = "%s.\t%s" % (GetAttr(x, "hostname"), Line) +# start = False +# else: +# Line = "\t\t\t%s" % (Line) +# F.write(Line + "\n") # Fetch all the users global PasswdAttrs diff --git a/ud-replicate b/ud-replicate index 765cc3a..e59391f 100755 --- a/ud-replicate +++ b/ud-replicate @@ -169,11 +169,11 @@ if [ -e /var/lib/misc/thishost/dns-sshfp ]; then fi fi -if [ -e /var/lib/misc/thishost/dns-zone ]; then - if cmp /var/lib/misc/thishost/dns-zone $tempfile2; then - rndc_reload=1 - fi -fi +#if [ -e /var/lib/misc/thishost/dns-zone ]; then +# if cmp /var/lib/misc/thishost/dns-zone $tempfile2; then +# rndc_reload=1 +# fi +#fi # FIXME: # this needs to rebuild the zone file with a new serial so it can replicate.