[Freeipa-users] ipa: ERROR: invalid 'hostname': invalid domain-name: only letters, numbers, '-' are allowed. DNS label may not start or end with '-'
Łukasz Jaworski
ender at kofeina.net
Tue Jun 14 12:00:55 UTC 2016
Thanks.
Best regards,
Ender
Wiadomość napisana przez Rob Crittenden <rcritten at redhat.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/freeipa-users/attachments/20160614/8a76dd8a/attachment.htm>
More information about the Freeipa-users
mailing list