[Freeipa-devel] [PATCH 3] ipa-client-install shouldn't be eager in specifying zone when doing nsupdate

Martin Basti mbasti at redhat.com
Thu Dec 4 11:47:58 UTC 2014


On 04/12/14 10:03, Jan Pazdziora wrote:
> On Wed, Dec 03, 2014 at 05:16:23PM +0100, Martin Basti wrote:
>> On 02/12/14 13:00, Jan Pazdziora wrote:
>>> Hello,
>>>
>>> presumably explicitly specifying zone is not needed and can be
>>> harmful.
>>>
>> This should be fixed in template for uploading SSHFP keys as well.
>>
>> I have zone bububu.test.
>>
>> 2014-12-03T04:00:36Z DEBUG debug
>> zone client.bububu.test.
>> update delete test.client.bububu.test. IN SSHFP
>> show
>> send
>> update add test.client.bububu.test. 1200 IN SSHFP 1 1
>> 8FD003E98D818E4E2813672234410835AB5844AC
>> update add test.client.bububu.test. 1200 IN SSHFP 1 2
>> 37BF6366A44B67F6CA8FF8A8313B7C964CEA971CCB3E092D775FDF082170AAA4
>> update add test.client.bububu.test. 1200 IN SSHFP 3 1
>> 3651173F6737DF24EB6494434AC5968B3C90B749
>> update add test.client.bububu.test. 1200 IN SSHFP 3 2
>> 97EF4030A9DD471A3D4730A819B3A662E11994BB20AFC56FC3875AB1662260BF
>> show
>> send
> Updated patch attached.
>
ACK
I just removed unused dict value.

@@ -1590,8 +1590,7 @@ def update_dns(server, hostname):

      sub_dict = dict(HOSTNAME=hostname,
                      IPADDRESS=ip,
-                    TTL=1200,
-                    ZONE='.'.join(hostname.split('.')[1:])
+                    TTL=1200
                  )

      if af == socket.AF_INET:


Patch with this update attached.

-- 
Martin Basti

-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-adelton+mbasti-0003.2-No-explicit-zone-specification.patch
Type: text/x-patch
Size: 1668 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20141204/fa9182e3/attachment.bin>


More information about the Freeipa-devel mailing list