Bug 1009670

Summary: cannot create IDN entry in DNS
Product: [Fedora] Fedora Reporter: Tomasz Torcz <tomek>
Component: freeipaAssignee: Martin Bašti <mbasti>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: abokovoy, mkosek, pspacek, pviktori, rcritten, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-09 08:05:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomasz Torcz 2013-09-18 20:22:39 UTC
Description of problem:
When I try to add punycode-encoded IDN name into FreeIPA managed DNS, I get following error:

#v+
Record name: xn--dogstaff-33b
>>> Record name: only letters, numbers, _, and - are allowed. DNS label may not start or end with -
#v-

looks like regex in util.py:validate_dns_label() is too restrictive.

Version-Release number of selected component (if applicable):
freeipa-python-3.3.0-2.fc19.x86_64

How reproducible:
Always.

Comment 1 Rob Crittenden 2013-09-18 20:26:19 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/3169

Comment 2 Rob Crittenden 2013-09-18 20:27:15 UTC
punycode is not yet supported by IPA.

Comment 4 Petr Viktorin (pviktori) 2014-07-09 08:05:42 UTC
Fixed in FreeIPA 4.0.0 (Rawhide/Fedora 21)