Re: [Freeipa-devel] [PATCH] 871 add hostname regex

2011-09-27 Thread Martin Kosek
On Thu, 2011-09-22 at 14:25 -0400, Rob Crittenden wrote: > Rob Crittenden wrote: > > Rob Crittenden wrote: > >> Alexander Bokovoy wrote: > >>> On Tue, 13 Sep 2011, Jan Cholasta wrote: > >> What about IDN hosts? With this change we would require them to be > >> always in Punycode? > >> >

Re: [Freeipa-devel] [PATCH] 871 add hostname regex

2011-09-22 Thread Rob Crittenden
Rob Crittenden wrote: Rob Crittenden wrote: Alexander Bokovoy wrote: On Tue, 13 Sep 2011, Jan Cholasta wrote: 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 easi

Re: [Freeipa-devel] [PATCH] 871 add hostname regex

2011-09-21 Thread Rob Crittenden
Rob Crittenden wrote: Alexander Bokovoy wrote: On Tue, 13 Sep 2011, Jan Cholasta wrote: 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 wel

Re: [Freeipa-devel] [PATCH] 871 add hostname regex

2011-09-14 Thread Rob Crittenden
Alexander Bokovoy wrote: On Tue, 13 Sep 2011, Jan Cholasta wrote: 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 wo

Re: [Freeipa-devel] [PATCH] 871 add hostname regex

2011-09-13 Thread Alexander Bokovoy
On Tue, 13 Sep 2011, Jan Cholasta wrote: > >>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 p

Re: [Freeipa-devel] [PATCH] 871 add hostname regex

2011-09-13 Thread Jan Cholasta
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 = ( Str('fqdn', validate_host, + pattern='^[a-zA-Z0-9][a-zA-Z0-9-\.]{0,254}$', + pattern_errmsg='may onl

Re: [Freeipa-devel] [PATCH] 871 add hostname regex

2011-09-12 Thread Alexander Bokovoy
On Mon, 12 Sep 2011, 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 = ( > >> Str('fqdn', validate_host, > >>+pattern='^[a-zA-Z0

Re: [Freeipa-devel] [PATCH] 871 add hostname regex

2011-09-12 Thread Rob Crittenden
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 = ( Str('fqdn', validate_host, +pattern='^[a-zA-Z0-9][a-zA-Z0-9-\.]{0,254}$', +pattern_errmsg='may only inc

Re: [Freeipa-devel] [PATCH] 871 add hostname regex

2011-09-12 Thread Alexander Bokovoy
On Mon, 12 Sep 2011, Rob Crittenden wrote: > Limit hostnames to letters, digits and - with a max length of 255 > > takes_params = ( > Str('fqdn', validate_host, > +pattern='^[a-zA-Z0-9][a-zA-Z0-9-\.]{0,254}$', > +pattern_errmsg='may only include letters, num

[Freeipa-devel] [PATCH] 871 add hostname regex

2011-09-12 Thread Rob Crittenden
Limit hostnames to letters, digits and - with a max length of 255 rob >From 1100e0981eaf36829fa88b3859c50e1a3a76b43c Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 12 Sep 2011 13:51:31 -0400 Subject: [PATCH] Add regular expression pattern to host names. Limit hostnames to letters, dig