[Freeipa-devel] [PATCH] 23 Allow one letter net/hostgroups names

Ondrej Hamada ohamada at redhat.com
Thu May 3 15:08:11 UTC 2012


On 05/02/2012 05:49 PM, Ondrej Hamada wrote:
> https://fedorahosted.org/freeipa/ticket/2671
>
> Changed regex validating net/hostgroup names to allow single letter
> names. Unit-tests added.
>
> But the current validation allows weird (host|net)group names like: 
> ".",  ".-", "..".
> I'm just not sure, do we really want to allow stuff like this?
>
> Patch also fixes one of netgroup and host unit-tests. The error
> message in hostname validation function has changed (in ticket #1966).
>
>
>
> _______________________________________________
> Freeipa-devel mailing list
> Freeipa-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/freeipa-devel
The unit-test for #1966 were corrected by Petr³. Rebased patch attached.

-- 
Regards,

Ondrej Hamada
FreeIPA team
jabber: ohama at jabbim.cz
IRC: ohamada

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20120503/1d828f42/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-ohamada-23-2-Allow-one-letter-net-hostgroups-names.patch
Type: text/x-patch
Size: 17534 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20120503/1d828f42/attachment.bin>


More information about the Freeipa-devel mailing list