On 12.9.2011 22:13, Rob Crittenden wrote:
Alexander Bokovoy wrote:
On Mon, 12 Sep 2011, Rob Crittenden wrote:
Limit hostnames to letters, digits and - with a max length of 255
takes_params = (
+ pattern_errmsg='may only include letters, numbers, and -',
What about IDN hosts? With this change we would require them to be
always in Punycode?
Oh, hadn't considered that, I was just following the relevent RFCs. Is
there a way we can easily support those as well?
The easiest way would probably be:
normalizer=lambda value: unicode(value.encode('idna'))
Freeipa-devel mailing list