When adding user via user-add CLI and setting a password, if the passwords do not match the user creation continues anyway, and the user is unable to log in. It is necessary for the administrator to subsequently execute ipa passwd to reset the user's password.
user-add
ipa passwd
% ipa user-add bob --first Bob --last Baker --password Password: foobar Enter Password again to verify: barfoo ** Passwords do not match! ** ---------------- Added user "bob" ---------------- User login: bob First name: Bob Last name: Baker Full name: Bob Baker Display name: Bob Baker Initials: BB Home directory: /home/bob GECOS: Bob Baker Login shell: /bin/sh Principal name: bob@IPA.LOCAL Principal alias: bob@IPA.LOCAL Email address: bob@ipa.local UID: 1398800004 GID: 1398800004 Password: False Member of groups: ipausers Kerberos keys available: False % kinit bob kinit: Pre-authentication failed: Invalid argument while getting initial credentials
User creation should NOT proceed when passwords don't match. Instead, the password prompt should be repeated.
master 9c208ea14db34dbadf5cdb1cdabf887105b7ae19
For me Its not proceeding with user creation. # ipa --version VERSION: 4.5.0, API_VERSION: 2.228 # ipa user-add bob --first Bob --last Baker --password Password: foobar Enter Password again to verify: barfoo ** Passwords do not match! ** Password:
# ipa --version
VERSION: 4.5.0, API_VERSION: 2.228
# ipa user-add bob --first Bob --last Baker --password
Password: foobar
Enter Password again to verify: barfoo
** Passwords do not match! **
Password:
I'm also unable to duplicate.
It is reproducible with master 9c208ea, probably linked to commit 8cb756a2295d046c22a52fb7a51e7a8c17c7f116
Metadata Update from @pvoborni: - Issue assigned to pvoborni
Metadata Update from @pvoborni: - Assignee reset - Issue tagged with: regression
Metadata Update from @rcritten: - Issue priority set to: critical - Issue set to the milestone: FreeIPA 4.6.4
https://github.com/freeipa/freeipa/pull/1622
master:
ipa-4-6:
Metadata Update from @cheimes: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)