#9068 --desc in automember-default-group-set and automember-default-group-remove
Closed: fixed 2 years ago by frenaud. Opened 2 years ago by twoerner.

Issue

The help of automember-default-group-set and automember-default-group-remove contains '--desc' "A description of this auto member rule". But running the commands is failing using '--desc'. Having '--desc' for the commands does not really make sense.

# ipa automember-default-group-set --help
Usage: ipa [global-options] automember-default-group-set [options]

Set default (fallback) group for all unmatched entries.
Options:
  -h, --help            show this help message and exit
  --desc=STR            A description of this auto member rule
  --default-group=STR   Default (fallback) group for entries to land
  --type=['group', 'hostgroup']
                        Grouping to which the rule applies
  --all                 Retrieve and print all attributes from the server.
                        Affects command output.
  --raw                 Print entries as stored on the server. Only affects
                        output format.

# ipa automember-default-group-remove --help
Usage: ipa [global-options] automember-default-group-remove [options]

Remove default (fallback) group for all unmatched entries.
Options:
  -h, --help            show this help message and exit
  --desc=STR            A description of this auto member rule
  --type=['group', 'hostgroup']
                        Grouping to which the rule applies
  --all                 Retrieve and print all attributes from the server.
                        Affects command output.
  --raw                 Print entries as stored on the server. Only affects
                        output format.

Using '--desc' results in

# ipa automember-default-group-set --desc=fooooo --type=group --default-group=testgroup
ipa: ERROR: attribute "description" not allowed

# ipa automember-default-group-remove --desc=fooooo --type=group
ipa: ERROR: attribute "description" not allowed

Version/Release/Distribution

$ rpm -q freeipa-server freeipa-client ipa-server ipa-client 389-ds-base pki-ca krb5-server
89-ds-base pki-ca krb5-server
freeipa-server-4.9.6-4.fc34.x86_64
freeipa-client-4.9.6-4.fc34.x86_64
package ipa-server is not installed
package ipa-client is not installed
389-ds-base-2.0.11-2.fc34.x86_64
pki-ca-10.10.7-1.fc34.noarch
krb5-server-1.19.2-2.fc34.x86_64


Metadata Update from @frenaud:
- Issue assigned to frenaud

2 years ago

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/6129

2 years ago

master:

  • 189d090 automember default group: remove --desc parameter

ipa-4-9:

  • 6ff7491 automember default group: remove --desc parameter

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

2 years ago

Login to comment on this ticket.

Metadata