mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
Do not allow '%' in DM password
Having '%' in DM password causes pkispawn to crash. Do not allow users to enter it until pkispawn is fixed. https://bugzilla.redhat.com/show_bug.cgi?id=953488
This commit is contained in:
parent
80886a50e6
commit
1480cf1603
@ -110,7 +110,7 @@ def validate_dm_password(password):
|
|||||||
raise ValueError("Password must only contain ASCII characters")
|
raise ValueError("Password must only contain ASCII characters")
|
||||||
|
|
||||||
# Disallow characters that pkisilent doesn't process properly:
|
# Disallow characters that pkisilent doesn't process properly:
|
||||||
bad_characters = ' &\\<'
|
bad_characters = ' &\\<%'
|
||||||
if any(c in bad_characters for c in password):
|
if any(c in bad_characters for c in password):
|
||||||
raise ValueError('Password must not contain these characters: %s' %
|
raise ValueError('Password must not contain these characters: %s' %
|
||||||
', '.join('"%s"' % c for c in bad_characters))
|
', '.join('"%s"' % c for c in bad_characters))
|
||||||
|
Loading…
Reference in New Issue
Block a user