Giter Site home page Giter Site logo

kerberos-liferay's Introduction

kerberos-liferay

Kerberos setup and Liferay Portal (bundled with Tomcat) kerberization scripts.

These scripts are designed for easy and fast installation and configuration of Kerberos Server (KDC) on one server and Kerberos Client on another server, where Liferay Portal is located.

Instructions

Before running, inspect the contents of .sh files. Minor instructions are embedded into script files themselves. This mostly includes updating download links to newer versions of applications if desired, or checking if paths are identical to what you have on your machines.

  1. Download and run `kerberosKDC.sh` on one server to configure Kerberos KDC. You will be asked to
    1. enter Kerberos realm name,
    2. set password for root/admin principal, and
    3. login-password pair for test principal.
  2. Download and run `kerberosClient.sh` on another server (where you have Liferay Portal) to configure Kerberos Workstation. During this process you will be asked to
    1. enter credentials for ssh session with the first server and
    2. enter FQDN for current (client) server.
  3. Download and run `kerberizeLiferay.sh` to install Apache HTTPd, configure it and Apache Tomcat, and perform Liferay Portal kerberization.
    1. First, you set `TOMCATLOCATION` variable,
    2. then you will enter vi editor with `$TOMCATLOCATION/conf/server.xml` file. Follow the instructions below (see section [*Apache Tomcat configuration*](https://github.com/anthonyboutinov/kerberos-liferay#apache-tomcat-configuration)).
    3. Enter KDC domain name and KDC's and admin server's FQDNs.
    4. You will be asked to let the script to install Liferay IDE (Eclipse), if you want to customize Liferay hook.
    5. You will be asked to let the script to download Liferay Plugins SDK (again, if you want to customize the hook).
    6. You will be asked if you want to simply download the war file from this repository and deploy it to Liferay Portal (this will restart HTTPd and Tomcat).

After that, Liferay will be using Kerberos authentication protocol on port 80.

Apache Tomcat configuration

When presented with edit screen of $TOMCATLOCATION/conf/server.xml file, make sure it looks like this (maxHttpHeaderSize and tomcatAuthentication are set properly):

<!-- A "Connector" represents an endpoint by which requests are received

         Define a non-SSL HTTP/1.1 Connector on port 8080
    -->
    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" URIEncoding="UTF-8"
               maxHttpHeaderSize="32768" />
…
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" protocol="AJP/1.3"
               redirectPort="8443" URIEncoding="UTF-8"
               tomcatAuthentication="false" />
…

-- Liferay Portal Kerberos-Hook is based on Morgan Patou's post (WebArchive mirror).

kerberos-liferay's People

Contributors

anthonyboutinov avatar

Stargazers

Antonio Musarra avatar Harsh Kanakhara avatar Rafael T. C. Soares (A.K.A Tuelho) avatar

Watchers

 avatar  avatar

Forkers

kanakharaharsh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.