[keycloak-user] Creating initial admin usr to login to master realm

Upananda Singha upananda.singha at motorolasolutions.com
Wed Feb 7 05:26:16 EST 2018


Hi Marko,

Thanks for the quick reply.
By the way I resolved the User creation issue.

Followed the following steps:
1. sh bin/add-user-keycloak.sh -r master -u <USER> -p <PWD> --domain
2. copied "keycloak-3.4.3.Final/domain/configuration/keycloak-add-user.json"
 file to respective server instances under
"keycloak-3.4.3.Final/domain/servers/server-one/configuration/"
3. Restarted the server in domain mode.

And I am able to login now into master realm.

Thanks & Regds,

*Upananda Singha*



On Wed, Feb 7, 2018 at 3:13 PM, Marko Strukelj <mstrukel at redhat.com> wrote:

> Ssh to remote machine and use instructions in
> http://www.keycloak.org/docs/latest/server_admin/index.
> html#server-initialization
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.keycloak.org_docs_latest_server-5Fadmin_index.html-23server-2Dinitialization&d=DwMFaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=fnL-WrNGfASFY7eMCgEWnE1LbeED__ZIPJpCDtbxlttGlAbO8wOPfPe7UlrYdGpD&m=P1HxtVGdU3rOxIszKNyglogM4dASV6s6Qf_7Mw7XNoc&s=uNEJzRB5TGtnvmP1bZBVv9ZSyKY8u3laRUp2MOaGTtU&e=>
>
> kcadm tool is not used for that. There is no known issues with kcadm tool
> and java 1.8.
>
> On Wed, Feb 7, 2018 at 10:24 AM, Upananda Singha <upananda.singha@
> motorolasolutions.com> wrote:
>
>> Also, I am trying this with Domain configuration and not stand-alone.
>>
>>
>> Thanks & Regds,
>>
>> *Upananda Singha*
>>
>>
>>
>> On Wed, Feb 7, 2018 at 2:43 PM, Upananda Singha <
>> upananda.singha at motorolasolutions.com> wrote:
>>
>> > Hi,
>> >
>> > Can anybody quickly let me know how to create Keycloak initial admin
>> > user/pwd
>> > if Keycloak is installed on a remote machine (linux) and can't access
>> > locally
>> > using localhost:<port>?
>> >
>> > What is the use of Admin CLI (kcadm.sh)? on executing this script I get
>> > Java Major minor version problem.
>> >
>> > *I am using  "jdk1.8.0_121". Does kcadm.sh has any issue with JDK 1.8?*
>> >
>> >
>> > Thanks & Regds,
>> >
>> > *Upananda Singha*
>> >
>> _______________________________________________
>> keycloak-user mailing list
>> keycloak-user at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.jboss.org_mailman_listinfo_keycloak-2Duser&d=DwMFaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=fnL-WrNGfASFY7eMCgEWnE1LbeED__ZIPJpCDtbxlttGlAbO8wOPfPe7UlrYdGpD&m=P1HxtVGdU3rOxIszKNyglogM4dASV6s6Qf_7Mw7XNoc&s=z4NOtWmJn6Cd_0N1jgG6wtg42sv-3lpOu5z28bAAwRc&e=>
>>
>
>


More information about the keycloak-user mailing list