[Freeipa-devel] [PATCH 0070] Normalization check only for IDNA domains

Alexander Bokovoy abokovoy at redhat.com
Mon Jun 30 13:16:23 UTC 2014


On Mon, 30 Jun 2014, Martin Basti wrote:
>> >We can use 'label = label.encode("ascii")' to detect if IDNA is needed,
>> >without idna.ToASCII() conversion, and then use:
>> >
>> >is_nonnorm = any(encodings.idna.nameprep(x) != x for x in labels)
>> Sounds good but don't forget exceptions' handling. :)
>>
>
>Updated patch attached.
>
>I modified error messages, IDNA mapping is not only mapping to lowercase
Looks good to me.

-- 
/ Alexander Bokovoy




More information about the Freeipa-devel mailing list