This package contains samples that show how the Fortress APIs can be used. The samples use JUnit test harness.

Samples

  1. {@link org.openldap.fortress.samples.AccessMgrSample} demonstrates {@code org.openldap.fortress.AccessMgr} APIs
  2. {@link org.openldap.fortress.samples.AllSamplesJUnitTest} will execute all tests in their proper order
  3. {@link org.openldap.fortress.samples.CreatePermOrgHierarchySample} demonstrates {@code org.openldap.fortress.DelegatedAdminMgr} APis to create Perm organizational unit hierarchies
  4. {@link org.openldap.fortress.samples.CreatePermOrgSample} demonstrates {@code org.openldap.fortress.DelegatedAdminMgr} APis to create a Perm organizational unit node
  5. {@link org.openldap.fortress.samples.CreatePermSample} demonstrates {@code org.openldap.fortress.AdminMgr} to create RBAC permissions
  6. {@link org.openldap.fortress.samples.CreateRoleHierarchySample} demonstrates {@code org.openldap.fortress.AdminMgr} to create RBAC Role hierarchies
  7. {@link org.openldap.fortress.samples.CreateRoleSample} demonstrates {@code org.openldap.fortress.AdminMgr} to create RBAC Roles and assign constraints
  8. {@link org.openldap.fortress.samples.CreateSessionSample} demonstrates various ways to create a session using {@code org.openldap.fortress.AccessMgr} APIs
  9. {@link org.openldap.fortress.samples.CreateUserOrgHierarchySample} demonstrates {@code org.openldap.fortress.DelegatedAdminMgr} APis to create User organizational unit hierarchies
  10. {@link org.openldap.fortress.samples.CreateUserOrgSample} demonstrates {@code org.openldap.fortress.DelegatedAdminMgr} APis to create a User organizational unit node
  11. {@link org.openldap.fortress.samples.CreateUserRoleSample} demonstrates {@code org.openldap.fortress.AdminMgr} APIs to assign Roles to Users
  12. {@link org.openldap.fortress.samples.CreateUserSample} demonstrates {@code org.openldap.fortress.AdminMgr} APIs to create User object nodes

The Fortress samples can be executed by running the test target in the build.xml located in the src/test folder.

Over time more samples will be added. The build.xml in the src/test folder contains targets to compile and run these samples, or they may be executed directly within an IDE.

What can Fortress SDK do?

Contained within this SDK are APIs and utilities to perform authentication, authorization, administration audit and password policies. The most important package in this system is org.openldap.fortress which contains all of the public APIs that need to be called by outside programs.

What technologies are used?

Fortress SDK runs on any platform that supports Java technology and LDAP v3 protocols. Functionality that extends beyond LDAP v3 is provided via OpenLDAP specific features. In other words Fortress was optimized to run on OpenLDAP.

What are the conditions of use?

This software development kit is open source, thus free to use and distribute via the New BSD License. It was developed and tested on open systems like Ubuntu and Centos and and was helped along by open source contributions from the following:

  1. The OpenLDAP Project
  2. The Apache Software Foundation
  3. The Eigenbase Project

Check out the org.openldap.fortress.samples in the test package for how to use these APIs within Java programs. The dist target in build.xml will create a samples package in the /dist folder of this project.