jcliff icon indicating copy to clipboard operation
jcliff copied to clipboard

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

Open mosegediLerato opened this issue 6 years ago • 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

mosegediLerato avatar Nov 28 '18 13:11 mosegediLerato

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?

bserdar avatar Nov 28 '18 15:11 bserdar

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

mosegediLerato avatar Nov 29 '18 09:11 mosegediLerato

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

bserdar avatar Nov 29 '18 17:11 bserdar