Changes between Version 2 and Version 3 of guiiam2018


Ignore:
Timestamp:
Sep 17, 2018, 5:57:03 AM (6 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • guiiam2018

    v2 v3  
    88
    99* Download and install
    10    The latest version of Apache Directory Studio can be downloaded to your host machine from the Apache Directory Studio Downloads page, at this address : http://directory.apache.org/studio/downloads.html  or the local copy from {here  }.
     10   The latest version of Apache Directory Studio can be downloaded to your host machine from the Apache Directory Studio Downloads page, at this address : http://directory.apache.org/studio/downloads.html
    1111
    1212   Installation steps https://directory.apache.org/studio/users-guide/apache_directory_studio/download_install.html
     
    8383
    8484
    85 2/ Keycloak Server (For End Users)
     85== Keycloak Server (For End Users) ==
    8686
    87 Keycloak is an open source identity and access management solution, we will use keycloak to provide a friendly self care portal to users allowing services such as password resets.
     87Keycloak is an open source identity and access management solution, we will use keycloak only to provide a friendly self care portal to users allowing services such as password resets.
    8888
    89 wget https://downloads.jboss.org/keycloak/4.4.0.Final/keycloak-4.4.0.Final.tar.gz
    90 tar -xvzf keycloak-4.4.0.Final.tar.gz
    91 cd keycloak-4.3.0.Final/bin/
    92 ./add-user-keycloak.sh -r master -u ###UserName### -p ###Password###
    93 vim standalone/configuration/standalone.xml
    94 ./standalone.sh -b 0.0.0.0 &
     89We will install Keycloak in your idp vm for the lab purpose but it is recommended to install it on a separate server with at least 4GB RAM for production environment.
     90
     91* Install Dependancies
     92   * Become the root user by `sudo su`
     93   * `apt-get install vim default-jdk`
     94   * Define the constant `JAVA_HOME` inside /etc/environment:
     95      * `update-alternatives --config java`
     96        (copy the path without /bin/java)
     97      * `vim /etc/environment` and include
     98       * `JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64`
     99      * `source /etc/environment`
     100    * `export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64`
     101
     102
     103* Download Keycloak and extract:
     104   *
     105   {{{
     106        wget https://downloads.jboss.org/keycloak/4.4.0.Final/keycloak-4.4.0.Final.tar.gz
     107   }}}
     108   {{{
     109        tar -xvzf keycloak-4.4.0.Final.tar.gz
     110    }}}
     111
     112* Go to the executable directory:
     113   {{{
     114     cd keycloak-4.3.0.Final/bin/
     115   }}}
     116 
     117* Create Initial Admin User
     118   {{{
     119     ./add-user-keycloak.sh -r master -u adminiam -p Iam@2018
     120    }}}
     121
     122* Edit listning interface:
     123   {{{
     124       vim standalone/configuration/standalone.xml
     125   }}}
     126   look for the `interfaces` XML block   
     127   {{{#!xml
     128          <interfaces>
     129                  <interface name="management">
     130                      <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
     131                  </interface>
     132                  <interface name="public">
     133                      <inet-address value="${jboss.bind.address:127.0.0.1}"/>
     134                  </interface>
     135          </interfaces>
     136   }}}
     137
     138  Change IP address `127.0.0.1` to `0.0.0.0` allowing traffic from outside.
     139
     140* Start the server
     141{{{
     142     ./bin/standalone.sh > /var/log/keycloak.pid
     143}}}