URL:
https://github.com/freeipa/freeipa/pull/1501
Author: johnclarson
Title: #1501: fix-for-issue-7380
Action: opened
PR body:
"""
https://pagure.io/freeipa/issue/7380
From d5a28ed1aef2007828a0c3cfff9311233addb2a5 Mon Sep 17 00:00:00 2001
From: johnclarson <segfault@XXXXXXXX>
Date: Mon, 29 Jan 2018 11:12:06 -0500
Subject: [PATCH] Remove special characters from random host-add OTP password
as some are interpreted in unattended installs
---
ipaserver/plugins/host.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ipaserver/plugins/host.py b/ipaserver/plugins/host.py
index 6487cd612de96d11ed49b97425a31f22e481c98d..291a90a2abdaf6e95e96fb41889ce838d5f9b5f6
100644
--- a/ipaserver/plugins/host.py
+++ b/ipaserver/plugins/host.py
@@ -686,7 +686,7 @@ class host_add(LDAPCreate):
entry_attrs['objectclass'].remove('krbprincipal')
if options.get('random'):
entry_attrs['userpassword'] = ipa_generate_password(
- entropy_bits=TMP_PWD_ENTROPY_BITS)
+ entropy_bits=TMP_PWD_ENTROPY_BITS, special=None)
# save the password so it can be displayed in post_callback
setattr(context, 'randompassword',
entry_attrs['userpassword'])
--
1.8.3.1
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1501/head:pr1501
git checkout pr1501