summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2012-03-23 16:26:54 +0100
committerMartin Kosek <mkosek@redhat.com>2012-03-23 16:55:20 +0100
commit5fce48d35989ad0f34c20f0e7b19b4e0fa3e91b7 (patch)
tree7945a7bf9ec045892741590e315f9b365b0a6bdf /ipalib
parentb6e6092f5c6b29dce6a2295addb0aeea51cbea23 (diff)
downloadfreeipa.git-5fce48d35989ad0f34c20f0e7b19b4e0fa3e91b7.tar.gz
freeipa.git-5fce48d35989ad0f34c20f0e7b19b4e0fa3e91b7.tar.xz
freeipa.git-5fce48d35989ad0f34c20f0e7b19b4e0fa3e91b7.zip
Fix default SOA serial format
RFC 1912 recommends format YYYYMMDDnn, we used YYYYDDMMnn. https://fedorahosted.org/freeipa/ticket/2567
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/dns.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py
index 96548099..f47b180a 100644
--- a/ipalib/plugins/dns.py
+++ b/ipalib/plugins/dns.py
@@ -227,8 +227,8 @@ def _rname_validator(ugettext, zonemgr):
return None
def _create_zone_serial(**kwargs):
- """Generate serial number for zones."""
- return int('%s01' % time.strftime('%Y%d%m'))
+ """ Generate serial number for zones. The format follows RFC 1912 """
+ return int('%s01' % time.strftime('%Y%m%d'))
def _reverse_zone_name(netstr):
net = netaddr.IPNetwork(netstr)