#5236 user-del --preserve does not support multiple params and --continue option
Closed: Fixed None Opened 8 years ago by mbasti.

User "caesar" does not exist.

I got:

ipa user-del caesar brutus --continue --preserve
ipa: ERROR: no such entry

Expected result:

ipa user-del caesar brutus --continue --preserve
-------------------
Deleted user "brutus"
-------------------
  Failed to remove: caesar

This also does not work, user-del --preserve with more users, deletes only first one, ignore others.

$ ipa user-del jsmith jdoe --preserve                                          
---------------------
Deleted user "jsmith"
---------------------

$ ipa user-show jdoe
  User login: jdoe
  First name: John
  Last name: Doe
  Home directory: /home/jdoe
  Login shell: /bin/sh
  Email address: jdoe@example.com
  UID: 1938400011
  GID: 1938400011
  Account disabled: False
  Password: False
  Member of groups: ipausers

$ ipa user-show jsmith
  User login: jsmith
  First name: Jenny
  Last name: Smith
  Home directory: /home/jsmith
  Login shell: /bin/sh
  Email address: jsmith@example.com
  UID: 1938400010
  GID: 1938400010
  Account disabled: True
  *Preserved user: True*
  Password: False
  Kerberos keys available: False

Fixed together with #5234.

Commits:
master:

  • c6299a8 improve the usability of ipa user-del --preserve command

ipa-4-2:

  • 361a4fb improve the usability of ipa user-del --preserve command

Metadata Update from @mbasti:
- Issue assigned to mbabinsk
- Issue set to the milestone: FreeIPA 4.2.1

7 years ago

Login to comment on this ticket.

Metadata