[keycloak-user] admin user in clustered domain

Olivier Rivat orivat at janua.fr
Tue Jan 2 11:41:39 EST 2018


Hi Pedro,

It works fine. Tkx for your help.
I guess such a hint should be added to RH-SSO and keycloak documentation 
as well.

Regards,
Olivier


Le 02/01/2018 à 17:25, Pedro Igor Silva a écrit :
> Try creating a "configuration" directory for master server like this:
>
>      mkdir ${KEYCLOAK_HOME}/domain/servers/${server_name}/configuration
>
> Then copy "keycloak-add-user.json" to the directory above. Restart the 
> server.
>
>
> On Tue, Jan 2, 2018 at 12:13 PM, Olivier Rivat <orivat at janua.fr 
> <mailto:orivat at janua.fr>> wrote:
>
>     Hi,
>
>     I am re-sending my email question submitted last week with further
>     precisions.
>
>     other precision:
>
>     -standalone cluster works: both solutions works fine (GUI, CLI)
>     ===============
>     a) GUI :
>     I get a boot login screen asking to enter name of administrator we
>     want
>     to use, and password
>
>     b) Using CLI script:
>     file keycloak-add-user.json correctly uploaded
>
>     Domain cluster:
>     ==========
>     a) GUI mode:
>     I never get boot login screen asking to specify the administrator.
>     I get
>     immediately a normal login screen
>     where I am already supposed to know teh admin username
>
>     b) CLI Mode:
>     file keycloak-add-user.json is not uploaded
>
>     How is it possible to overcome this ?
>
>     Regards,
>     Olivier
>
>
>     Le 29/12/2017 à 15:03, Olivier Rivat a écrit :
>     >
>     > Hi,
>     >
>     > I am trying to setup a clustered domain.
>     > I have been to boot the master and the slave as described in
>     keycloak
>     >
>     > But when tring to login, I cannot with user admin.
>     >
>     > Troubleshooting I have done so far:
>     >
>     > 1) With standalone mode (or standalone cluster mode), first login
>     > screen is welcome screen to define teh admini user and password.
>     >
>     > With clustered domain, I never obtain this, but a usual login
>     screen,
>     > asking for username/password.
>     > Of course, I cannot answer to this, as the admin as not yet been
>     defined.
>     >
>     >
>     > 2) I have also tried teh script add-user-keycloak.sh
>     >
>     >
>     > bin/add-user-keycloak.sh -r master -u admin6 -p admin6  --domain
>     > Added 'admin6' to
>     >
>     '/home/orivat/rh_test/rh-sso-7.1/domain/configuration/keycloak-add-user.json',
>     > restart server to load user
>     > It creates a file domain/configuration/keycloak-add-user.json, but
>     > this file is never upon restart of RH-SSO domain cluster instance
>     > (master or slave).
>     >
>     > (I have seen equivalent file being loaded, when doing standalone
>     > clsueter tests).
>     >
>     >
>     > So my question is very simple:
>     > Ho is it possibel to get hold of an admin user allowing to
>     connect to
>     > the keycloak admin master login screen ?
>     >
>     >
>     > Regards,
>     >
>     > Olivier Rivat
>     >
>     >
>     > --
>     >
>     >
>     > <http://www.janua.fr/images/logo-big-sans.png
>     <http://www.janua.fr/images/logo-big-sans.png>><http://www.janua.fr/images/LogoSignature.gif
>     <http://www.janua.fr/images/LogoSignature.gif>>
>     >
>     >       <http://www.janua.fr/images/6g_top.gif
>     <http://www.janua.fr/images/6g_top.gif>>
>     >
>     > Olivier Rivat
>     > CTO
>     > orivat at janua.fr <mailto:orivat at janua.fr>
>     <mailto:dchikhaoui at janua.fr <mailto:dchikhaoui at janua.fr>>
>     > Gsm: +33(0)682 801 609 <tel:%2B33%280%29682%20801%20609>
>     > Tél: +33(0)489 829 238 <tel:%2B33%280%29489%20829%20238>
>     > Fax: +33(0)955 260 370 <tel:%2B33%280%29955%20260%20370>
>     > http://www.janua.fr <http://www.janua.fr/>
>     >       <http://www.janua.fr/images/6g_top.gif
>     <http://www.janua.fr/images/6g_top.gif>>
>     >
>     >
>
>     --
>
>
>     <http://www.janua.fr/images/logo-big-sans.png
>     <http://www.janua.fr/images/logo-big-sans.png>><http://www.janua.fr/images/LogoSignature.gif
>     <http://www.janua.fr/images/LogoSignature.gif>>
>
>             <http://www.janua.fr/images/6g_top.gif
>     <http://www.janua.fr/images/6g_top.gif>>
>
>     Olivier Rivat
>     CTO
>     orivat at janua.fr <mailto:orivat at janua.fr>
>     <mailto:dchikhaoui at janua.fr <mailto:dchikhaoui at janua.fr>>
>     Gsm: +33(0)682 801 609 <tel:%2B33%280%29682%20801%20609>
>     Tél: +33(0)489 829 238 <tel:%2B33%280%29489%20829%20238>
>     Fax: +33(0)955 260 370 <tel:%2B33%280%29955%20260%20370>
>     http://www.janua.fr <http://www.janua.fr/>
>             <http://www.janua.fr/images/6g_top.gif
>     <http://www.janua.fr/images/6g_top.gif>>
>
>
>     _______________________________________________
>     keycloak-user mailing list
>     keycloak-user at lists.jboss.org <mailto:keycloak-user at lists.jboss.org>
>     https://lists.jboss.org/mailman/listinfo/keycloak-user
>     <https://lists.jboss.org/mailman/listinfo/keycloak-user>
>
>

-- 


<http://www.janua.fr/images/logo-big-sans.png><http://www.janua.fr/images/LogoSignature.gif>

	<http://www.janua.fr/images/6g_top.gif>
	
Olivier Rivat
CTO
orivat at janua.fr <mailto:dchikhaoui at janua.fr>
Gsm: +33(0)682 801 609
Tél: +33(0)489 829 238
Fax: +33(0)955 260 370
http://www.janua.fr <http://www.janua.fr/>
	<http://www.janua.fr/images/6g_top.gif>




More information about the keycloak-user mailing list