<html><body>
<p>Thanks.</p>
<p>Best regards, Ender</p>
<p>Wiadomość napisana przez Rob Crittenden <rcritten@redhat.com> w dniu 14 cze 2016, o godz. 13:56:</p>
<blockquote><p>Łukasz Jaworski wrote:</p>
<blockquote><p>Hi,</p>
<p>freeipa-client-4.2.4-1.fc23.x86_64 freeipa-server-4.2.4-1.fc23.x86_64</p>
<p>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 ‘-’</p>
<p>IMHO hyphens are not allowed: the first and last characters of a label (RFC 952 and 1123)</p>
<p>If I'm right, in validate_dns_label (util.py) should be something like this:</p>
<pre>diff util.py util.py.corrected 225c225 < label_regex =
r'^[%(base)s%(extra)s]([%(base)s%(extra)s%(middle)s]?[%(base)s%(extra)s])*$'
\</pre>
<pre>label_regex =
r'^[%(base)s%(extra)s]([%(base)s%(extra)s%(middle)s]+?[%(base)s%(extra)s])*$'
\</pre></blockquote>
<p>See <a href="https://u2049412.ct.sendgrid.net/wf/click?upn=d8cswn-2BnEH-2B7WbzLTEgT0E1WY4setDHks-2BN0BaUeSRkffPOVmnu1j4NL5AZQSJz11-2BIlHFn-2BrzA2teewCcbEdg-3D-3D_an4-2Fi8Vk1W4hjXglTw5zijKXOIRderaI8LFDnF-2FT8B3V92yGlXo2OZHI8jnDj-2F4GSfoAeql5dkDdLpSdNoo-2BLpHs-2B2Fezct7GowqCdUJizOHvPNdj1zGtNbsM50IoBdmoCmIJBlM9LesVAHisiNg-2Fd7xPWGcVnjSAEaNgNIjWz6haqZvvD2828KcVFq2E-2B3Wby3cPx5JlmMxEMQIh0-2FMg3HBKCFwboHMFi0VsH3b07k-3D">https://fedorahosted.org/freeipa/ticket/4710</a></p>
<p>rob</p></blockquote>

<img src="https://u2049412.ct.sendgrid.net/wf/open?upn=an4-2Fi8Vk1W4hjXglTw5zijKXOIRderaI8LFDnF-2FT8B3V92yGlXo2OZHI8jnDj-2F4GSfoAeql5dkDdLpSdNoo-2BLjbjouZvrqCy0n9cwKlu7NFd5lk8pw8GhsxHmlN-2FBP5D94JyG10dbr93jKjHyoRuESFTKrsGBHe1WetKs7av4p-2BifZ2B7KziKG5g5rEOvwn5iWo4TE-2FUr4L1rremlrO5PuV-2FxwwhMYJloGyUr2brXGo-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>