NOTICE: This document has been deprecated. It is here for historical purposes. Eventually the contents will be moved to a new location.


These instructions are intended for new users who want to quickly learn how to install and test JoshuaTree Fortress and ApacheDS IAM software using QUICKSTART package: http://iamfortress.org/download

Follow the steps and


System Prerequisites

NOTE: The Fortress build.xml may run without connection to Internet iff:

Guidelines and Tips for first-time users


  1. Instructions to extract and configure Fortress Builder Package to Target System

    1. Copy fortressBuilder-[platform]-[version].zip to hard drive on target server env.

    2. Extract the zip. The location for archive can vary according to requirements. The location of package will be referred to as FORTRESS_HOME later on.

    3. Enable permission for the binaries to execute. From FORTRESS_HOME root folder, enter the following command from a system prompt:

      chmod a+x -Rf *

    4. Edit file named 'build.properties' and insert LDAP configuration parameters:

      ldap.server.type=apacheds # These parameters point fortress to LDAP host: ldap.host=localhost ldap.port=10389 # These are used to construct suffix for DIT, i.e. dc=example,dc=com. suffix.name=example suffix.dc=com # These are the connection parameters used for LDAP service account: root.dn=uid=admin,ou=system # Used to load OpenLDAP admin root password in slapd.conf and was encrypted using 'slappasswd' command: # This ApacheDS admin root password's value is 'secret', is bound for fortress.properties and was encrypted using 'encrypt' target in build.xml: cfg.root.pw=W7T0G9hylKZQ4K+DF8gfgA== # If encryption of LDAP &/or HTTP service account passwords (e.g. cfg.root.pw, cfg.log.root.pw and http.pw params) is required, this field must be set. # If encryption of service accounts not needed, leave this value blank, and set the password values for cfg.root.pw, cfg.log.root.pw and http.pw to be their clear text value. # Use any arbitrary value here but must be same as key used to encrypt. crypto.prop=abcd12345


  2. Instructions to run the Fortress Ant Build

    1. From FORTRESS_HOME root folder, edit the b.sh script to point to java home:

      export JAVA_HOME=/opt/jdk1.7.0_10



    2. Run the distribution target:

      ./b.sh dist



      Note: The b.sh batch file referred to here uses Ant package that is local to Fortress quickstart package.

    3. Verify it ran correctly according to Ant:

      BUILD SUCCESSFUL



    You may now view the project binaries and documentation located under FORTRESS_HOME/dist.




  3. Instructions to configure ApacheDS and load with seed data

    Important: This target reloads the ApacheDS configuration and data.


    1. Import Fortress ApacheDS schema into ApacheDS server using preferred ldif import tool. Fortress ApacheDS schema located here: FORTRESS_HOME/ldap/schema/apacheds-fortress.ldif

      Screenshot of Apache Directory Studio import of Fortress schema file into ApacheDS:


    2. The fortress 'init-apacheds' uses LDAPv3 to perform initial operations.
      edit build.properties, ensure the following line has been commented out:



      Note: The default for this setting is 'false' or disabled.

    3. From FORTRESS_HOME root folder, enter the following command from a system prompt:

      ./b.sh init-apacheds

    4. Verify it ran correctly according to Ant.

      BUILD SUCCESSFUL



    5. After above step completes, Symas ApacheDS will be installed, configured and loaded with fortress bootstrap config. This step also runs provisioning scripts which may be tailored according to requirements. Check out the xml load scripts in FORTRESS_HOME/ldap/setup folder.

    6. Point your preferred LDAP browser, ours is Apache Directory Studio, to the installed directory. The configuration parameters you'll need to browse can be found in the generated 'slapd.conf' file.

      To view data stored in default database:

      suffix "dc=example,dc=com" rootdn "uid=admin,ou=system" rootpw "secret"

      The root pw will be encrypted before stored in slapd.conf




  4. Instructions to regression test Fortress and ApacheDS on target machine (optional)

    1. From FORTRESS_HOME root folder, enter the following command from a system prompt:

      ./b.sh test-full



    2. Note: The Fortress regression tests will run for around 3 minutes.

    3. Verify these tests ran with no ERRORS.

      BUILD SUCCESSFUL



    4. To re-run these tests:

      ./b.sh test-full

    Note 1: WARNING messages in test output are good as these are negative tests in action:


    Note 2: If you made it this far without junit or ant ERRORS, the Fortress and ApacheDS IAM system are certified to run on your machine.

    Note 3: These tests load tens of thousands of records into your newly installed directory. The 'init-apacheds' and 'test-full' targets may be re-run as often as necessary. After regressions testing has completed, you may run the 'init-apacheds' target to remove all test data from the directory.

  5. Instructions to run the Fortress Command Line Interpreter (CLI) utility (optional)

    This command line tool provides an interactive session with the user based on a simple command line syntax.

    1. To start the CLI, enter:

      ./b.sh cli



      Which will bring up the command interpreter:


    2. enter the command:

      review fuser -u demo



      This example will return all users with userId that begins with 'demo':



    3. To learn more about the CLI and what it can do, follow instructions in the command line interpreter reference manual in the javadoc located here:

      Command Line Interpreter

      Note: if javadocs are not found, go to Section VII

  6. Instructions to run Fortress Console (optional)

    For tasks like one-time setup of new users, password resets, searches the Fortress Console application can be used.

    1. From FORTRESS_HOME root folder, enter the following command from a system prompt:

      ./b.sh console



    2. Console Screenshots...

      1. Main Menu:


      2. Enter choice and follow the screen prompts to edit RBAC data:


      3. Enter choice and follow the screen prompts to search RBAC data:


      4. Enter choice and follow the screen prompts to test RBAC policies:


      5. Enter choice and follow the screen prompts to setup ARBAC delegated policies:


      6. Enter choice and follow the screen prompts to search through the AUDIT log:

  7. Instructions to generate and view Javadoc (optional)

    1. Run the javadoc target:

      /b.sh javadoc



    2. Navigate to where docs are genned:



    3. Open 'index.html' using your preferred HTML Browser:


    4. The javadoc provides coverage of the Fortress APIs and also provides explanations on how RBAC, ARBAC, PW Policies and Audit work.

    5. Good places to start learning about Fortress:

  8. Instructions to install EnMasse Policy Server Demo (optional)

    1. Run the install-enmasse-demo target:

      /b.sh install-enmasse-demo

    2. Verify it ran correctly according to Ant.

      BUILD SUCCESSFUL



    3. After above step completes, Fortress EnMasse will be installed


  9. Instructions to regression test EnMasse Policy server on target machine (optional)

    1. Edit file named 'build.properties' and enable REST protocol here:

      enable.mgr.impl.rest=true

      Accept the defaults for other HTTP parameters in build.properties:

      http.user=demouser4 http.pw=gX9JbCTxJW5RiH+otQEX0Ja0RIAoPBQf http.host=localhost http.port=8080

    2. Should look like the following:



    3. Save and exit the text file editor

    4. From FORTRESS_HOME root folder, enter the following command from a system prompt:

      ./b.sh test-full



    5. Note: The EnMasse regression tests will run for around 20 minutes.

    6. Verify these tests ran with no ERRORS.

      BUILD SUCCESSFUL



    7. This regression test may be rerun as often as necessary:

      ./b.sh test-full

    8. Note 1: WARNING messages in test output are good as these are negative tests in action:


      Note 2: If you made it this far without junit or ant ERRORS, EnMasse is installed and certified to run on your machine.

      Note 3: These tests load tens of thousands of records into your directory. The 'test-full' target may be re-run as often as necessary. After regressions testing have completed, you may run the 'init-apacheds' target to remove all test data from the directory.

  10. Instructions to install Commander Web UI Demo (optional)

    Run the install-commander-demo target:

    /b.sh install-commander-demo

  11. More Utilities

    Other execution targets:

    1. 'test-samples' - contains examples of how the Fortress API's work check out the following javadoc for more info on the samples package: Samples Javadoc

    2. 'admin' - provides an XML-centric way to provision RBAC data policies and user accounts. check out the following javadoc for more info on this utility: Fortress Ant admin script utility document

    3. 'encrypt' - interface to jacypt encryption utility

    4. display all ant targets available:



Copyright (c) 2003-2015, The Apache Software Foundation. All Rights Reserved.