mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Remove special characters in host_add random OTP generation
Fixes a regression in 4.5.0 where special character set was limited. Special characters in the OTP has caused issues in unattended installations where the OTP is not properly quoted or escaped. Expansion of the special character set in 4.5.0 release may cause existing user installation scripts to fail where they wouldn't otherwise. https://pagure.io/freeipa/issue/7380 Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
parent
d647072642
commit
eaa5be3eec
@ -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'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user