[Freeipa-devel] [PATCH] 0067 Use fqdn when creating msdcs SRV records

Martin Kosek mkosek at redhat.com
Thu Oct 3 12:15:27 UTC 2013


On 10/03/2013 12:21 PM, Petr Vobornik wrote:
> On 10/03/2013 10:48 AM, Martin Kosek wrote:
>> On 10/02/2013 05:24 PM, Martin Kosek wrote:
>>> On 10/02/2013 05:17 PM, Petr Vobornik wrote:
>>>> On 09/18/2013 06:42 PM, Ana Krivokapic wrote:
>>>>> Hello,
>>>>>
>>>>> This patch addresses ticket https://fedorahosted.org/freeipa/ticket/3908.
>>>>>
>>>>>
>>>>
>>>> The patch does what it advertises - it uses fqdn every time for mcsdcs SRV
>>>> records.
>>>>
>>>> It's not consistent with other DNS SRV records, where fqdn is used only when
>>>> IPA server is not in the IPA DNS domain.
>>>>
>>>> bindinstance.py uses this code to address the same issue:
>>>>
>>>>      host, zone = fqdn.split(".", 1)
>>>>
>>>>          if normalize_zone(zone) == normalize_zone(self.domain):
>>>>              host_in_rr = host
>>>>          else:
>>>>              host_in_rr = normalize_zone(fqdn)
>>>>
>>>> Alexander suggests the same solution
>>>> <https://fedorahosted.org/freeipa/ticket/3908#comment:1>
>>>
>>> Yes, I think we should be fixed.
>>>
>>> When I was looking at the AD SRV records using this patch, it just look
>>> confusing - some records relative, some were absolute. This could bite us later
>>> when for example removing or changing these records.
>>>
>>> Martin
>>>
>>
>> Given we need to fix that soon and Ana is away ATM, I am sending my candidate
>> patch - worked for me.
>>
>> Martin
>>
> 
> ACK with a little change:
> 
> -            host_in_rr = self.fqdn.split(".")[0]
> +            host_in_rr = host
> 
> 

Thanks. Fixed and pushed to master, ipa-3-3.

Martin




More information about the Freeipa-devel mailing list