Skip to content

TensorWrenchOSS/ozp-security

 
 

Repository files navigation

OZONE Security Plugin

Building the Project

  1. Install maven
  2. Navigate to ozone-security/ozone-security-build-all and run the command mvn clean install
  • This will build the entire project which includes the security extras
  • To build just the extras, run the command from ozone-security/ozone-security-extras
  • To build just the plugin, run the command from ozone-security/ozone-security-project

Configuring the Plugin

  1. Choose the spring configuration file that maps to the sample of your choice. The six samples and associated spring configuration files are:
  • Default, x509 fallback to Basic HTTP OWFsecurityContext.xml
  • CAS only OWFsecurityContext_CAS_only.xml
  • x509/CAS OWFsecurityContext_x509_CAS.xml
  • x509 only OWFsecurityContext_cert_only.xml
  • x509/LDAP OWFsecurityContext_BasicSpringLogin.xml
  • HTTP Basic only, OWFsecurityContext_cert_ldap.xml Take that spring configuration file and copy it into the Tomcat lib directory. Delete any other spring configuration files in there, such as the default OWFSecurityContext.xml.
  1. Beginning with OWF 7.5, CAS is no longer bundled with the application. Should you wish to try either of the CAS security plugins, the cas.war file is available from the OWF GOSS download site in older versions of the bundle. In addition to copying the appropriate configuration file (from step 1), copy cas.war to the tomcat webapp directory of your bundle.

  2. If you are trying out the x509/LDAP sample, it is designed to work with Apache DS installed on localhost and running on the default port, 10389. You can download Apache DS from http://directory.apache.org and install it. There are directions on the Apache DS website on how to install and run the Apache DS server.

If you want to connect to ldap at some url other than localhost:10389, the url is defined in the OWFSecurityContext_cert_ldap.xml spring config file. Adjust it there.

Next, for the LDAP sample, we have included a sample Apache DS server.xml file, called src/main/resources/conf/apache-ds-server.xml. The one change it has in it is the requirement that you add the partition owf-1. To do that, add the xml line to the XPATH spring:beans/defaultDirectoryService/partitions as shown in the example file.

Now, you need to load our sample data into your directory service. We have provided a sample ldif file, called src/main/resources/conf/testUsers.ldif. The Apache DS site explains how to load the ldif file. Hint--download the Apache Directory Studio!

Restart your directory service to make sure all changes are applied.

  1. Start up OWF. Authenticate.

About

OZONE Security plugin system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 99.5%
  • Other 0.5%