#7599 Leading / trailing white spaces in password are disallowed
Closed: fixed by abbra. Opened by frenaud.

Ticket was cloned from Red Hat Bugzilla: Bug 1593745

Please note that this Bug is private and may not be accessible as it contains confidential Red Hat customer information.

Issue:
IdM appears to not allow for leading/trailing spaces in password.  We integrate
with a password management system that does allow for leading/trailing spaces
therefore, when an attempt to set the password enters our systems, IdM
disallows the request.
Reproducer:
[root@ipa ~]# ipa user-mod cpu --password
Password: "hemant " <=======add blank space
Enter Password again to verify: "hemant "
ipa: ERROR: invalid 'password': Leading and trailing spaces are not allowed
[root@ipa ~]#

Metadata Update from @frenaud:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1593745

Metadata Update from @frenaud:
- Issue tagged with: easyfix

PR: https://github.com/freeipa/freeipa/pull/5302

master:

  • 809d9cb80f5f4471f125823888f37875aa37809e Allow leading/trailing whitespaces in passwords
  • 57ec5f4cc26e2c4fcb5e6a538d1179b43f963572 ipatests: test that trailing/leading whitespaces in passwords are allowed

Metadata Update from @abbra:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

ipa-4-9:

  • 89eba7d38db2f510554b3365f9d099190ce80c51 Allow leading/trailing whitespaces in passwords
  • 3f3762ef92a809059f196e5553f1c31e9f1180e7 ipatests: test that trailing/leading whitespaces in passwords are allowed

Metadata Update from @abbra:
- Custom field changelog adjusted to Allow leading and trailing whitespaces in passwords set through IPA commands. They were already allowed via Kerberos and LDAP.
- Issue set to the milestone: None (was: FreeIPA 4.6.5)

Metadata