bserdar/jcliff

Add security domain to Red Hat Single Sign On (keycloak)

Opened this issue · 3 comments

When trying to add my own Database to the KeycloakDS, I get the error below:

2018-11-28 15:04:26:0211: stderr:
2018-11-28 15:04:26:0211: stdout:The batch failed with the following error (you are remaining in the batch editing mode to have a chance to correct the error):
WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:
Step: step-9
Operation: /subsystem=datasources/data-source=KeycloakDS:write-attribute(name=security-domain,value="KeycloakDS")
Failure: WFLYCTL0105: security-domain is invalid in combination with user-name
2018-11-28 15:04:26:0212: Return:The batch failed with the following error (you are remaining in the batch editing mode to have a chance to correct the error):
WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:
Step: step-9
Operation: /subsystem=datasources/data-source=KeycloakDS:write-attribute(name=security-domain,value="KeycloakDS")
Failure: WFLYCTL0105: security-domain is invalid in combination with user-name

I'm guessing here, but maybe you're setting user-name and security-domain, and it says "security domain is invalid in combination with user-name". Maybe you should not be setting user-name?

Hi bserdar,

We find Red Hat Single Sign-On 7.2.0 Server with KeyCloakDS already configure and they use the username and password (security) but we want to change some of it's values such as the database and also use the security-domain. We want to do all of this through puppet. Therefore I was hoping there is a way to remove the username and password when setting the security domain

Could you try setting username/pwd to "deleted" (in quotes)? or to undefined (not in quotes)?