Navigation Links

- Setup Apache Directory Server
- Setup Apache Directory Studio
- Build Apache Fortress Core
- Build Apache Fortress Realm
- Setup Apache Tomcat Web Server
- Build Apache Fortress Web
- Build Apache Fortress Rest

- Ten Minute Guide

### Build Apache Fortress Web

#### This section describes how to install and use the Fortress Web Application for RBAC Administration

1. Set java and maven home env variables.
2. Change directory:

       cd directory-fortress-commander/

3. Copy the fortress.properties, created on step Build Apache Fortress Core, to this package's resource folder.

       cp [directory-fortress-core]/config/fortress.properties [directory-fortress-commander]/src/main/resources

   Where [directory-fortress-core] is base folder of the fortress core source package and [directory-fortress-commander] is the current package's home folder.
4. To load policies for testing into ldap, run this command:

       mvn install -Dload.file=./src/main/resources/FortressWebDemoUsers.xml

5. To deploy fortress web, run this command:

       mvn tomcat:deploy

6. To redeploy:

       mvn tomcat:redeploy

7. Connect to web app:
   http://localhost:8080/fortress-web,
8. Try the various user accounts, notice how each has different policies:
   - userId: test, password: password
   - userId: test1, password: password
   - userId: test2, password: password
   - userId: test3, password: password
9. Run the Selenium Web driver integration tests:

       mvn test -Dtest=FortressWebSeleniumITCase

Copyright 2003-2018, The Apache Software Foundation. All Rights Reserved.