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