#4334 Bad error message when adding password policy for non-existent group
Closed: Fixed None Opened 9 years ago by rcritten.

If you try to add a group password policy for a non-existent group you get a bad error message:

$ ipa pwpolicy-add internet_facing --maxlife=30 --minlife=1 --history=10 --minclasses=3 --minlength=10 --priority=1 --maxfail=3 --failinterval=360
ipa: ERROR: no such entry

Adding the group and this succeeds

$ ipa group-add internet_facing
Description: test    
-----------------------------
Added group "internet_facing"
-----------------------------
  Group name: internet_facing
  Description: test
  GID: 322400069
$ ipa pwpolicy-add internet_facing --maxlife=30 --minlife=1 --history=10 --minclasses=3 --minlength=10 --priority=1 --maxfail=3 --failinterval=360
  Group: internet_facing
  Max lifetime (days): 30
  Min lifetime (hours): 1
  History size: 10
  Character classes: 3
  Min length: 10
  Priority: 1
  Max failures: 3
  Failure reset interval: 360

master:

  • a2eab05 pwpolicy-add: Added better error handling

Metadata Update from @rcritten:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 4.2 Backlog

7 years ago

Login to comment on this ticket.

Metadata