Feature #18805
closedCreating external user-group does not have any option --auth-source as a input parameter.
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1417015
Description of problem:
In Hammer CLI, when we create external user-group, the only input parameter
available is --auth-source-id. No option available with --auth-source as a parameter.
#hammer user-group external create --help Usage: hammer user-group external create [OPTIONS] Options: --auth-source-id AUTH_SOURCE_ID ID of linked authentication source --name NAME External user group name --user-group USER_GROUP_NAME Name to search by --user-group-id USER_GROUP_ID -h, --help print help
Version-Release number of selected component (if applicable):
foreman 1.14
hammer-cli-foreman 0.8.0
How reproducible:
# hammer auth-source ldap list ---|----------|--------|------|--------------- ID | NAME | LDAPS? | PORT | SERVER TYPE ---|----------|--------|------|--------------- 3 | AD-AUTH | | 389 | AuthSourceLdap 5 | IPA-AUTH | | 389 | AuthSourceLdap 7 | rhel-idm | | 389 | AuthSourceLdap ---|----------|--------|------|--------------- # hammer user-group list ---|--------- ID | NAME ---|--------- 4 | onlyview ---|--------- # hammer user-group external list --user-group onlyview ---|-------------|------------ ID | NAME | AUTH SOURCE ---|-------------|------------ 2 | view-access | rhel-idm ---|-------------|------------ # hammer user-group external create --auth-source-id 7 --name view-access-1 --user-group onlyview External user group created # # hammer user-group external list --user-group onlyview ---|---------------|------------ ID | NAME | AUTH SOURCE ---|---------------|------------ 2 | view-access | rhel-idm 3 | view-access-1 | rhel-idm ---|---------------|------------ # hammer user-group external create --help Options: --auth-source-id AUTH_SOURCE_ID ID of linked authentication source --name NAME External user group name --user-group USER_GROUP_NAME Name to search by --user-group-id USER_GROUP_ID -h, --help print help
From the above we can see there is only one option to create external user-group i.e. --auth-source-id.
No option available with --auth-source-name or --auth-source as a input parameter.
Expected results:
auth-source-name or auth-source must be available as a input parameter.
Additional info:
This makes scripting the creation of external user-groups difficult as you must first parse the auth source list to find the id.
Updated by Tomáš Strachota almost 8 years ago
- Related to Feature #4356: Improve ways of passing auth source when creating a user added
Updated by Tomáš Strachota almost 8 years ago
- Blocked by Feature #18584: Api for listing all auth sources added
Updated by Tomáš Strachota almost 8 years ago
- Subject changed from Creating external user-group does not have any option --auth-source as a input parameter. to Creating external user-group does not have any option --auth-source as a input parameter.
- Category set to Users and roles
- Target version set to 115
Updated by Marek Hulán over 7 years ago
- Target version changed from 115 to 1.13.4
Updated by Marek Hulán over 7 years ago
- Target version changed from 1.13.4 to 1.14.0
Updated by Marek Hulán over 7 years ago
- Target version changed from 1.14.0 to 1.14.3
Updated by Dominik Hlavac Duran over 7 years ago
- Blocked by Bug #15286: Missing API for external auth sources added
Updated by Marek Hulán over 7 years ago
- Target version changed from 1.14.3 to 1.17.0-RC2
Updated by Marek Hulán over 7 years ago
- Target version changed from 1.17.0-RC2 to 1.18.0-RC2
Updated by Marek Hulán over 7 years ago
- Target version changed from 1.18.0-RC2 to 214
Updated by Marek Hulán over 7 years ago
- Target version changed from 214 to 1.16.0-RC2
Updated by Marek Hulán about 7 years ago
- Target version changed from 1.16.0-RC2 to 1.16.0-RC1
Updated by Marek Hulán about 7 years ago
- Target version changed from 1.16.0-RC1 to 1.16.2
Updated by Marek Hulán about 7 years ago
- Target version changed from 1.16.2 to 1.16.1
Updated by Marek Hulán about 7 years ago
- Target version changed from 1.16.1 to 238
Updated by Dominik Hlavac Duran almost 7 years ago
- Assignee changed from Daniel Lobato Garcia to Dominik Hlavac Duran
- Target version changed from 238 to 115
Updated by Dominik Hlavac Duran almost 7 years ago
- Status changed from New to Duplicate
- Pull request https://github.com/theforeman/foreman/pull/4865 added
Solved by PR -> https://github.com/theforeman/foreman/pull/4865