[Freeipa-devel] [PATCH 0138] replica-install: Compare domain names as DNS names and not string

Petr Spacek pspacek at redhat.com
Mon Jun 27 12:02:30 UTC 2016


On 27.6.2016 11:20, Petr Spacek wrote:
> On 27.6.2016 10:30, Martin Basti wrote:
>> > 
>> > 
>> > On 23.06.2016 18:32, Petr Spacek wrote:
>>> >> Hello,
>>> >>
>>> >> replica-install: Compare domain names as DNS names and not strings
>>> >>
>>> >> This fixes false possitive where user inputs "example.com" and "EXAMPLE.COM"
>>> >> were not considered equivalent and installation was wrongly refused.
>>> >>
>>> >> https://fedorahosted.org/freeipa/ticket/5976
>>> >>
>> > 
>> > NACK, client installer should normalize domain name as host-add does, because
>> > it will blow up in different places, we cannot compare this part as DNS name
>> > when other parts works with it as strings
>> > 
>> > ipa.ipapython.install.cli.install_tool(Replica): ERROR    Cannot promote this
>> > client to a replica. Local domain 'ipa.example.COM' does not match IPA domain
>> > 'ipa.example.com'.
> Okay, I will use the same validator as ipa-server-install and normalize it as
> you suggested.

Here you go. I was not able to find a corner case which would break this.

-- 
Petr^2 Spacek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pspacek-0138-2-client-Share-validator-and-domain-name-normalization.patch
Type: text/x-patch
Size: 1588 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160627/ecaa0892/attachment.bin>


More information about the Freeipa-devel mailing list