Using hammer to create a satellite user-group authenticated via AD

Solution Unverified - Updated

Environment

Red Hat Satellite 6.8

Issue

  • Procedure described to create a satellite user group externally authenticated via AD led to wrong result

Resolution

  • Create the group 'satellite-admin' in the AD
  • Create the user group in satellite
# hammer user-group create --name "satellite-admin"
  • Find the auth ID as is conifgured in the satellite server

# hammer auth-source ldap list
-

ID | NAME     | SERVER   | PORT | LDAPS?
-|-|-|-|-

8  | AD Login | server.com | 636  | yes
-|-|-|-|-
  • Link internal user group with the external one created in the AD using the group names and the auth-source ID found before
# hammer user-group external create --name "satellite-admin" --user-group "satellite-admin" --auth-source-id 8

For more KB articles/solutions related to Red Hat Satellite 6.x hammer Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x hammer-related Issues

For more KB articles/solutions related to Red Hat Satellite 6.x Authentication Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Authentication Issues

Root Cause

  • Documentation is not entirely clear

Diagnostic Steps

  • Find if the auth source is correctly configured in the satellite server

# hammer auth-source ldap list
-

ID | NAME     | SERVER   | PORT | LDAPS?
-|-|-|-|-

8  | AD Login | server.com | 636  | yes
-|-|-|-|-
  • Create the group 'satellite-admin' in the AD

  • Creating the group 'satellite-admin' as per documentation in satellite and link it to the AD via hammer gives error

hammer user-group external create --name "satellite-admin" --user-group "satellite-admin" --auth-source-id 8
Could not create external user group:
Error: usergroup not found.
SBR
Product(s)
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.