Building from Source

Environmental Requirements

Glassfish

  • Install Glassfish V2
  • Set GLASSFISH_HOME to the installation path

Kerberos

You need a working Kerberos KDC and client configuration.

See MIT Kerberos for how to do this using the open source MIT Kerberos server.

Create a test user

  • As root on the KDC run kadmin.local.

    Note: Type in the following between

  • kadmin.local: add_principal test
  • WARNING: no policy specified for test@WOTIF.COM; defaulting to no policy
  • Enter password for principal "test@WOTIF.COM": test01

Maven

The build uses Maven version 2.0.5.

Check out the source

See Source Repository.

Configure your settings

Minimum properties which must be specified in your settings.xml:

       <profile>
        <id>spnego</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <test.unit.skip>false</test.unit.skip>
                <test.int.skip>false</test.int.skip>
                <test.kerberos.client.principal>test</test.kerberos.client.principal>
                <test.kerberos.client.password>test01</test.kerberos.client.password>
                <test.kerberos.realm>WOTIF.COM</test.kerberos.realm>
            </properties>
        </profile>

Build Steps

All commands are on the command line from the spnego directory.

mvn clean install

If you get checkstyle errors it is because the build-tools are not installed.

Interactively Testing Glassfish

These instructions assume the default configuration set up in the spnego pom.xml.

To start Glassfish and deploy the test application to it, along with configuration:

mvn pre-integration-test

Test URL

The test URL is http://localhost:8080

Logging in to the admin console

The admin URl is http://locahost:4848

The username is $user.name and the password is "password".