We created a simple demo web application which uses the Krb5LoginModule that ships with the SUN JDK 1.4. The application can authenticate any of the demo accounts present on the HausKeys application on your cell phone.
Before configuring and running the demo application you'll need to:
- Install the 1.4 JDK
- Install Triplesec Server
- Setup and configure the krb5.ini or krb5.conf file as documented within the Test Connectivity with a Kerberos Client
- Install Tomcat or another servlet container
One or two servers can be used for this configuration. Regardless of the number of servers used the server running the Tomcat application server must have the krb5.conf or krb5.ini file configured to use the Triplesec server for authenticating demo accounts against the EXAMPLE.COM realm. Please see the relavent documentation sited above for configuring and testing the configuration file.
Once configured download and install the following war file for the demo application from here. Rename this file to demo.war and drop it into the webapps directory. Then start up tomcat. Navigate to http://localhost:8080/demo and you should see an application just like this one here http://demo.safehaus.org/.
Now you can use the HausKeys demo accounts to generate HOTP values and authenticate users in the demo.