commit | e806cdf52f712c44a71ecbf706b3afc51a468663 | [log] [tgz] |
---|---|---|
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | Wed Mar 20 01:24:55 2024 +0000 |
committer | GitHub <noreply@github.com> | Wed Mar 20 01:24:55 2024 +0000 |
tree | eb1f1e3b9efd54f3eabc5acbb74891f7c97612f0 | |
parent | 6df4f6fe83f9dde66322fd622033f37e7e759ff6 [diff] |
Bump org.springframework:spring-core from 6.0.15 to 6.0.16 Bumps [org.springframework:spring-core](https://github.com/spring-projects/spring-framework) from 6.0.15 to 6.0.16. - [Release notes](https://github.com/spring-projects/spring-framework/releases) - [Commits](https://github.com/spring-projects/spring-framework/compare/v6.0.15...v6.0.16) --- updated-dependencies: - dependency-name: org.springframework:spring-core dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This document contains instructions to download, build, and test operations using Apache Fortress Rest component.
An http service interface to drive Apache Fortress APIs.
Uses Apache CXF as the rest framework.
Layered security using ...
Minimum software requirements:
Everything else covered in steps that follow. Tested on Debian and Redhat systems.
a. from git:
git clone --branch [version] https://gitbox.apache.org/repos/asf/directory-fortress-enmasse.git cd directory-fortress-enmasse
b. or apache fortress downloads
mvn clean install
mvn javadoc:javadoc
This web app uses Java EE security.
wget https://repo.maven.apache.org/maven2/org/apache/directory/fortress/fortress-realm-proxy/[version]/fortress-realm-proxy-[version].jar -P $TOMCAT_HOME/lib
$TOMCAT_HOME
points to the execution env.[version]
points to the particular release, e.g. 3.0.0.Note: The realm proxy enables Tomcat container-managed security functions to call back to fortress.
sudo vi /usr/local/tomcat10/conf/tomcat-users.xml
<role rolename="manager-script"/> <user username="tcmanager" password="m@nager123" roles="manager-script"/>
cp src/main/resources/fortress.properties.example src/main/resources/fortress.properties
vi src/main/resources/fortress.properties
Pick either Apache Directory or OpenLDAP server:
a. Prepare fortress for ApacheDS usage:
# This param tells fortress what type of ldap server in use: ldap.server.type=apacheds # Use value from [Set Hostname Entry]: host=localhost # ApacheDS defaults to this: port=10389 # These credentials are used for read/write access to all nodes under suffix: admin.user=uid=admin,ou=system admin.pw=secret
-- Or --
b. Prepare fortress for OpenLDAP usage:
# This param tells fortress what type of ldap server in use: ldap.server.type=openldap # Use value from [Set Hostname Entry]: host=localhost # OpenLDAP defaults to this: port=389 # These credentials are used for read/write access to all nodes under suffix: admin.user=cn=Manager,dc=example,dc=com admin.pw=secret
mvn -version
This sample requires Java >= 17 and Maven >= 3 to be setup within the execution env.
mvn install -Dload.file=src/main/resources/FortressRestServerPolicy.xml
mvn install -Dload.file=src/main/resources/FortressRestArbacSamplePolicy.xml
mvn
commands.a. If using autodeploy feature, verify the Tomcat auto-deploy options are set correctly in the pom.xml file:
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <version>1.0-beta-1</version> <configuration> ... <url>http://localhost:8080/manager/text</url> <path>/${project.artifactId}</path> <username>tcmanager</username> <password>m@nager123</password> </configuration> </plugin>
b. Now, automatically deploy to tomcat server:
mvn clean tomcat:deploy
c. To automatically redeploy sample app:
mvn clean tomcat:redeploy
d. To manually deploy app to Tomcat:
cp target/fortress-rest-[version].war $TOMCAT_HOME/webapps
$TOMCAT_HOME
points to the execution env.Run unit test:
mvn test -Dtest=EmTest
Test Notes:
This section describes the properties needed to control fortress rest.
The host name can be specified as a fully qualified domain name or IP address:
# Host name and port of LDAP DIT: host=localhost port=10389
# If ApacheDS server: ldap.server.type=apacheds
# Else if OpenLDAP server: ldap.server.type=openldap
# Else leave blank: #ldap.server.type=other
This service account must have read/write privileges over the entire Fortress LDAP Directory Information Tree (DIT):
# If ApacheDS it will look something like this: admin.user=uid=admin,ou=system admin.pw=secret
# Else If OpenLDAP it will look something like this: admin.user=cn=Manager,dc=example,dc=com
# This is min/max settings for LDAP connections. For testing and low-volume instances this will work: min.admin.conn=1 max.admin.conn=10
Notes on connection pools:
This will match your LDAP‘s server’s config node per Fortress Core setup:
# This node contains fortress properties stored on behalf of connecting LDAP clients: config.realm=DEFAULT config.root=ou=Config,dc=example,dc=com
# Used for SSL Connection to LDAP Server: enable.ldap.ssl=true enable.ldap.ssl.debug=true trust.store=/fully/qualified/path/and/file/name/to/java/truststore trust.store.password=changeit
# ApacheDS stores its password policies objects here by default: apacheds.pwpolicy.root=ou=passwordPolicies,ads-interceptorId=authenticationInterceptor,ou=interceptors,ads-directoryServiceId=default,ou=config