<html><body>
<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>
<h3>diff util.py util.py.corrected 225c225 < label_regex = r'^[%(base)s%(extra)s]([%(base)s%(extra)s%(middle)s]?[%(base)s%(extra)s])*$' \</h3>
<blockquote><p>label_regex = r'^[%(base)s%(extra)s]([%(base)s%(extra)s%(middle)s]+?[%(base)s%(extra)s])*$' \</p></blockquote>
<p>Best regards, Łukasz Jaworski “Ender”</p>
<img src="https://u2049412.ct.sendgrid.net/wf/open?upn=an4-2Fi8Vk1W4hjXglTw5zijKXOIRderaI8LFDnF-2FT8B0isYAd1anSHT0fInUh2OzBqjPbZcZzqGY-2FtwRrvUrCr8LKatuD5ljWLl14H3tN0KCxQy4blmEZ-2B-2BIao39M3ZbvSS8VyUxaP8U8oKRg5DLbTPLiJZLuKYkqt-2BnNpWyEkLDJAHI3H6Laea6f7gOalaxwTRnuBGIumYmpXf5cOt9T8mIv-2FLy0z7ORChURXXjy-2FZ8-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>