- RHSSO installed using the (legacy)
RH Single Sign-Onoperator version 7.x on OpenShift - You install the RHSSO instance several times using the same database
- Typical use case: deployment with
helm installand thenhelm upgrade
- Typical use case: deployment with
- All login attempts to the RHSSO console fail with
Invalid username or passworderror message - As a side effect, the RHSSO operator might not be able to reconcile the updated custom resources with the RHSSO
configuration, with
Invalid user credentialserror
A new password is generated in the ADMIN_PASSWORD property of the credential-rhsso
Secret for the admin user, but the DB record storing the credential information for this user is not
updated with the same data.
Follow these instructions to reset the password for the admin user:
- In the RHSSO namespace, open the terminal console for the Pod
keycloak-0 - Run these commands to create a
testuser with passwordtest123:
/opt/eap/bin/add-user-keycloak.sh -u test -p test123
/opt/eap/bin/jboss-cli.sh --connect --command=reload- Login to the RHSSO console with the new
test/test123credentials - Reset the password of the
adminuser in theMasterrealm to match the value of theADMIN_PASSWORDproperty in thecredential-rhssoSecret - At the end, you can delete the
testuser in the Master realm