summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2014-05-16 18:33:42 +0200
committerKai Blin <kai@samba.org>2014-05-21 10:55:00 +0200
commit634f116fbb89d723a627f4501b4cd89342cecb8e (patch)
tree3bb2147940faafa828a85d5c5eada65e30378340 /python
parent392ec4d241eb19c812cd49ff73bd32b2b09d8533 (diff)
downloadsamba-634f116fbb89d723a627f4501b4cd89342cecb8e.tar.gz
samba-634f116fbb89d723a627f4501b4cd89342cecb8e.tar.xz
samba-634f116fbb89d723a627f4501b4cd89342cecb8e.zip
provision: Correctly provision the SOA record minimum TTL
This fixes bug #10466 Signed-off-by: Kai Blin <kai@samba.org> Reviewed-by: Guenter Kukkukk <kukks@samba.org> Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Wed May 21 10:55:00 CEST 2014 on sn-devel-104
Diffstat (limited to 'python')
-rw-r--r--python/samba/provision/sambadns.py1
-rw-r--r--python/samba/tests/dns.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/python/samba/provision/sambadns.py b/python/samba/provision/sambadns.py
index 13e03aba5a5..f1cb1e2660a 100644
--- a/python/samba/provision/sambadns.py
+++ b/python/samba/provision/sambadns.py
@@ -130,6 +130,7 @@ class SOARecord(dnsp.DnssrvRpcRecord):
soa.expire = expire
soa.mname = mname
soa.rname = rname
+ soa.minimum = minimum
self.data = soa
diff --git a/python/samba/tests/dns.py b/python/samba/tests/dns.py
index 400321fe161..f93e13f36df 100644
--- a/python/samba/tests/dns.py
+++ b/python/samba/tests/dns.py
@@ -289,6 +289,7 @@ class TestSimpleQueries(DNSTest):
self.assert_dns_rcode_equals(response, dns.DNS_RCODE_OK)
self.assert_dns_opcode_equals(response, dns.DNS_OPCODE_QUERY)
self.assertEquals(response.ancount, 1)
+ self.assertEquals(response.answers[0].rdata.minimum, 3600)
class TestDNSUpdates(DNSTest):