Re: [Freeipa-users] ipa: ERROR: invalid 'hostname': invalid domain-name: only letters, numbers, '-' are allowed. DNS label may not start or end with '-'

2016-06-14 Thread Łukasz Jaworski
Thanks.

Best regards,
Ender

Wiadomość napisana przez Rob Crittenden  w dniu 14 cze 
2016, o godz. 13:56:

> Łukasz Jaworski wrote:
>> Hi,
>> 
>> freeipa-client-4.2.4-1.fc23.x86_64 freeipa-server-4.2.4-1.fc23.x86_64
>> 
>> I've tried add hostname with multiple hyphens. Sth like:
>> example--name-of-host.example.com. Output is: ipa: ERROR: invalid
>> ‘hostname’: invalid domain-name: only letters, numbers, ‘-’ are allowed.
>> DNS label may not start or end with ‘-’
>> 
>> IMHO hyphens are not allowed: the first and last characters of a label
>> (RFC 952 and 1123)
>> 
>> If I'm right, in validate_dns_label (util.py) should be something like this:
>> 
>> 
>>  diff util.py util.py.corrected 225c225 < label_regex =
>>  
>> r'^[%(base)s%(extra)s]([%(base)s%(extra)s%(middle)s]?[%(base)s%(extra)s])*$'
>>  \
>> 
>>label_regex =
>>
>> r'^[%(base)s%(extra)s]([%(base)s%(extra)s%(middle)s]+?[%(base)s%(extra)s])*$'
>>\
> 
> See 
> https://u2049412.ct.sendgrid.net/wf/click?upn=d8cswn-2BnEH-2B7WbzLTEgT0E1WY4setDHks-2BN0BaUeSRkffPOVmnu1j4NL5AZQSJz11-2BIlHFn-2BrzA2teewCcbEdg-3D-3D_an4-2Fi8Vk1W4hjXglTw5zijKXOIRderaI8LFDnF-2FT8B3V92yGlXo2OZHI8jnDj-2F4GSfoAeql5dkDdLpSdNoo-2BLrNmlfLJCTDqx2vIUS5iVOhvTPQEdtjoftVAz03IHNlO5HSli58l2DF6kpdgY7paaTVkbt70zgAI2bXtgtCjg1m7g7VRTyPTS9YXtJTrNXb-2B9GVDSMNn-2B8MiT-2FDUXEFjYucsxyrrqi7VrCmfGQOtuEM-3D
> 
> rob

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project

Re: [Freeipa-users] ipa: ERROR: invalid 'hostname': invalid domain-name: only letters, numbers, '-' are allowed. DNS label may not start or end with '-'

2016-06-14 Thread Rob Crittenden

Łukasz Jaworski wrote:

Hi,

freeipa-client-4.2.4-1.fc23.x86_64 freeipa-server-4.2.4-1.fc23.x86_64

I've tried add hostname with multiple hyphens. Sth like:
example--name-of-host.example.com. Output is: ipa: ERROR: invalid
‘hostname’: invalid domain-name: only letters, numbers, ‘-’ are allowed.
DNS label may not start or end with ‘-’

IMHO hyphens are not allowed: the first and last characters of a label
(RFC 952 and 1123)

If I'm right, in validate_dns_label (util.py) should be something like this:


  diff util.py util.py.corrected 225c225 < label_regex =
  
r'^[%(base)s%(extra)s]([%(base)s%(extra)s%(middle)s]?[%(base)s%(extra)s])*$'
  \

label_regex =

r'^[%(base)s%(extra)s]([%(base)s%(extra)s%(middle)s]+?[%(base)s%(extra)s])*$'
\


See https://fedorahosted.org/freeipa/ticket/4710

rob

--
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project

[Freeipa-users] ipa: ERROR: invalid 'hostname': invalid domain-name: only letters, numbers, '-' are allowed. DNS label may not start or end with '-'

2016-06-13 Thread Łukasz Jaworski
Hi,

freeipa-client-4.2.4-1.fc23.x86_64
freeipa-server-4.2.4-1.fc23.x86_64

I've tried add hostname with multiple hyphens. Sth like: 
example--name-of-host.example.com.
Output is: ipa: ERROR: invalid 'hostname': invalid domain-name: only letters, 
numbers, '-' are allowed. DNS label may not start or end with '-'

IMHO hyphens are not allowed: the first and last characters of
a label (RFC 952 and 1123)

If I'm right, in validate_dns_label (util.py) should be something like this:

diff util.py util.py.corrected
225c225
< label_regex = 
r'^[%(base)s%(extra)s]([%(base)s%(extra)s%(middle)s]?[%(base)s%(extra)s])*$' \
---
> label_regex = 
> r'^[%(base)s%(extra)s]([%(base)s%(extra)s%(middle)s]+?[%(base)s%(extra)s])*$' 
> \

Best regards,
Łukasz Jaworski "Ender"

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project