Adding LDAP authentication provider using hammer doesn't show up in webgui
Environment
- Red Hat Satellite 6.2
Issue
- Adding authentication provider in the WebUI shows up in hammer and webui
- Adding authentication provider with hammer shows up in hammer only
Resolution
hammerdoesn't set an organization / location pair by default- The webinterface usually limits the views to the selected organization / location
- Adding organization / location to the hammer command will solve the issue
For more KB articles/solutions related to Red Hat Satellite 6.x Authentication Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Authentication Issues
Diagnostic Steps
Adding an LDAP authentication source using hammer:
# hammer auth-source ldap create --name Test --base-dn "dc=example,dc=com" --host localhost
The provider is missing in https://satellite.example.com/auth_source_ldaps
Adding the LDAP authentication source with additional organization / location paramters:
# hammer auth-source ldap create --name Test --base-dn "dc=example,dc=com" --host localhost --organizations MyOrganization --locations MyLocation
The provider will be visible in the webui as long as the organization / location matches.
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.