You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by sm...@apache.org on 2022/03/23 16:52:00 UTC
[directory-fortress-realm] branch master updated: correct incorrect context.xml setup
This is an automated email from the ASF dual-hosted git repository.
smckinney pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-fortress-realm.git
The following commit(s) were added to refs/heads/master by this push:
new 18aa351 correct incorrect context.xml setup
18aa351 is described below
commit 18aa3516b5a543a8b24146c8fcc5eb94875e4b84
Author: Shawn McKinney <sm...@symas.com>
AuthorDate: Wed Mar 23 11:51:54 2022 -0500
correct incorrect context.xml setup
---
REALM-CONTEXT-SETUP.md | 24 ++++++++++++++++--------
1 file changed, 16 insertions(+), 8 deletions(-)
diff --git a/REALM-CONTEXT-SETUP.md b/REALM-CONTEXT-SETUP.md
index 5b60a54..cd8ffb8 100644
--- a/REALM-CONTEXT-SETUP.md
+++ b/REALM-CONTEXT-SETUP.md
@@ -84,20 +84,22 @@ Everything else covered in steps that follow. Tested on Debian, Centos & Window
```
2. Add to the file:
+
```
- <Context path="/myappcontext" reloadable="true">
+ <Context reloadable="true">
<Realm className="org.apache.directory.fortress.realm.tomcat.Tc7AccessMgrProxy"
- debug="0"
- resourceName="UserDatabase"
defaultRoles=""
containerType="TomcatContext"
- realmClasspath=""
contextId="HOME"
+ realmClasspath=""
/>
- </Context>
- ```
+</Context>
+```
- Where *myappcontext* is the web context for *your* web application.
+- defaultRoles contains the comma-separated list of allowed role names for this web app. If left empty, it will default to the user's assigned roles.
+- containerType for realm context setups, this will always be 'TomcatContext'.
+- contextId contains the tenant ID. This should be 'HOME' if not using fortress multitenancy features. See [README-MULTITENANCY](https://github.com/apache/directory-fortress-core/blob/master/README-MULTITENANCY.md).
+- realmClasspath should always be empty, for realm context setups. It will use the web app's classpath.
3. Edit the web app's deployment descriptor:
```
@@ -129,7 +131,13 @@ Everything else covered in steps that follow. Tested on Debian, Centos & Window
<!-- Security roles referenced by this web application -->
<security-role>
- <role-name>MY_ROLE_NAME</role-name>
+ <role-name>A_ROLE_NAME_1</role-name>
+ </security-role>
+ <security-role>
+ <role-name>A_ROLE_NAME_2</role-name>
+ </security-role>
+ <security-role>
+ <role-name>A_ROLE_NAME_3</role-name>
</security-role>
...
```