880d21b828
- Allow the admin user to be disabled Resolves: RHEL-34756 - ipa-otptoken-import: open the key file in binary mode Resolves: RHEL-39616 - ipa-crlgen-manage: manage the cert status task execution time Resolves: RHEL-30280 - idrange-add: add a warning because 389ds restart is required Resolves: RHEL-28996 - PKINIT certificate: fix renewal on hidden replica Resolves: RHEL-4913, RHEL-45908 Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com>
14 lines
515 B
Diff
14 lines
515 B
Diff
diff --git a/ipaserver/install/ipa_otptoken_import.py b/ipaserver/install/ipa_otptoken_import.py
|
|
index b3f9347..75e8680 100644
|
|
--- a/ipaserver/install/ipa_otptoken_import.py
|
|
+++ b/ipaserver/install/ipa_otptoken_import.py
|
|
@@ -539,7 +539,7 @@ class OTPTokenImport(admintool.AdminTool):
|
|
|
|
# Load the keyfile.
|
|
keyfile = self.safe_options.keyfile
|
|
- with open(keyfile) as f:
|
|
+ with open(keyfile, "rb") as f:
|
|
self.doc.setKey(f.read())
|
|
|
|
def run(self):
|