From d2ffd176176e20860998d29ede4e9bd65f398bf2 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Thu, 13 Nov 2014 18:22:22 +0100 Subject: Fix: zonemgr must be unicode value To support IDNA --zonemgr option must be unicode not ascii https://fedorahosted.org/freeipa/ticket/4724 Reviewed-By: David Kupka --- ipaserver/install/bindinstance.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipaserver/install/bindinstance.py') diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py index 16894de0a..5bf784e62 100644 --- a/ipaserver/install/bindinstance.py +++ b/ipaserver/install/bindinstance.py @@ -403,6 +403,8 @@ def zonemgr_callback(option, opt_str, value, parser): """ # validate the value first try: + # IDNA support requires unicode + value = value.decode(sys.stdin.encoding) validate_zonemgr_str(value) except ValueError, e: parser.error("invalid zonemgr: " + unicode(e)) -- cgit