You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by gi...@apache.org on 2022/07/25 21:10:31 UTC

[directory-site] branch asf-site updated: Updated site from master (e21544f1347bfaefee49e731a06a5415b33bf78d)

This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/directory-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 04ca3459 Updated site from master (e21544f1347bfaefee49e731a06a5415b33bf78d)
04ca3459 is described below

commit 04ca34599f9bfe32163408b1c7e5f3a65d656084
Author: jenkins <bu...@apache.org>
AuthorDate: Mon Jul 25 21:10:26 2022 +0000

    Updated site from master (e21544f1347bfaefee49e731a06a5415b33bf78d)
---
 content/fortress/index.xml                         |  69 +++++-
 content/fortress/user-guide-advanced.html          |   1 -
 content/fortress/user-guide.html                   |  11 +
 content/fortress/user-guide/3-configuration.html   |  12 +-
 ...iguration.html => 4-fortress-code-samples.html} |  26 ++-
 .../fortress/user-guide/4.1-create-session.html    | 231 ++++++++++++++++++++
 content/fortress/user-guide/4.2-check-access.html  | 232 +++++++++++++++++++++
 .../user-guide/4.3-session-permissions.html        | 232 +++++++++++++++++++++
 content/fortress/user-guide/4.4-activate-role.html | 230 ++++++++++++++++++++
 ...configuration.html => 4.5-deactivate-role.html} |  52 +++--
 .../fortress/user-guide/4.6-authorized-roles.html  | 228 ++++++++++++++++++++
 content/index.xml                                  |  69 +++++-
 content/sitemap.xml                                |  43 +++-
 13 files changed, 1402 insertions(+), 34 deletions(-)

diff --git a/content/fortress/index.xml b/content/fortress/index.xml
index b68cf31c..103a116e 100644
--- a/content/fortress/index.xml
+++ b/content/fortress/index.xml
@@ -131,6 +131,73 @@ More info here on how it works:
  README for Apache Fortress Configuration Subsystem  </description>
     </item>
     
+    <item>
+      <title>4 - Fortress Code Samples</title>
+      <link>https://directory.apache.org/fortress/user-guide/4-fortress-code-samples.html</link>
+      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
+      
+      <guid>https://directory.apache.org/fortress/user-guide/4-fortress-code-samples.html</guid>
+      <description>4 - Apache Fortress Code Samples Table of content  4.1 - Create Session 4.2 - Check Access 4.3 - Session Permissions 4.4 - Add Active Role 4.5 - Drop Active Role 4.6 - Get Authorized Roles  </description>
+    </item>
+    
+    <item>
+      <title>4.1 - Create Session</title>
+      <link>https://directory.apache.org/fortress/user-guide/4.1-create-session.html</link>
+      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
+      
+      <guid>https://directory.apache.org/fortress/user-guide/4.1-create-session.html</guid>
+      <description>4.1 - CreateSession Session createSession(User user, boolean isTrusted) throws SecurityException Perform user authentication and role activations in one method. This method must be called once per user prior to calling other methods within this class. The successful result is Session that contains target user&amp;rsquo;s RBAC roles. In addition to checking user password validity it will apply configured password policy checks.
+Parameters: user - Contains User.userId, User.password (optional if isTrusted is &amp;lsquo;true&amp;rsquo;), optional User.</description>
+    </item>
+    
+    <item>
+      <title>4.2 - Check Access</title>
+      <link>https://directory.apache.org/fortress/user-guide/4.2-check-access.html</link>
+      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
+      
+      <guid>https://directory.apache.org/fortress/user-guide/4.2-check-access.html</guid>
+      <description>4.2 - Check Access boolean checkAccess(Session session, Permission perm) throws SecurityException Perform user RBAC authorization. This function returns a Boolean value meaning whether the subject of a given session is allowed not to perform a given operation on a given object. The function is valid if and only if the session is a valid Fortress session, the object is a member of the OBJS data set, and the operation is a member of the OPS data set.</description>
+    </item>
+    
+    <item>
+      <title>4.3 - Session Permissions</title>
+      <link>https://directory.apache.org/fortress/user-guide/4.3-session-permissions.html</link>
+      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
+      
+      <guid>https://directory.apache.org/fortress/user-guide/4.3-session-permissions.html</guid>
+      <description>4.3 - Session Permissions List&amp;lt;Permission&amp;gt; sessionPermissions( Session session ) throws SecurityException This function returns the permissions of the session, i.e., the permissions assigned to its authorized roles. The function is valid if and only if the session is a valid Fortress session.
+Parameters: session - This object must be instantiated by calling createSession(org.apache.directory.fortress.core.model.User, boolean) method before passing into the method. No variables need to be set by client after returned from createSession.</description>
+    </item>
+    
+    <item>
+      <title>4.4 - Add Active Role</title>
+      <link>https://directory.apache.org/fortress/user-guide/4.4-activate-role.html</link>
+      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
+      
+      <guid>https://directory.apache.org/fortress/user-guide/4.4-activate-role.html</guid>
+      <description>4.4 - Add Active Role void addActiveRole(Session session, UserRole role) throws SecurityException This function adds a role as an active role of a session whose owner is a given user.
+The function is valid if and only if: the user is a member of the USERS data set the role is a member of the ROLES data set the role inclusion does not violate Dynamic Separation of Duty Relationships the session is a valid Fortress session the user is authorized to that role the session is owned by that user.</description>
+    </item>
+    
+    <item>
+      <title>4.5 - Drop Active Role</title>
+      <link>https://directory.apache.org/fortress/user-guide/4.5-deactivate-role.html</link>
+      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
+      
+      <guid>https://directory.apache.org/fortress/user-guide/4.5-deactivate-role.html</guid>
+      <description>4.5 - Drop Active Role void dropActiveRole(Session session, UserRole role) throws SecurityException This function deletes a role from the active role set of a session owned by a given user. The function is valid if and only if the user is a member of the USERS data set, the session object contains a valid Fortress session, the session is owned by the user, and the role is an active role of that session.</description>
+    </item>
+    
+    <item>
+      <title>4.6 - Authorized Roles</title>
+      <link>https://directory.apache.org/fortress/user-guide/4.6-authorized-roles.html</link>
+      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
+      
+      <guid>https://directory.apache.org/fortress/user-guide/4.6-authorized-roles.html</guid>
+      <description>4.6 - Authorized Roles Set&amp;lt;String&amp;gt; authorizedRoles(Session session) throws SecurityException This function returns the authorized roles associated with a session based on hierarchical relationships. The function is valid if and only if the session is a valid Fortress session.
+Parameters: session - object contains the user&amp;rsquo;s returned RBAC session from the createSession method. Returns: Set containing all roles active in user&amp;rsquo;s session. This will contain inherited roles. Throws: SecurityException - is thrown if session invalid or system.</description>
+    </item>
+    
     <item>
       <title>ApacheDS Installation guide</title>
       <link>https://directory.apache.org/fortress/installation/apacheds.html</link>
@@ -881,7 +948,7 @@ Table of contents  An Introduction to Role-Based Access Control ANSI INCITS 359-
       
       <guid>https://directory.apache.org/fortress/user-guide-advanced.html</guid>
       <description>About this guide Advanced topics when deploying Fortress.
-Table of contents  Command Line Interface Configuration Exception Handling Load Testing Load Utility Multitenancy Setup  Fortress Core Fortress Web Fortress Rest   Security  </description>
+Table of contents  Command Line Interface Exception Handling Load Testing Load Utility Multitenancy Setup  Fortress Core Fortress Web Fortress Rest   Security  </description>
     </item>
     
     <item>
diff --git a/content/fortress/user-guide-advanced.html b/content/fortress/user-guide-advanced.html
index 32fb3cf0..d0869418 100644
--- a/content/fortress/user-guide-advanced.html
+++ b/content/fortress/user-guide-advanced.html
@@ -135,7 +135,6 @@
 <h2 id="table-of-contents">Table of contents</h2>
 <ul>
 <li><a href="cli.html">Command Line Interface</a></li>
-<li><a href="user-guide/3-configuration.html">Configuration</a></li>
 <li><a href="exception-handling.html">Exception Handling</a></li>
 <li><a href="load-testing.html">Load Testing</a></li>
 <li><a href="load-utility.html">Load Utility</a></li>
diff --git a/content/fortress/user-guide.html b/content/fortress/user-guide.html
index 3da03f7a..fdb5ec74 100644
--- a/content/fortress/user-guide.html
+++ b/content/fortress/user-guide.html
@@ -151,6 +151,17 @@
 <li><a href="user-guide/2.3-multitenancy-under-covers.html">2.3 - Multitenancy under the covers</a></li>
 </ul>
 </li>
+<li><a href="user-guide/3-configuration.html">Configuration</a></li>
+<li><a href="user-guide/4-fortress-code-samples.html">Code Samples</a>
+<ul>
+<li><a href="user-guide/4.1-create-session.html">4.1 - Create Session</a></li>
+<li><a href="user-guide/4.2-check-access.html">4.2 - Check Access</a></li>
+<li><a href="user-guide/4.3-session-permissions.html">4.3 - Session Permissions</a></li>
+<li><a href="user-guide/4.4-activate-role.html">4.4 - Add Active Role</a></li>
+<li><a href="user-guide/4.5-deactivate-role.html">4.5 - Drop Active Role</a></li>
+<li><a href="user-guide/4.6-authorized-roles.html">4.6 - Authorized Roles</a></li>
+</ul>
+</li>
 </ul>
 
 
diff --git a/content/fortress/user-guide/3-configuration.html b/content/fortress/user-guide/3-configuration.html
index be6ac0e9..81bfa3cf 100644
--- a/content/fortress/user-guide/3-configuration.html
+++ b/content/fortress/user-guide/3-configuration.html
@@ -131,7 +131,8 @@
     <div class="nav">
         <div class="nav_prev">
             
-                &nbsp;
+                
+                <a href="2.3-multitenancy-under-covers.html">2.3 - Multitenancy under the covers</a>
             
         </div>
         <div class="nav_up">
@@ -142,7 +143,8 @@
         </div>
         <div class="nav_next">
             
-                &nbsp;
+                
+                <a href="4-fortress-code-samples.html">4 - Fortress Code Samples</a>
             
         </div>
         <div class="clearfix"></div>
@@ -162,7 +164,8 @@
     <div class="nav">
         <div class="nav_prev">
             
-                &nbsp;
+                
+                <a href="2.3-multitenancy-under-covers.html">2.3 - Multitenancy under the covers</a>
             
         </div>
         <div class="nav_up">
@@ -173,7 +176,8 @@
         </div>
         <div class="nav_next">
             
-                &nbsp;
+                
+                <a href="4-fortress-code-samples.html">4 - Fortress Code Samples</a>
             
         </div>
         <div class="clearfix"></div>
diff --git a/content/fortress/user-guide/3-configuration.html b/content/fortress/user-guide/4-fortress-code-samples.html
similarity index 82%
copy from content/fortress/user-guide/3-configuration.html
copy to content/fortress/user-guide/4-fortress-code-samples.html
index be6ac0e9..3d04460b 100644
--- a/content/fortress/user-guide/3-configuration.html
+++ b/content/fortress/user-guide/4-fortress-code-samples.html
@@ -3,7 +3,7 @@
 <html lang="en">
 <head>
     <meta charset="utf-8">
-    <title>3 - Fortress Configuration &mdash; Apache Directory</title>
+    <title>4 - Fortress Code Samples &mdash; Apache Directory</title>
 
     <link href="/css/common.css" rel="stylesheet" type="text/css"/>
     <link href="/css/turquoise.css" rel="stylesheet" type="text/css"/>
@@ -131,7 +131,8 @@
     <div class="nav">
         <div class="nav_prev">
             
-                &nbsp;
+                
+                <a href="3-configuration.html">3 - Fortress Configuration</a>
             
         </div>
         <div class="nav_up">
@@ -142,7 +143,8 @@
         </div>
         <div class="nav_next">
             
-                &nbsp;
+                
+                <a href="4.1-create-session.html">4.1 - Example Creating RBAC Session</a>
             
         </div>
         <div class="clearfix"></div>
@@ -150,11 +152,15 @@
 
 
             
-	<h1 id="fortress-configuration">Fortress Configuration</h1>
-<p>In order to use the API, you must configure it. As it will connect to a remote LDAP server. Follow the installation instructions to learn how it&rsquo;s done.</p>
-<p>More info here on how it works:</p>
+	<h1 id="4---apache-fortress-code-samples">4 - Apache Fortress Code Samples</h1>
+<h2 id="table-of-content">Table of content</h2>
 <ul>
-<li><a href="https://github.com/apache/directory-fortress-core/blob/master/README-CONFIG.md">README for Apache Fortress Configuration Subsystem</a></li>
+<li><a href="4.1-create-session.html">4.1 - Create Session</a></li>
+<li><a href="4.2-check-access.html">4.2 - Check Access</a></li>
+<li><a href="4.3-session-permissions.html">4.3 - Session Permissions</a></li>
+<li><a href="4.4-activate-role.html">4.4 - Add Active Role</a></li>
+<li><a href="4.5-deactivate-role.html">4.5 - Drop Active Role</a></li>
+<li><a href="4.6-authorized-roles.html">4.6 - Get Authorized Roles</a></li>
 </ul>
 
 
@@ -162,7 +168,8 @@
     <div class="nav">
         <div class="nav_prev">
             
-                &nbsp;
+                
+                <a href="3-configuration.html">3 - Fortress Configuration</a>
             
         </div>
         <div class="nav_up">
@@ -173,7 +180,8 @@
         </div>
         <div class="nav_next">
             
-                &nbsp;
+                
+                <a href="4.1-create-session.html">4.1 - Example Creating RBAC Session</a>
             
         </div>
         <div class="clearfix"></div>
diff --git a/content/fortress/user-guide/4.1-create-session.html b/content/fortress/user-guide/4.1-create-session.html
new file mode 100644
index 00000000..7ca35670
--- /dev/null
+++ b/content/fortress/user-guide/4.1-create-session.html
@@ -0,0 +1,231 @@
+<!DOCTYPE html>
+
+<html lang="en">
+<head>
+    <meta charset="utf-8">
+    <title>4.1 - Create Session &mdash; Apache Directory</title>
+
+    <link href="/css/common.css" rel="stylesheet" type="text/css"/>
+    <link href="/css/turquoise.css" rel="stylesheet" type="text/css"/>
+
+    <link rel="shortcut icon" href="/images/server-icon_16x16.png" />
+</head>
+
+<body>
+<div id="container">
+    <div id="header">
+    <div id="subProjectsNavBar">
+        <a href="/">
+             
+                Main
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/apacheds/">
+             
+                ApacheDS
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/studio/">
+             
+                Studio
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/api/">
+             
+                LDAP API
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/mavibot/">
+             
+                Mavibot
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/scimple/">
+             
+                SCIMple
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/fortress/">
+            
+                <strong>Fortress</strong>
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/kerby/">
+             
+                Kerby
+            
+        </a>
+    </div>
+</div>
+
+
+    <div id="content">
+        <div id="leftColumn">
+            <div id="navigation">
+                
+                <h5>Fortress</h5>
+                <ul>
+                    <li><a href="/fortress/">Home</a></li>
+                    <li><a href="/fortress/history.html">History</a></li>
+                    <li><a href="/fortress/news.html">News</a></li>
+                </ul>
+
+                <h5>Downloads</h5>
+                <ul>
+                    <li><a href="/fortress/downloads.html">Fortress 2.0.8</a>&nbsp;&nbsp;<img src="/images/new_badge.gif" alt="" style="margin-bottom:-3px;" border="0"></li>
+                    <li><a href="/fortress/download-old-versions.html">Older versions</a></li>
+                </ul>
+
+                
+
+                <h5>Documentation</h5>
+                <ul>
+                    <li><a href="/fortress/overview.html">Overview</a></li>
+                    <li><a href="/fortress/installation.html">Installation Guide</a></li>
+                    <li><a href="/fortress/gen-docs/latest/apidocs/">JavaDocs</a></li>
+                    <li><a href="/fortress/user-guide.html">Users Guide</a></li>
+                    <li><a href="/fortress/user-guide-advanced.html">Advanced Users Guide</a></li>
+                    <li><a href="/fortress/coding-standards.html">Coding Standards</a></li>
+                    <li><a href="/fortress/testimonials.html">Testimonials</a></li>
+                    <li><a href="/fortress/developer-guide.html">Developer Guide</a></li>
+                    
+                    
+                </ul>
+
+                <h5>Support</h5>
+<ul>
+    <li><a href="/mailing-lists-and-irc.html">Mailing Lists &amp; IRC</a></li>
+    <li><a href="/sources.html">Sources</a></li>
+    <li><a href="/issue-tracking.html">Issue Tracking</a></li>
+    <li><a href="/commercial-support.html">Commercial Support</a></li>
+</ul>
+
+<h5>Community</h5>
+<ul>
+    <li><a href="/contribute.html">How to Contribute</a></li>
+    <li><a href="/team.html">Team</a></li>
+    <li><a href="/original-project-proposal.html">Original Project Proposal</a></li>
+    <li><a href="/special-thanks.html" class="external-link" rel="nofollow">Special Thanks</a></li>
+</ul>
+
+<h5>About Apache</h5>
+<ul>
+    <li><a href="http://www.apache.org/">Apache</a></li>
+    <li><a href="http://www.apache.org/licenses/">License</a></li>
+    <li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+    <li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+    <li><a href="http://www.apache.org/security/">Security</a></li>
+</ul>
+
+            </div>
+        </div>
+        <div id="rightColumn">
+            
+    <div class="nav">
+        <div class="nav_prev">
+            
+                
+                <a href="4-fortress-code-samples.html">4 - Fortress Code Samples</a>
+            
+        </div>
+        <div class="nav_up">
+            
+                
+                <a href="4-fortress-code-samples.html">4 - Fortress Code Samples</a>
+            
+        </div>
+        <div class="nav_next">
+            
+                
+                <a href="4.2-check-access.html">4.2 - Check Access</a>
+            
+        </div>
+        <div class="clearfix"></div>
+    </div>
+
+
+            
+	<h1 id="41---createsession">4.1 - CreateSession</h1>
+<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-java" data-lang="java">Session <span style="color:#00a000">createSession</span><span style="color:#666">(</span>User user<span style="color:#666">,</span> <span style="color:#0b0;font-weight:bold">boolean</span> isTrusted<span style="color:#666">)</span> <span style="color:#a2f;font-weight:bold">throws</span> SecurityException
+</code></pre></div><p>Perform user authentication and role activations in one method.
+This method must be called once per user prior to calling other methods within this class. The successful result is Session that contains target user&rsquo;s RBAC roles.
+In addition to checking user password validity it will apply configured password policy checks.</p>
+<p>Parameters:
+user - Contains User.userId, User.password (optional if isTrusted is &lsquo;true&rsquo;), optional User.roles, optional User.adminRoles
+isTrusted - if true password is not required.
+Returns:
+Session object will contain authentication result code Session.errorId, RBAC role activations Session.getRoles(), Admin Role activations Session.getAdminRoles(), Password policy codes Session.warnings, Session.expirationSeconds, Session.graceLogins and more.
+Throws:
+SecurityException - in the event of data validation failure, security policy violation or DAO error.</p>
+<h2 id="simple-createsession">Simple createSession</h2>
+<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-java" data-lang="java"><span style="color:#a2f">@test</span>
+<span style="color:#a2f;font-weight:bold">public</span> <span style="color:#0b0;font-weight:bold">void</span> <span style="color:#00a000">createSessionTest</span><span style="color:#666">(</span>String userId<span style="color:#666">,</span> String password<span style="color:#666">,</span> <span style="color:#0b0;font-weight:bold">int</span> expectedRoles<span style="color:#666">)</span>
+<span style="color:#666">{</span>
+    String szLocation <span style="color:#666">=</span> <span style="color:#b44">&#34;.createSession&#34;</span><span style="color:#666">;</span>
+    <span style="color:#a2f;font-weight:bold">try</span>
+    <span style="color:#666">{</span>
+        <span style="color:#080;font-style:italic">// Instantiate the AccessMgr implementation which perform runtime RBAC operations.
+</span><span style="color:#080;font-style:italic"></span>        AccessMgr accessMgr <span style="color:#666">=</span> AccessMgrFactory<span style="color:#666">.</span><span style="color:#b44">createInstance</span><span style="color:#666">(</span><span style="color:#666">)</span><span style="color:#666">;</span>
+
+        <span style="color:#080;font-style:italic">// The User entity is used to pass data into the createSession API.
+</span><span style="color:#080;font-style:italic"></span>        User user <span style="color:#666">=</span> <span style="color:#a2f;font-weight:bold">new</span> User<span style="color:#666">(</span>userId<span style="color:#666">,</span> password<span style="color:#666">)</span><span style="color:#666">;</span>
+
+        <span style="color:#080;font-style:italic">// This API will return a Session object that contains the User&#39;s activated Roles and other info.
+</span><span style="color:#080;font-style:italic"></span>        Session session <span style="color:#666">=</span> accessMgr<span style="color:#666">.</span><span style="color:#b44">createSession</span><span style="color:#666">(</span>user<span style="color:#666">,</span> <span style="color:#a2f;font-weight:bold">false</span><span style="color:#666">)</span><span style="color:#666">;</span>
+    <span style="color:#666">}</span>
+    <span style="color:#a2f;font-weight:bold">catch</span> <span style="color:#666">(</span>SecurityException ex<span style="color:#666">)</span>
+    <span style="color:#666">{</span>
+        LOG<span style="color:#666">.</span><span style="color:#b44">error</span><span style="color:#666">(</span>szLocation <span style="color:#666">+</span> <span style="color:#b44">&#34; userId [&#34;</span> <span style="color:#666">+</span> userId <span style="color:#666">+</span> <span style="color:#b44">&#34;]  caught SecurityException rc=&#34;</span> <span style="color:#666">+</span> ex<span style="color:#666">.</span><span style="color:#b44">getErrorId</span><span style="color:#6 [...]
+        fail<span style="color:#666">(</span>ex<span style="color:#666">.</span><span style="color:#b44">getMessage</span><span style="color:#666">(</span><span style="color:#666">)</span><span style="color:#666">)</span><span style="color:#666">;</span>
+    <span style="color:#666">}</span>
+<span style="color:#666">}</span>
+</code></pre></div>
+
+            
+    <div class="nav">
+        <div class="nav_prev">
+            
+                
+                <a href="4-fortress-code-samples.html">4 - Fortress Code Samples</a>
+            
+        </div>
+        <div class="nav_up">
+            
+                
+                <a href="4-fortress-code-samples.html">4 - Fortress Code Samples</a>
+            
+        </div>
+        <div class="nav_next">
+            
+                
+                <a href="4.2-check-access.html">4.2 - Check Access</a>
+            
+        </div>
+        <div class="clearfix"></div>
+    </div>
+
+
+        </div>
+        <div id="endContent"></div>
+    </div>
+
+    <div id="footer">
+    &copy; 2003-2022, <a href="http://www.apache.org">The Apache Software Foundation</a> - <a href="/privacy-policy.html">Privacy Policy</a><br />
+    Apache Directory, ApacheDS, Apache Directory Server, Apache Directory Studio, Apache LDAP API, Apache Triplesec,
+    Triplesec, Apache Mavibot, Mavibot, Apache eSCIMo, eSCIMo, Apache SCIMple, SCIMple,Fortress, Apache Fortress, EnMasse,
+    Apache EnMasse, Apache Kerby, Kerby, Apache, the Apache feather logo, and the Apache Directory project logos are
+    trademarks of The Apache Software Foundation.
+</div>
+
+</div>
+
+</body>
+
+</html>
diff --git a/content/fortress/user-guide/4.2-check-access.html b/content/fortress/user-guide/4.2-check-access.html
new file mode 100644
index 00000000..491ea7bb
--- /dev/null
+++ b/content/fortress/user-guide/4.2-check-access.html
@@ -0,0 +1,232 @@
+<!DOCTYPE html>
+
+<html lang="en">
+<head>
+    <meta charset="utf-8">
+    <title>4.2 - Check Access &mdash; Apache Directory</title>
+
+    <link href="/css/common.css" rel="stylesheet" type="text/css"/>
+    <link href="/css/turquoise.css" rel="stylesheet" type="text/css"/>
+
+    <link rel="shortcut icon" href="/images/server-icon_16x16.png" />
+</head>
+
+<body>
+<div id="container">
+    <div id="header">
+    <div id="subProjectsNavBar">
+        <a href="/">
+             
+                Main
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/apacheds/">
+             
+                ApacheDS
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/studio/">
+             
+                Studio
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/api/">
+             
+                LDAP API
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/mavibot/">
+             
+                Mavibot
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/scimple/">
+             
+                SCIMple
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/fortress/">
+            
+                <strong>Fortress</strong>
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/kerby/">
+             
+                Kerby
+            
+        </a>
+    </div>
+</div>
+
+
+    <div id="content">
+        <div id="leftColumn">
+            <div id="navigation">
+                
+                <h5>Fortress</h5>
+                <ul>
+                    <li><a href="/fortress/">Home</a></li>
+                    <li><a href="/fortress/history.html">History</a></li>
+                    <li><a href="/fortress/news.html">News</a></li>
+                </ul>
+
+                <h5>Downloads</h5>
+                <ul>
+                    <li><a href="/fortress/downloads.html">Fortress 2.0.8</a>&nbsp;&nbsp;<img src="/images/new_badge.gif" alt="" style="margin-bottom:-3px;" border="0"></li>
+                    <li><a href="/fortress/download-old-versions.html">Older versions</a></li>
+                </ul>
+
+                
+
+                <h5>Documentation</h5>
+                <ul>
+                    <li><a href="/fortress/overview.html">Overview</a></li>
+                    <li><a href="/fortress/installation.html">Installation Guide</a></li>
+                    <li><a href="/fortress/gen-docs/latest/apidocs/">JavaDocs</a></li>
+                    <li><a href="/fortress/user-guide.html">Users Guide</a></li>
+                    <li><a href="/fortress/user-guide-advanced.html">Advanced Users Guide</a></li>
+                    <li><a href="/fortress/coding-standards.html">Coding Standards</a></li>
+                    <li><a href="/fortress/testimonials.html">Testimonials</a></li>
+                    <li><a href="/fortress/developer-guide.html">Developer Guide</a></li>
+                    
+                    
+                </ul>
+
+                <h5>Support</h5>
+<ul>
+    <li><a href="/mailing-lists-and-irc.html">Mailing Lists &amp; IRC</a></li>
+    <li><a href="/sources.html">Sources</a></li>
+    <li><a href="/issue-tracking.html">Issue Tracking</a></li>
+    <li><a href="/commercial-support.html">Commercial Support</a></li>
+</ul>
+
+<h5>Community</h5>
+<ul>
+    <li><a href="/contribute.html">How to Contribute</a></li>
+    <li><a href="/team.html">Team</a></li>
+    <li><a href="/original-project-proposal.html">Original Project Proposal</a></li>
+    <li><a href="/special-thanks.html" class="external-link" rel="nofollow">Special Thanks</a></li>
+</ul>
+
+<h5>About Apache</h5>
+<ul>
+    <li><a href="http://www.apache.org/">Apache</a></li>
+    <li><a href="http://www.apache.org/licenses/">License</a></li>
+    <li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+    <li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+    <li><a href="http://www.apache.org/security/">Security</a></li>
+</ul>
+
+            </div>
+        </div>
+        <div id="rightColumn">
+            
+    <div class="nav">
+        <div class="nav_prev">
+            
+                
+                <a href="4.1-create-session.html">4.1 - Create Session</a>
+            
+        </div>
+        <div class="nav_up">
+            
+                
+                <a href="4-fortress-code-samples.html">4 - Fortress Code Samples</a>
+            
+        </div>
+        <div class="nav_next">
+            
+                
+                <a href="4.3-session-permissions.html">4.3 - Session Permissions</a>
+            
+        </div>
+        <div class="clearfix"></div>
+    </div>
+
+
+            
+	<h1 id="42---check-access">4.2 - Check Access</h1>
+<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-java" data-lang="java"><span style="color:#0b0;font-weight:bold">boolean</span> <span style="color:#00a000">checkAccess</span><span style="color:#666">(</span>Session session<span style="color:#666">,</span> Permission perm<span style="color:#666">)</span> <span style="color:#a2f;font-weight:bold">throws</span> SecurityException
+</code></pre></div><p>Perform user RBAC authorization. This function returns a Boolean value meaning whether the subject of a given session is allowed
+not to perform a given operation on a given object. The function is valid if and only if the session is a valid Fortress session,
+the object is a member of the OBJS data set, and the operation is a member of the OPS data set. The session&rsquo;s subject has the permission
+to perform the operation on that object if and only if that permission is assigned to (at least) one of the session&rsquo;s active roles.
+This implementation will verify the roles or userId correspond to the subject&rsquo;s active roles are registered in the object&rsquo;s access control list.</p>
+<p>Parameters:
+perm - must contain the object, Permission.objName, and operation, Permission.opName, of permission User is trying to access.
+session - This object must be instantiated by calling createSession(org.apache.directory.fortress.core.model.User, boolean) method before passing into the method. No variables need to be set by client after returned from createSession.
+Returns:
+True if user has access, false otherwise.
+Throws:
+SecurityException - in the event of data validation failure, security policy violation or DAO error.</p>
+<h2 id="checkaccess">checkAccess</h2>
+<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-java" data-lang="java"><span style="color:#a2f">@test</span>
+<span style="color:#a2f;font-weight:bold">public</span> <span style="color:#a2f;font-weight:bold">static</span> <span style="color:#0b0;font-weight:bold">void</span> <span style="color:#00a000">testCheckAccess</span><span style="color:#666">(</span> Session session<span style="color:#666">,</span> String objectName<span style="color:#666">,</span> String operationName <span style="color:#666">)</span>
+<span style="color:#666">{</span>
+    String szLocation <span style="color:#666">=</span> <span style="color:#b44">&#34;.testCheckAccess&#34;</span><span style="color:#666">;</span>
+    <span style="color:#a2f;font-weight:bold">try</span>
+    <span style="color:#666">{</span>
+        <span style="color:#080;font-style:italic">// Instantiate the AccessMgr implementation.
+</span><span style="color:#080;font-style:italic"></span>        AccessMgr accessMgr <span style="color:#666">=</span> AccessMgrFactory<span style="color:#666">.</span><span style="color:#b44">createInstance</span><span style="color:#666">(</span><span style="color:#666">)</span><span style="color:#666">;</span>
+        Permission inPerm <span style="color:#666">=</span> <span style="color:#a2f;font-weight:bold">new</span> Permission<span style="color:#666">(</span> objectName<span style="color:#666">,</span> operationName <span style="color:#666">)</span><span style="color:#666">;</span>
+        
+        <span style="color:#080;font-style:italic">// Using Session object returned from createSession
+</span><span style="color:#080;font-style:italic"></span>        <span style="color:#0b0;font-weight:bold">boolean</span> result <span style="color:#666">=</span> accessMgr<span style="color:#666">.</span><span style="color:#b44">checkAccess</span><span style="color:#666">(</span> session<span style="color:#666">,</span> inPerm <span style="color:#666">)</span><span style="color:#666">;</span>
+        assertTrue<span style="color:#666">(</span> szLocation<span style="color:#666">,</span> result <span style="color:#666">)</span><span style="color:#666">;</span>
+    <span style="color:#666">}</span>
+    <span style="color:#a2f;font-weight:bold">catch</span> <span style="color:#666">(</span> SecurityException ex <span style="color:#666">)</span>
+    <span style="color:#666">{</span>
+        LOG<span style="color:#666">.</span><span style="color:#b44">error</span><span style="color:#666">(</span> szLocation <span style="color:#666">+</span> <span style="color:#b44">&#34; caught SecurityException rc=&#34;</span> <span style="color:#666">+</span> ex<span style="color:#666">.</span><span style="color:#b44">getErrorId</span><span style="color:#666">(</span><span style="color:#666">)</span> <span style="color:#666">+</span> <span style="color:#b44">&#34;, msg=&#34;</span> [...]
+        fail<span style="color:#666">(</span> ex<span style="color:#666">.</span><span style="color:#b44">getMessage</span><span style="color:#666">(</span><span style="color:#666">)</span> <span style="color:#666">)</span><span style="color:#666">;</span>
+    <span style="color:#666">}</span>
+<span style="color:#666">}</span>
+</code></pre></div>
+
+            
+    <div class="nav">
+        <div class="nav_prev">
+            
+                
+                <a href="4.1-create-session.html">4.1 - Create Session</a>
+            
+        </div>
+        <div class="nav_up">
+            
+                
+                <a href="4-fortress-code-samples.html">4 - Fortress Code Samples</a>
+            
+        </div>
+        <div class="nav_next">
+            
+                
+                <a href="4.3-session-permissions.html">4.3 - Session Permissions</a>
+            
+        </div>
+        <div class="clearfix"></div>
+    </div>
+
+
+        </div>
+        <div id="endContent"></div>
+    </div>
+
+    <div id="footer">
+    &copy; 2003-2022, <a href="http://www.apache.org">The Apache Software Foundation</a> - <a href="/privacy-policy.html">Privacy Policy</a><br />
+    Apache Directory, ApacheDS, Apache Directory Server, Apache Directory Studio, Apache LDAP API, Apache Triplesec,
+    Triplesec, Apache Mavibot, Mavibot, Apache eSCIMo, eSCIMo, Apache SCIMple, SCIMple,Fortress, Apache Fortress, EnMasse,
+    Apache EnMasse, Apache Kerby, Kerby, Apache, the Apache feather logo, and the Apache Directory project logos are
+    trademarks of The Apache Software Foundation.
+</div>
+
+</div>
+
+</body>
+
+</html>
diff --git a/content/fortress/user-guide/4.3-session-permissions.html b/content/fortress/user-guide/4.3-session-permissions.html
new file mode 100644
index 00000000..6d4b5db7
--- /dev/null
+++ b/content/fortress/user-guide/4.3-session-permissions.html
@@ -0,0 +1,232 @@
+<!DOCTYPE html>
+
+<html lang="en">
+<head>
+    <meta charset="utf-8">
+    <title>4.3 - Session Permissions &mdash; Apache Directory</title>
+
+    <link href="/css/common.css" rel="stylesheet" type="text/css"/>
+    <link href="/css/turquoise.css" rel="stylesheet" type="text/css"/>
+
+    <link rel="shortcut icon" href="/images/server-icon_16x16.png" />
+</head>
+
+<body>
+<div id="container">
+    <div id="header">
+    <div id="subProjectsNavBar">
+        <a href="/">
+             
+                Main
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/apacheds/">
+             
+                ApacheDS
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/studio/">
+             
+                Studio
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/api/">
+             
+                LDAP API
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/mavibot/">
+             
+                Mavibot
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/scimple/">
+             
+                SCIMple
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/fortress/">
+            
+                <strong>Fortress</strong>
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/kerby/">
+             
+                Kerby
+            
+        </a>
+    </div>
+</div>
+
+
+    <div id="content">
+        <div id="leftColumn">
+            <div id="navigation">
+                
+                <h5>Fortress</h5>
+                <ul>
+                    <li><a href="/fortress/">Home</a></li>
+                    <li><a href="/fortress/history.html">History</a></li>
+                    <li><a href="/fortress/news.html">News</a></li>
+                </ul>
+
+                <h5>Downloads</h5>
+                <ul>
+                    <li><a href="/fortress/downloads.html">Fortress 2.0.8</a>&nbsp;&nbsp;<img src="/images/new_badge.gif" alt="" style="margin-bottom:-3px;" border="0"></li>
+                    <li><a href="/fortress/download-old-versions.html">Older versions</a></li>
+                </ul>
+
+                
+
+                <h5>Documentation</h5>
+                <ul>
+                    <li><a href="/fortress/overview.html">Overview</a></li>
+                    <li><a href="/fortress/installation.html">Installation Guide</a></li>
+                    <li><a href="/fortress/gen-docs/latest/apidocs/">JavaDocs</a></li>
+                    <li><a href="/fortress/user-guide.html">Users Guide</a></li>
+                    <li><a href="/fortress/user-guide-advanced.html">Advanced Users Guide</a></li>
+                    <li><a href="/fortress/coding-standards.html">Coding Standards</a></li>
+                    <li><a href="/fortress/testimonials.html">Testimonials</a></li>
+                    <li><a href="/fortress/developer-guide.html">Developer Guide</a></li>
+                    
+                    
+                </ul>
+
+                <h5>Support</h5>
+<ul>
+    <li><a href="/mailing-lists-and-irc.html">Mailing Lists &amp; IRC</a></li>
+    <li><a href="/sources.html">Sources</a></li>
+    <li><a href="/issue-tracking.html">Issue Tracking</a></li>
+    <li><a href="/commercial-support.html">Commercial Support</a></li>
+</ul>
+
+<h5>Community</h5>
+<ul>
+    <li><a href="/contribute.html">How to Contribute</a></li>
+    <li><a href="/team.html">Team</a></li>
+    <li><a href="/original-project-proposal.html">Original Project Proposal</a></li>
+    <li><a href="/special-thanks.html" class="external-link" rel="nofollow">Special Thanks</a></li>
+</ul>
+
+<h5>About Apache</h5>
+<ul>
+    <li><a href="http://www.apache.org/">Apache</a></li>
+    <li><a href="http://www.apache.org/licenses/">License</a></li>
+    <li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+    <li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+    <li><a href="http://www.apache.org/security/">Security</a></li>
+</ul>
+
+            </div>
+        </div>
+        <div id="rightColumn">
+            
+    <div class="nav">
+        <div class="nav_prev">
+            
+                
+                <a href="4.2-check-access.html">4.2 - Check Access</a>
+            
+        </div>
+        <div class="nav_up">
+            
+                
+                <a href="4-fortress-code-samples.html">4 - Fortress Code Samples</a>
+            
+        </div>
+        <div class="nav_next">
+            
+                
+                <a href="4.4-activate-role.html">4.4 - Add Active Role</a>
+            
+        </div>
+        <div class="clearfix"></div>
+    </div>
+
+
+            
+	<h1 id="43---session-permissions">4.3 - Session Permissions</h1>
+<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-java" data-lang="java">List<span style="color:#666">&lt;</span>Permission<span style="color:#666">&gt;</span> <span style="color:#00a000">sessionPermissions</span><span style="color:#666">(</span> Session session <span style="color:#666">)</span> <span style="color:#a2f;font-weight:bold">throws</span> SecurityException
+</code></pre></div><p>This function returns the permissions of the session, i.e., the permissions assigned to its authorized roles. The function is valid if and only if the session is a valid Fortress session.</p>
+<p>Parameters:
+session - This object must be instantiated by calling createSession(org.apache.directory.fortress.core.model.User, boolean) method before passing into the method. No variables need to be set by client after returned from createSession.
+Returns:
+List<Permission> containing permissions (op, obj) active for user&rsquo;s session.
+Throws:
+SecurityException - is thrown if runtime error occurs with system.</p>
+<h2 id="sessionpermissions">sessionPermissions</h2>
+<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-java" data-lang="java"><span style="color:#a2f">@test</span>
+<span style="color:#a2f;font-weight:bold">public</span> <span style="color:#a2f;font-weight:bold">static</span> <span style="color:#0b0;font-weight:bold">void</span> <span style="color:#00a000">testSessionPermissions</span><span style="color:#666">(</span> Session session <span style="color:#666">)</span>
+<span style="color:#666">{</span>
+    String szLocation <span style="color:#666">=</span> <span style="color:#b44">&#34;.testSessionPermissions&#34;</span><span style="color:#666">;</span>
+    <span style="color:#a2f;font-weight:bold">try</span>
+    <span style="color:#666">{</span>
+        <span style="color:#080;font-style:italic">// Instantiate the AccessMgr implementation.
+</span><span style="color:#080;font-style:italic"></span>        AccessMgr accessMgr <span style="color:#666">=</span> AccessMgrFactory<span style="color:#666">.</span><span style="color:#b44">createInstance</span><span style="color:#666">(</span><span style="color:#666">)</span><span style="color:#666">;</span>
+        
+        <span style="color:#080;font-style:italic">// Using Session object returned from createSession
+</span><span style="color:#080;font-style:italic"></span>        List<span style="color:#666">&lt;</span>Permission<span style="color:#666">&gt;</span> perms <span style="color:#666">=</span> accessMgr<span style="color:#666">.</span><span style="color:#b44">sessionPermissions</span><span style="color:#666">(</span> session <span style="color:#666">)</span><span style="color:#666">;</span>
+        assertNotNull<span style="color:#666">(</span> perms <span style="color:#666">)</span><span style="color:#666">;</span>
+        <span style="color:#a2f;font-weight:bold">for</span> <span style="color:#666">(</span> Permission perm <span style="color:#666">:</span> perms  <span style="color:#666">)</span>
+        <span style="color:#666">{</span>
+            <span style="color:#080;font-style:italic">// A Permission consists of an object name and operation name.
+</span><span style="color:#080;font-style:italic"></span>            LOG<span style="color:#666">.</span><span style="color:#b44">info</span><span style="color:#666">(</span> szLocation <span style="color:#666">+</span> <span style="color:#b44">&#34; user [&#34;</span> <span style="color:#666">+</span> session<span style="color:#666">.</span><span style="color:#b44">getUserId</span><span style="color:#666">(</span><span style="color:#666">)</span> <span style="color:#666">+</span> <span  [...]
+            <span style="color:#666">+</span> perm<span style="color:#666">.</span><span style="color:#b44">getObjName</span><span style="color:#666">(</span><span style="color:#666">)</span> <span style="color:#666">+</span> <span style="color:#b44">&#34;] operation name [&#34;</span> <span style="color:#666">+</span> perm<span style="color:#666">.</span><span style="color:#b44">getOpName</span><span style="color:#666">(</span><span style="color:#666">)</span> <span style="color:#666">+ [...]
+        <span style="color:#666">}</span>
+    <span style="color:#666">}</span>
+    <span style="color:#a2f;font-weight:bold">catch</span> <span style="color:#666">(</span> SecurityException ex <span style="color:#666">)</span>
+    <span style="color:#666">{</span>
+        LOG<span style="color:#666">.</span><span style="color:#b44">error</span><span style="color:#666">(</span> szLocation <span style="color:#666">+</span> <span style="color:#b44">&#34; caught SecurityException rc=&#34;</span> <span style="color:#666">+</span> ex<span style="color:#666">.</span><span style="color:#b44">getErrorId</span><span style="color:#666">(</span><span style="color:#666">)</span> <span style="color:#666">+</span> <span style="color:#b44">&#34;, msg=&#34;</span> [...]
+        fail<span style="color:#666">(</span> ex<span style="color:#666">.</span><span style="color:#b44">getMessage</span><span style="color:#666">(</span><span style="color:#666">)</span> <span style="color:#666">)</span><span style="color:#666">;</span>
+    <span style="color:#666">}</span>
+<span style="color:#666">}</span>
+</code></pre></div>
+
+            
+    <div class="nav">
+        <div class="nav_prev">
+            
+                
+                <a href="4.2-check-access.html">4.2 - Check Access</a>
+            
+        </div>
+        <div class="nav_up">
+            
+                
+                <a href="4-fortress-code-samples.html">4 - Fortress Code Samples</a>
+            
+        </div>
+        <div class="nav_next">
+            
+                
+                <a href="4.4-activate-role.html">4.4 - Add Active Role</a>
+            
+        </div>
+        <div class="clearfix"></div>
+    </div>
+
+
+        </div>
+        <div id="endContent"></div>
+    </div>
+
+    <div id="footer">
+    &copy; 2003-2022, <a href="http://www.apache.org">The Apache Software Foundation</a> - <a href="/privacy-policy.html">Privacy Policy</a><br />
+    Apache Directory, ApacheDS, Apache Directory Server, Apache Directory Studio, Apache LDAP API, Apache Triplesec,
+    Triplesec, Apache Mavibot, Mavibot, Apache eSCIMo, eSCIMo, Apache SCIMple, SCIMple,Fortress, Apache Fortress, EnMasse,
+    Apache EnMasse, Apache Kerby, Kerby, Apache, the Apache feather logo, and the Apache Directory project logos are
+    trademarks of The Apache Software Foundation.
+</div>
+
+</div>
+
+</body>
+
+</html>
diff --git a/content/fortress/user-guide/4.4-activate-role.html b/content/fortress/user-guide/4.4-activate-role.html
new file mode 100644
index 00000000..7e20630e
--- /dev/null
+++ b/content/fortress/user-guide/4.4-activate-role.html
@@ -0,0 +1,230 @@
+<!DOCTYPE html>
+
+<html lang="en">
+<head>
+    <meta charset="utf-8">
+    <title>4.4 - Add Active Role &mdash; Apache Directory</title>
+
+    <link href="/css/common.css" rel="stylesheet" type="text/css"/>
+    <link href="/css/turquoise.css" rel="stylesheet" type="text/css"/>
+
+    <link rel="shortcut icon" href="/images/server-icon_16x16.png" />
+</head>
+
+<body>
+<div id="container">
+    <div id="header">
+    <div id="subProjectsNavBar">
+        <a href="/">
+             
+                Main
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/apacheds/">
+             
+                ApacheDS
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/studio/">
+             
+                Studio
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/api/">
+             
+                LDAP API
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/mavibot/">
+             
+                Mavibot
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/scimple/">
+             
+                SCIMple
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/fortress/">
+            
+                <strong>Fortress</strong>
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/kerby/">
+             
+                Kerby
+            
+        </a>
+    </div>
+</div>
+
+
+    <div id="content">
+        <div id="leftColumn">
+            <div id="navigation">
+                
+                <h5>Fortress</h5>
+                <ul>
+                    <li><a href="/fortress/">Home</a></li>
+                    <li><a href="/fortress/history.html">History</a></li>
+                    <li><a href="/fortress/news.html">News</a></li>
+                </ul>
+
+                <h5>Downloads</h5>
+                <ul>
+                    <li><a href="/fortress/downloads.html">Fortress 2.0.8</a>&nbsp;&nbsp;<img src="/images/new_badge.gif" alt="" style="margin-bottom:-3px;" border="0"></li>
+                    <li><a href="/fortress/download-old-versions.html">Older versions</a></li>
+                </ul>
+
+                
+
+                <h5>Documentation</h5>
+                <ul>
+                    <li><a href="/fortress/overview.html">Overview</a></li>
+                    <li><a href="/fortress/installation.html">Installation Guide</a></li>
+                    <li><a href="/fortress/gen-docs/latest/apidocs/">JavaDocs</a></li>
+                    <li><a href="/fortress/user-guide.html">Users Guide</a></li>
+                    <li><a href="/fortress/user-guide-advanced.html">Advanced Users Guide</a></li>
+                    <li><a href="/fortress/coding-standards.html">Coding Standards</a></li>
+                    <li><a href="/fortress/testimonials.html">Testimonials</a></li>
+                    <li><a href="/fortress/developer-guide.html">Developer Guide</a></li>
+                    
+                    
+                </ul>
+
+                <h5>Support</h5>
+<ul>
+    <li><a href="/mailing-lists-and-irc.html">Mailing Lists &amp; IRC</a></li>
+    <li><a href="/sources.html">Sources</a></li>
+    <li><a href="/issue-tracking.html">Issue Tracking</a></li>
+    <li><a href="/commercial-support.html">Commercial Support</a></li>
+</ul>
+
+<h5>Community</h5>
+<ul>
+    <li><a href="/contribute.html">How to Contribute</a></li>
+    <li><a href="/team.html">Team</a></li>
+    <li><a href="/original-project-proposal.html">Original Project Proposal</a></li>
+    <li><a href="/special-thanks.html" class="external-link" rel="nofollow">Special Thanks</a></li>
+</ul>
+
+<h5>About Apache</h5>
+<ul>
+    <li><a href="http://www.apache.org/">Apache</a></li>
+    <li><a href="http://www.apache.org/licenses/">License</a></li>
+    <li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+    <li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+    <li><a href="http://www.apache.org/security/">Security</a></li>
+</ul>
+
+            </div>
+        </div>
+        <div id="rightColumn">
+            
+    <div class="nav">
+        <div class="nav_prev">
+            
+                
+                <a href="4.3-session-permissions.html">4.3 - Session Permissions</a>
+            
+        </div>
+        <div class="nav_up">
+            
+                
+                <a href="4-fortress-code-samples.html">4 - Fortress Code Samples</a>
+            
+        </div>
+        <div class="nav_next">
+            
+                
+                <a href="4.5-deactivate-role.html">4.5 - Drop Active Role</a>
+            
+        </div>
+        <div class="clearfix"></div>
+    </div>
+
+
+            
+	<h1 id="44---add-active-role">4.4 - Add Active Role</h1>
+<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-java" data-lang="java"><span style="color:#0b0;font-weight:bold">void</span> <span style="color:#00a000">addActiveRole</span><span style="color:#666">(</span>Session session<span style="color:#666">,</span> UserRole role<span style="color:#666">)</span> <span style="color:#a2f;font-weight:bold">throws</span> SecurityException
+</code></pre></div><p>This function adds a role as an active role of a session whose owner is a given user.</p>
+<p>The function is valid if and only if:
+the user is a member of the USERS data set
+the role is a member of the ROLES data set
+the role inclusion does not violate Dynamic Separation of Duty Relationships
+the session is a valid Fortress session
+the user is authorized to that role
+the session is owned by that user.</p>
+<p>Parameters:
+session - object contains the user&rsquo;s returned RBAC session from the createSession method.
+role - object contains the role name, UserRole.name, to be activated into session.
+Throws:
+SecurityException - is thrown if user is not allowed to activate or runtime error occurs with system.</p>
+<h2 id="addactiverole">addActiveRole</h2>
+<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-java" data-lang="java"><span style="color:#a2f">@test</span>
+<span style="color:#a2f;font-weight:bold">public</span> <span style="color:#a2f;font-weight:bold">static</span> <span style="color:#0b0;font-weight:bold">void</span> <span style="color:#00a000">testAddActiveRole</span><span style="color:#666">(</span> Session session<span style="color:#666">,</span> String roleName <span style="color:#666">)</span>
+<span style="color:#666">{</span>
+    String szLocation <span style="color:#666">=</span> <span style="color:#b44">&#34;.testAddActiveRole&#34;</span><span style="color:#666">;</span>
+    <span style="color:#a2f;font-weight:bold">try</span>
+    <span style="color:#666">{</span>
+        <span style="color:#080;font-style:italic">// Instantiate the AccessMgr implementation.
+</span><span style="color:#080;font-style:italic"></span>        AccessMgr accessMgr <span style="color:#666">=</span> AccessMgrFactory<span style="color:#666">.</span><span style="color:#b44">createInstance</span><span style="color:#666">(</span><span style="color:#666">)</span><span style="color:#666">;</span>
+        UserRole userRole <span style="color:#666">=</span> <span style="color:#a2f;font-weight:bold">new</span> UserRole<span style="color:#666">(</span> session<span style="color:#666">.</span><span style="color:#b44">getUserId</span><span style="color:#666">(</span><span style="color:#666">)</span><span style="color:#666">,</span> roleName <span style="color:#666">)</span><span style="color:#666">;</span>
+        accessMgr<span style="color:#666">.</span><span style="color:#b44">addActiveRole</span><span style="color:#666">(</span> session<span style="color:#666">,</span> userRole <span style="color:#666">)</span><span style="color:#666">;</span>
+    <span style="color:#666">}</span>
+    <span style="color:#a2f;font-weight:bold">catch</span> <span style="color:#666">(</span> SecurityException ex <span style="color:#666">)</span>
+    <span style="color:#666">{</span>
+        LOG<span style="color:#666">.</span><span style="color:#b44">error</span><span style="color:#666">(</span> szLocation <span style="color:#666">+</span> <span style="color:#b44">&#34; caught SecurityException rc=&#34;</span> <span style="color:#666">+</span> ex<span style="color:#666">.</span><span style="color:#b44">getErrorId</span><span style="color:#666">(</span><span style="color:#666">)</span> <span style="color:#666">+</span> <span style="color:#b44">&#34;, msg=&#34;</span> [...]
+        fail<span style="color:#666">(</span> ex<span style="color:#666">.</span><span style="color:#b44">getMessage</span><span style="color:#666">(</span><span style="color:#666">)</span> <span style="color:#666">)</span><span style="color:#666">;</span>
+    <span style="color:#666">}</span>
+<span style="color:#666">}</span>
+</code></pre></div>
+
+            
+    <div class="nav">
+        <div class="nav_prev">
+            
+                
+                <a href="4.3-session-permissions.html">4.3 - Session Permissions</a>
+            
+        </div>
+        <div class="nav_up">
+            
+                
+                <a href="4-fortress-code-samples.html">4 - Fortress Code Samples</a>
+            
+        </div>
+        <div class="nav_next">
+            
+                
+                <a href="4.5-deactivate-role.html">4.5 - Drop Active Role</a>
+            
+        </div>
+        <div class="clearfix"></div>
+    </div>
+
+
+        </div>
+        <div id="endContent"></div>
+    </div>
+
+    <div id="footer">
+    &copy; 2003-2022, <a href="http://www.apache.org">The Apache Software Foundation</a> - <a href="/privacy-policy.html">Privacy Policy</a><br />
+    Apache Directory, ApacheDS, Apache Directory Server, Apache Directory Studio, Apache LDAP API, Apache Triplesec,
+    Triplesec, Apache Mavibot, Mavibot, Apache eSCIMo, eSCIMo, Apache SCIMple, SCIMple,Fortress, Apache Fortress, EnMasse,
+    Apache EnMasse, Apache Kerby, Kerby, Apache, the Apache feather logo, and the Apache Directory project logos are
+    trademarks of The Apache Software Foundation.
+</div>
+
+</div>
+
+</body>
+
+</html>
diff --git a/content/fortress/user-guide/3-configuration.html b/content/fortress/user-guide/4.5-deactivate-role.html
similarity index 50%
copy from content/fortress/user-guide/3-configuration.html
copy to content/fortress/user-guide/4.5-deactivate-role.html
index be6ac0e9..42df76d5 100644
--- a/content/fortress/user-guide/3-configuration.html
+++ b/content/fortress/user-guide/4.5-deactivate-role.html
@@ -3,7 +3,7 @@
 <html lang="en">
 <head>
     <meta charset="utf-8">
-    <title>3 - Fortress Configuration &mdash; Apache Directory</title>
+    <title>4.5 - Drop Active Role &mdash; Apache Directory</title>
 
     <link href="/css/common.css" rel="stylesheet" type="text/css"/>
     <link href="/css/turquoise.css" rel="stylesheet" type="text/css"/>
@@ -131,18 +131,20 @@
     <div class="nav">
         <div class="nav_prev">
             
-                &nbsp;
+                
+                <a href="4.4-activate-role.html">4.4 - Add Active Role</a>
             
         </div>
         <div class="nav_up">
             
                 
-                <a href="../user-guide.html">User Guide</a>
+                <a href="4-fortress-code-samples.html">4 - Fortress Code Samples</a>
             
         </div>
         <div class="nav_next">
             
-                &nbsp;
+                
+                <a href="4.6-authorized-roles.html">4.6 - Authorized Roles</a>
             
         </div>
         <div class="clearfix"></div>
@@ -150,30 +152,52 @@
 
 
             
-	<h1 id="fortress-configuration">Fortress Configuration</h1>
-<p>In order to use the API, you must configure it. As it will connect to a remote LDAP server. Follow the installation instructions to learn how it&rsquo;s done.</p>
-<p>More info here on how it works:</p>
-<ul>
-<li><a href="https://github.com/apache/directory-fortress-core/blob/master/README-CONFIG.md">README for Apache Fortress Configuration Subsystem</a></li>
-</ul>
-
+	<h1 id="45---drop-active-role">4.5 - Drop Active Role</h1>
+<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-java" data-lang="java"><span style="color:#0b0;font-weight:bold">void</span> <span style="color:#00a000">dropActiveRole</span><span style="color:#666">(</span>Session session<span style="color:#666">,</span> UserRole role<span style="color:#666">)</span> <span style="color:#a2f;font-weight:bold">throws</span> SecurityException
+</code></pre></div><p>This function deletes a role from the active role set of a session owned by a given user. The function is valid if and only if the user is a member of the USERS data set, the session object contains a valid Fortress session, the session is owned by the user, and the role is an active role of that session.</p>
+<p>Parameters:
+session - object contains the user&rsquo;s returned RBAC session from the createSession method.
+role - object contains the role name, UserRole.name, to be deactivated.
+Throws:
+SecurityException - is thrown if user is not allowed to deactivate or runtime error occurs with system.</p>
+<h2 id="dropactiverole">dropActiveRole</h2>
+<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-java" data-lang="java"><span style="color:#a2f">@test</span>
+<span style="color:#a2f;font-weight:bold">public</span> <span style="color:#a2f;font-weight:bold">static</span> <span style="color:#0b0;font-weight:bold">void</span> <span style="color:#00a000">testDropActiveRole</span><span style="color:#666">(</span> Session session<span style="color:#666">,</span> String roleName <span style="color:#666">)</span>
+<span style="color:#666">{</span>
+    String szLocation <span style="color:#666">=</span> <span style="color:#b44">&#34;.testDropActiveRole&#34;</span><span style="color:#666">;</span>
+    <span style="color:#a2f;font-weight:bold">try</span>
+    <span style="color:#666">{</span>
+        <span style="color:#080;font-style:italic">// Instantiate the AccessMgr implementation.
+</span><span style="color:#080;font-style:italic"></span>        AccessMgr accessMgr <span style="color:#666">=</span> AccessMgrFactory<span style="color:#666">.</span><span style="color:#b44">createInstance</span><span style="color:#666">(</span><span style="color:#666">)</span><span style="color:#666">;</span>
+        UserRole userRole <span style="color:#666">=</span> <span style="color:#a2f;font-weight:bold">new</span> UserRole<span style="color:#666">(</span> session<span style="color:#666">.</span><span style="color:#b44">getUserId</span><span style="color:#666">(</span><span style="color:#666">)</span><span style="color:#666">,</span> roleName <span style="color:#666">)</span><span style="color:#666">;</span>
+        accessMgr<span style="color:#666">.</span><span style="color:#b44">dropActiveRole</span><span style="color:#666">(</span> session<span style="color:#666">,</span> userRole <span style="color:#666">)</span><span style="color:#666">;</span>
+    <span style="color:#666">}</span>
+    <span style="color:#a2f;font-weight:bold">catch</span> <span style="color:#666">(</span> SecurityException ex <span style="color:#666">)</span>
+    <span style="color:#666">{</span>
+        LOG<span style="color:#666">.</span><span style="color:#b44">error</span><span style="color:#666">(</span> szLocation <span style="color:#666">+</span> <span style="color:#b44">&#34; caught SecurityException rc=&#34;</span> <span style="color:#666">+</span> ex<span style="color:#666">.</span><span style="color:#b44">getErrorId</span><span style="color:#666">(</span><span style="color:#666">)</span> <span style="color:#666">+</span> <span style="color:#b44">&#34;, msg=&#34;</span> [...]
+        fail<span style="color:#666">(</span> ex<span style="color:#666">.</span><span style="color:#b44">getMessage</span><span style="color:#666">(</span><span style="color:#666">)</span> <span style="color:#666">)</span><span style="color:#666">;</span>
+    <span style="color:#666">}</span>
+<span style="color:#666">}</span>
+</code></pre></div>
 
             
     <div class="nav">
         <div class="nav_prev">
             
-                &nbsp;
+                
+                <a href="4.4-activate-role.html">4.4 - Add Active Role</a>
             
         </div>
         <div class="nav_up">
             
                 
-                <a href="../user-guide.html">User Guide</a>
+                <a href="4-fortress-code-samples.html">4 - Fortress Code Samples</a>
             
         </div>
         <div class="nav_next">
             
-                &nbsp;
+                
+                <a href="4.6-authorized-roles.html">4.6 - Authorized Roles</a>
             
         </div>
         <div class="clearfix"></div>
diff --git a/content/fortress/user-guide/4.6-authorized-roles.html b/content/fortress/user-guide/4.6-authorized-roles.html
new file mode 100644
index 00000000..347e987f
--- /dev/null
+++ b/content/fortress/user-guide/4.6-authorized-roles.html
@@ -0,0 +1,228 @@
+<!DOCTYPE html>
+
+<html lang="en">
+<head>
+    <meta charset="utf-8">
+    <title>4.6 - Authorized Roles &mdash; Apache Directory</title>
+
+    <link href="/css/common.css" rel="stylesheet" type="text/css"/>
+    <link href="/css/turquoise.css" rel="stylesheet" type="text/css"/>
+
+    <link rel="shortcut icon" href="/images/server-icon_16x16.png" />
+</head>
+
+<body>
+<div id="container">
+    <div id="header">
+    <div id="subProjectsNavBar">
+        <a href="/">
+             
+                Main
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/apacheds/">
+             
+                ApacheDS
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/studio/">
+             
+                Studio
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/api/">
+             
+                LDAP API
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/mavibot/">
+             
+                Mavibot
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/scimple/">
+             
+                SCIMple
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/fortress/">
+            
+                <strong>Fortress</strong>
+            
+        </a>
+        &nbsp;|&nbsp;
+        <a href="/kerby/">
+             
+                Kerby
+            
+        </a>
+    </div>
+</div>
+
+
+    <div id="content">
+        <div id="leftColumn">
+            <div id="navigation">
+                
+                <h5>Fortress</h5>
+                <ul>
+                    <li><a href="/fortress/">Home</a></li>
+                    <li><a href="/fortress/history.html">History</a></li>
+                    <li><a href="/fortress/news.html">News</a></li>
+                </ul>
+
+                <h5>Downloads</h5>
+                <ul>
+                    <li><a href="/fortress/downloads.html">Fortress 2.0.8</a>&nbsp;&nbsp;<img src="/images/new_badge.gif" alt="" style="margin-bottom:-3px;" border="0"></li>
+                    <li><a href="/fortress/download-old-versions.html">Older versions</a></li>
+                </ul>
+
+                
+
+                <h5>Documentation</h5>
+                <ul>
+                    <li><a href="/fortress/overview.html">Overview</a></li>
+                    <li><a href="/fortress/installation.html">Installation Guide</a></li>
+                    <li><a href="/fortress/gen-docs/latest/apidocs/">JavaDocs</a></li>
+                    <li><a href="/fortress/user-guide.html">Users Guide</a></li>
+                    <li><a href="/fortress/user-guide-advanced.html">Advanced Users Guide</a></li>
+                    <li><a href="/fortress/coding-standards.html">Coding Standards</a></li>
+                    <li><a href="/fortress/testimonials.html">Testimonials</a></li>
+                    <li><a href="/fortress/developer-guide.html">Developer Guide</a></li>
+                    
+                    
+                </ul>
+
+                <h5>Support</h5>
+<ul>
+    <li><a href="/mailing-lists-and-irc.html">Mailing Lists &amp; IRC</a></li>
+    <li><a href="/sources.html">Sources</a></li>
+    <li><a href="/issue-tracking.html">Issue Tracking</a></li>
+    <li><a href="/commercial-support.html">Commercial Support</a></li>
+</ul>
+
+<h5>Community</h5>
+<ul>
+    <li><a href="/contribute.html">How to Contribute</a></li>
+    <li><a href="/team.html">Team</a></li>
+    <li><a href="/original-project-proposal.html">Original Project Proposal</a></li>
+    <li><a href="/special-thanks.html" class="external-link" rel="nofollow">Special Thanks</a></li>
+</ul>
+
+<h5>About Apache</h5>
+<ul>
+    <li><a href="http://www.apache.org/">Apache</a></li>
+    <li><a href="http://www.apache.org/licenses/">License</a></li>
+    <li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+    <li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+    <li><a href="http://www.apache.org/security/">Security</a></li>
+</ul>
+
+            </div>
+        </div>
+        <div id="rightColumn">
+            
+    <div class="nav">
+        <div class="nav_prev">
+            
+                
+                <a href="4.5-deactivate-role.html">4.5 - Drop Active Role</a>
+            
+        </div>
+        <div class="nav_up">
+            
+                
+                <a href="4-fortress-code-samples.html">4 - Fortress Code Samples</a>
+            
+        </div>
+        <div class="nav_next">
+            
+                &nbsp;
+            
+        </div>
+        <div class="clearfix"></div>
+    </div>
+
+
+            
+	<h1 id="46---authorized-roles">4.6 - Authorized Roles</h1>
+<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-java" data-lang="java">Set<span style="color:#666">&lt;</span>String<span style="color:#666">&gt;</span> <span style="color:#00a000">authorizedRoles</span><span style="color:#666">(</span>Session session<span style="color:#666">)</span> <span style="color:#a2f;font-weight:bold">throws</span> SecurityException
+</code></pre></div><p>This function returns the authorized roles associated with a session based on hierarchical relationships. The function is valid if and only if the session is a valid Fortress session.</p>
+<p>Parameters:
+session - object contains the user&rsquo;s returned RBAC session from the createSession method.
+Returns:
+Set<String> containing all roles active in user&rsquo;s session. This will contain inherited roles.
+Throws:
+SecurityException - is thrown if session invalid or system. error.</p>
+<h2 id="authorizedroles">authorizedRoles</h2>
+<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-java" data-lang="java"><span style="color:#a2f">@test</span>
+<span style="color:#a2f;font-weight:bold">public</span> <span style="color:#a2f;font-weight:bold">static</span> <span style="color:#0b0;font-weight:bold">void</span> <span style="color:#00a000">testAuthorizedRoles</span><span style="color:#666">(</span> Session session <span style="color:#666">)</span>
+<span style="color:#666">{</span>
+    String szLocation <span style="color:#666">=</span> <span style="color:#b44">&#34;.testAuthorizedRoles&#34;</span><span style="color:#666">;</span>
+    <span style="color:#a2f;font-weight:bold">try</span>
+    <span style="color:#666">{</span>
+        <span style="color:#080;font-style:italic">// Instantiate the AccessMgr implementation.
+</span><span style="color:#080;font-style:italic"></span>        AccessMgr accessMgr <span style="color:#666">=</span> AccessMgrFactory<span style="color:#666">.</span><span style="color:#b44">createInstance</span><span style="color:#666">(</span><span style="color:#666">)</span><span style="color:#666">;</span>
+        
+        <span style="color:#080;font-style:italic">// Using Session object returned from createSession
+</span><span style="color:#080;font-style:italic"></span>        Set<span style="color:#666">&lt;</span>String<span style="color:#666">&gt;</span> roles <span style="color:#666">=</span> accessMgr<span style="color:#666">.</span><span style="color:#b44">authorizedRoles</span><span style="color:#666">(</span> session <span style="color:#666">)</span><span style="color:#666">;</span>
+        assertNotNull<span style="color:#666">(</span> roles <span style="color:#666">)</span><span style="color:#666">;</span>
+        <span style="color:#a2f;font-weight:bold">for</span> <span style="color:#666">(</span> String roleName <span style="color:#666">:</span> roles  <span style="color:#666">)</span>
+        <span style="color:#666">{</span>
+            LOG<span style="color:#666">.</span><span style="color:#b44">info</span><span style="color:#666">(</span> szLocation <span style="color:#666">+</span> <span style="color:#b44">&#34;user [&#34;</span> <span style="color:#666">+</span> session<span style="color:#666">.</span><span style="color:#b44">getUserId</span><span style="color:#666">(</span><span style="color:#666">)</span> <span style="color:#666">+</span> <span style="color:#b44">&#34;] role [&#34;</span> <span style=" [...]
+        <span style="color:#666">}</span>
+    <span style="color:#666">}</span>
+    <span style="color:#a2f;font-weight:bold">catch</span> <span style="color:#666">(</span> SecurityException ex <span style="color:#666">)</span>
+    <span style="color:#666">{</span>
+        LOG<span style="color:#666">.</span><span style="color:#b44">error</span><span style="color:#666">(</span> szLocation <span style="color:#666">+</span> <span style="color:#b44">&#34; caught SecurityException rc=&#34;</span> <span style="color:#666">+</span> ex<span style="color:#666">.</span><span style="color:#b44">getErrorId</span><span style="color:#666">(</span><span style="color:#666">)</span> <span style="color:#666">+</span> <span style="color:#b44">&#34;, msg=&#34;</span> [...]
+        fail<span style="color:#666">(</span> ex<span style="color:#666">.</span><span style="color:#b44">getMessage</span><span style="color:#666">(</span><span style="color:#666">)</span> <span style="color:#666">)</span><span style="color:#666">;</span>
+    <span style="color:#666">}</span>
+<span style="color:#666">}</span>
+</code></pre></div>
+
+            
+    <div class="nav">
+        <div class="nav_prev">
+            
+                
+                <a href="4.5-deactivate-role.html">4.5 - Drop Active Role</a>
+            
+        </div>
+        <div class="nav_up">
+            
+                
+                <a href="4-fortress-code-samples.html">4 - Fortress Code Samples</a>
+            
+        </div>
+        <div class="nav_next">
+            
+                &nbsp;
+            
+        </div>
+        <div class="clearfix"></div>
+    </div>
+
+
+        </div>
+        <div id="endContent"></div>
+    </div>
+
+    <div id="footer">
+    &copy; 2003-2022, <a href="http://www.apache.org">The Apache Software Foundation</a> - <a href="/privacy-policy.html">Privacy Policy</a><br />
+    Apache Directory, ApacheDS, Apache Directory Server, Apache Directory Studio, Apache LDAP API, Apache Triplesec,
+    Triplesec, Apache Mavibot, Mavibot, Apache eSCIMo, eSCIMo, Apache SCIMple, SCIMple,Fortress, Apache Fortress, EnMasse,
+    Apache EnMasse, Apache Kerby, Kerby, Apache, the Apache feather logo, and the Apache Directory project logos are
+    trademarks of The Apache Software Foundation.
+</div>
+
+</div>
+
+</body>
+
+</html>
diff --git a/content/index.xml b/content/index.xml
index 75e29a26..8cf80911 100644
--- a/content/index.xml
+++ b/content/index.xml
@@ -1448,6 +1448,15 @@ Anyway, we use a subset of ASN/1, as what we have to deal with is the BER/DER en
       <description>4 - Authentication and Authorization Chapter content  4.1 - Authentication  4.1.1 - Simple authentication  4.1.1.1 - Anonymous Authentication 4.1.1.2 - Name/Password Authentication 4.1.1.3 - Unauthenticated Authentication   4.1.2 - SASL authentication  4.1.2.1 - SASL PLAIN text Authentication 4.1.2.2 - SASL CRAM-MD5 Authentication 4.1.2.3 - SASL DIGEST-MD5 Authentication 4.1.2.4 - SASL GSSAPI Authentication 4.1.2.5 - SASL EXTERNAL Authentication 4.1.2.6 - SASL NTLM Aut [...]
     </item>
     
+    <item>
+      <title>4 - Fortress Code Samples</title>
+      <link>https://directory.apache.org/fortress/user-guide/4-fortress-code-samples.html</link>
+      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
+      
+      <guid>https://directory.apache.org/fortress/user-guide/4-fortress-code-samples.html</guid>
+      <description>4 - Apache Fortress Code Samples Table of content  4.1 - Create Session 4.2 - Check Access 4.3 - Session Permissions 4.4 - Add Active Role 4.5 - Drop Active Role 4.6 - Get Authorized Roles  </description>
+    </item>
+    
     <item>
       <title>4 - Identity Backend</title>
       <link>https://directory.apache.org/kerby/user-guide/4-identity-backend.html</link>
@@ -1524,6 +1533,16 @@ $ kinit --version kinit (Heimdal 1.4.1apple1) Copyright 1995-2010 Kungliga Tekni
 A minimal /etc/krb5.conf file looks as follows (make sure the port and host name matches!</description>
     </item>
     
+    <item>
+      <title>4.1 - Create Session</title>
+      <link>https://directory.apache.org/fortress/user-guide/4.1-create-session.html</link>
+      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
+      
+      <guid>https://directory.apache.org/fortress/user-guide/4.1-create-session.html</guid>
+      <description>4.1 - CreateSession Session createSession(User user, boolean isTrusted) throws SecurityException Perform user authentication and role activations in one method. This method must be called once per user prior to calling other methods within this class. The successful result is Session that contains target user&amp;rsquo;s RBAC roles. In addition to checking user password validity it will apply configured password policy checks.
+Parameters: user - Contains User.userId, User.password (optional if isTrusted is &amp;lsquo;true&amp;rsquo;), optional User.</description>
+    </item>
+    
     <item>
       <title>4.1 - Mozilla Thunderbird Integration</title>
       <link>https://directory.apache.org/apacheds/basic-ug/4.1-mozilla-thunderbird.html</link>
@@ -1708,6 +1727,15 @@ We will suppose that the Kerberos server is installed on a server which hostName
 Chapter content  4.2.1 - Introduction 4.2.2 - Definitions 4.2.3 - Enabling access control 4.2.4 - Aci Types 4.</description>
     </item>
     
+    <item>
+      <title>4.2 - Check Access</title>
+      <link>https://directory.apache.org/fortress/user-guide/4.2-check-access.html</link>
+      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
+      
+      <guid>https://directory.apache.org/fortress/user-guide/4.2-check-access.html</guid>
+      <description>4.2 - Check Access boolean checkAccess(Session session, Permission perm) throws SecurityException Perform user RBAC authorization. This function returns a Boolean value meaning whether the subject of a given session is allowed not to perform a given operation on a given object. The function is valid if and only if the session is a valid Fortress session, the object is a member of the OBJS data set, and the operation is a member of the OPS data set.</description>
+    </item>
+    
     <item>
       <title>4.2 - Schema Manager</title>
       <link>https://directory.apache.org/api/user-guide/4.2-schema-manager.html</link>
@@ -2070,6 +2098,16 @@ Partition and Access Control Area Setup For this example we presume you have set
       <description>4.5.9 - Migration from other LDAP servers TODO&amp;hellip;</description>
     </item>
     
+    <item>
+      <title>4.3 - Session Permissions</title>
+      <link>https://directory.apache.org/fortress/user-guide/4.3-session-permissions.html</link>
+      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
+      
+      <guid>https://directory.apache.org/fortress/user-guide/4.3-session-permissions.html</guid>
+      <description>4.3 - Session Permissions List&amp;lt;Permission&amp;gt; sessionPermissions( Session session ) throws SecurityException This function returns the permissions of the session, i.e., the permissions assigned to its authorized roles. The function is valid if and only if the session is a valid Fortress session.
+Parameters: session - This object must be instantiated by calling createSession(org.apache.directory.fortress.core.model.User, boolean) method before passing into the method. No variables need to be set by client after returned from createSession.</description>
+    </item>
+    
     <item>
       <title>4.3. Password Policy</title>
       <link>https://directory.apache.org/apacheds/advanced-ug/4.3-password-policy.html</link>
@@ -2081,6 +2119,35 @@ ApacheDS implements most of the draft.
 Enforcing a strict password policy is extremely punitive to users. It may leads users to workaround the policy by storing their password in a post-it, a workaround that will defeat any password policy.</description>
     </item>
     
+    <item>
+      <title>4.4 - Add Active Role</title>
+      <link>https://directory.apache.org/fortress/user-guide/4.4-activate-role.html</link>
+      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
+      
+      <guid>https://directory.apache.org/fortress/user-guide/4.4-activate-role.html</guid>
+      <description>4.4 - Add Active Role void addActiveRole(Session session, UserRole role) throws SecurityException This function adds a role as an active role of a session whose owner is a given user.
+The function is valid if and only if: the user is a member of the USERS data set the role is a member of the ROLES data set the role inclusion does not violate Dynamic Separation of Duty Relationships the session is a valid Fortress session the user is authorized to that role the session is owned by that user.</description>
+    </item>
+    
+    <item>
+      <title>4.5 - Drop Active Role</title>
+      <link>https://directory.apache.org/fortress/user-guide/4.5-deactivate-role.html</link>
+      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
+      
+      <guid>https://directory.apache.org/fortress/user-guide/4.5-deactivate-role.html</guid>
+      <description>4.5 - Drop Active Role void dropActiveRole(Session session, UserRole role) throws SecurityException This function deletes a role from the active role set of a session owned by a given user. The function is valid if and only if the user is a member of the USERS data set, the session object contains a valid Fortress session, the session is owned by the user, and the role is an active role of that session.</description>
+    </item>
+    
+    <item>
+      <title>4.6 - Authorized Roles</title>
+      <link>https://directory.apache.org/fortress/user-guide/4.6-authorized-roles.html</link>
+      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
+      
+      <guid>https://directory.apache.org/fortress/user-guide/4.6-authorized-roles.html</guid>
+      <description>4.6 - Authorized Roles Set&amp;lt;String&amp;gt; authorizedRoles(Session session) throws SecurityException This function returns the authorized roles associated with a session based on hierarchical relationships. The function is valid if and only if the session is a valid Fortress session.
+Parameters: session - object contains the user&amp;rsquo;s returned RBAC session from the createSession method. Returns: Set containing all roles active in user&amp;rsquo;s session. This will contain inherited roles. Throws: SecurityException - is thrown if session invalid or system.</description>
+    </item>
+    
     <item>
       <title>5 - Administration</title>
       <link>https://directory.apache.org/apacheds/advanced-ug/5-administration.html</link>
@@ -4711,7 +4778,7 @@ The Schema Editor User&amp;rsquo;s Guide is also available as PDF</description>
       
       <guid>https://directory.apache.org/fortress/user-guide-advanced.html</guid>
       <description>About this guide Advanced topics when deploying Fortress.
-Table of contents  Command Line Interface Configuration Exception Handling Load Testing Load Utility Multitenancy Setup  Fortress Core Fortress Web Fortress Rest   Security  </description>
+Table of contents  Command Line Interface Exception Handling Load Testing Load Utility Multitenancy Setup  Fortress Core Fortress Web Fortress Rest   Security  </description>
     </item>
     
     <item>
diff --git a/content/sitemap.xml b/content/sitemap.xml
index 19651e93..59b2dbbe 100644
--- a/content/sitemap.xml
+++ b/content/sitemap.xml
@@ -574,7 +574,7 @@
   
   <url>
     <loc>https://directory.apache.org/fortress/user-guide/3-configuration.html</loc>
-    <lastmod>2022-07-23T14:46:27-05:00</lastmod>
+    <lastmod>2022-07-25T16:08:02-05:00</lastmod>
   </url>
   
   <url>
@@ -712,6 +712,11 @@
     <lastmod>2020-12-29T01:07:19+01:00</lastmod>
   </url>
   
+  <url>
+    <loc>https://directory.apache.org/fortress/user-guide/4-fortress-code-samples.html</loc>
+    <lastmod>2022-07-25T16:08:02-05:00</lastmod>
+  </url>
+  
   <url>
     <loc>https://directory.apache.org/kerby/user-guide/4-identity-backend.html</loc>
     <lastmod>2020-08-08T11:25:14+02:00</lastmod>
@@ -747,6 +752,11 @@
     <lastmod>2020-08-08T11:25:14+02:00</lastmod>
   </url>
   
+  <url>
+    <loc>https://directory.apache.org/fortress/user-guide/4.1-create-session.html</loc>
+    <lastmod>2022-07-25T16:08:02-05:00</lastmod>
+  </url>
+  
   <url>
     <loc>https://directory.apache.org/apacheds/basic-ug/4.1-mozilla-thunderbird.html</loc>
     <lastmod>2020-12-26T08:11:55+01:00</lastmod>
@@ -837,6 +847,11 @@
     <lastmod>2020-08-08T11:25:14+02:00</lastmod>
   </url>
   
+  <url>
+    <loc>https://directory.apache.org/fortress/user-guide/4.2-check-access.html</loc>
+    <lastmod>2022-07-25T16:08:02-05:00</lastmod>
+  </url>
+  
   <url>
     <loc>https://directory.apache.org/api/user-guide/4.2-schema-manager.html</loc>
     <lastmod>2020-12-27T05:24:48+01:00</lastmod>
@@ -1022,11 +1037,31 @@
     <lastmod>2020-08-08T11:25:14+02:00</lastmod>
   </url>
   
+  <url>
+    <loc>https://directory.apache.org/fortress/user-guide/4.3-session-permissions.html</loc>
+    <lastmod>2022-07-25T16:08:02-05:00</lastmod>
+  </url>
+  
   <url>
     <loc>https://directory.apache.org/apacheds/advanced-ug/4.3-password-policy.html</loc>
     <lastmod>2020-08-08T11:25:14+02:00</lastmod>
   </url>
   
+  <url>
+    <loc>https://directory.apache.org/fortress/user-guide/4.4-activate-role.html</loc>
+    <lastmod>2022-07-25T16:08:02-05:00</lastmod>
+  </url>
+  
+  <url>
+    <loc>https://directory.apache.org/fortress/user-guide/4.5-deactivate-role.html</loc>
+    <lastmod>2022-07-25T16:08:02-05:00</lastmod>
+  </url>
+  
+  <url>
+    <loc>https://directory.apache.org/fortress/user-guide/4.6-authorized-roles.html</loc>
+    <lastmod>2022-07-25T16:08:02-05:00</lastmod>
+  </url>
+  
   <url>
     <loc>https://directory.apache.org/apacheds/advanced-ug/5-administration.html</loc>
     <lastmod>2020-08-08T11:25:14+02:00</lastmod>
@@ -1799,7 +1834,7 @@
   
   <url>
     <loc>https://directory.apache.org/fortress.html</loc>
-    <lastmod>2022-07-25T12:18:33-05:00</lastmod>
+    <lastmod>2022-07-25T16:08:02-05:00</lastmod>
   </url>
   
   <url>
@@ -2304,7 +2339,7 @@
   
   <url>
     <loc>https://directory.apache.org/fortress/user-guide.html</loc>
-    <lastmod>2022-07-24T17:12:47-05:00</lastmod>
+    <lastmod>2022-07-25T16:08:02-05:00</lastmod>
   </url>
   
   <url>
@@ -2314,7 +2349,7 @@
   
   <url>
     <loc>https://directory.apache.org/fortress/user-guide-advanced.html</loc>
-    <lastmod>2022-07-24T17:38:44-05:00</lastmod>
+    <lastmod>2022-07-25T16:08:02-05:00</lastmod>
   </url>
   
   <url>