#4872 permission-add does not prompt --right option in interactive mode
Closed: Fixed None Opened 9 years ago by mkosek.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1186054

Description of problem:

when adding permission in interactive mode, not prompted to enter right, and so
permission-add fails

# ipa permission-add
Permission name: perm_one
[Subtree]: cn=groups,cn=accounts,dc=testrelm,dc=test
[Member of group]: admins
[Target group]: admins
[Type]:
ipa: ERROR: 'ipapermright' is required

Since --right is required, user should be prompted to enter it when adding
permission in interactive mode


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Use ipa permission-add to add a new permission, and follow prompts to enter
values


Actual results:
fails with error -
ipa: ERROR: 'ipapermright' is required

Expected results:
prompt to enter --right

Additional info:

Was able to add using:
# ipa permission-add --right=read
Permission name: perm_one
[Subtree]: cn=groups,cn=accounts,dc=testrelm,dc=test
[Member of group]: admins
[Target group]: admins
[Type]:
---------------------------
Added permission "perm_one"
---------------------------
  Permission name: perm_one
  Granted rights: read
  Bind rule type: permission
  Subtree: cn=groups,cn=accounts,dc=testrelm,dc=test
  Target DN: cn=admins,cn=groups,cn=accounts,dc=testrelm,dc=test
  Member of group: admins
  Target group: admins

Related to #2281. Although in this case it only complains that ipapermright should be required, which sounds sensible to me.

master:

  • 3117e7b permission-add does not prompt for ipapermright in interactive mode

ipa-4-1:

  • 0ffe759 permission-add does not prompt for ipapermright in interactive mode

Metadata Update from @mkosek:
- Issue assigned to rga
- Issue set to the milestone: FreeIPA 4.1.3

7 years ago

Login to comment on this ticket.

Metadata