Browseable session backend (<ahref="http://search.cpan.org/perldoc?Apache::Session::Browseable"class="urlextern"title="http://search.cpan.org/perldoc?Apache::Session::Browseable"rel="nofollow">Apache::Session::Browseable</a>) works exactly like Apache::Session::* corresponding module but add index that increase <ahref="documentation/features.html#session_explorer"class="wikilink1"title="documentation:features">session explorer</a> and <ahref="documentation/features.html#session_restrictions"class="wikilink1"title="documentation:features">session restrictions</a> performances.
Browseable session backend (<ahref="https://metacpan.org/pod/Apache::Session::Browseable"class="urlextern"title="https://metacpan.org/pod/Apache::Session::Browseable"rel="nofollow">Apache::Session::Browseable</a>) works exactly like Apache::Session::* corresponding module but add index that increase <ahref="documentation/features.html#session_explorer"class="wikilink1"title="documentation:features">session explorer</a> and <ahref="documentation/features.html#session_restrictions"class="wikilink1"title="documentation:features">session restrictions</a> performances.
</p>
<p>
...
...
@@ -87,37 +87,37 @@ The following table list fields to index depending on the feature you want to in
<tdclass="col0 leftalign"> Password reset </td><tdclass="col1 centeralign"> user </td>
<tdclass="col0 leftalign"> Password reset </td><tdclass="col1 centeralign"> user </td><tdclass="col2 centeralign"> global </td>
</tr>
<trclass="row7 rowodd">
<tdclass="col0 leftalign"> Register </td><tdclass="col1 centeralign"> mail </td>
<tdclass="col0 leftalign"> Register </td><tdclass="col1 centeralign"> mail </td><tdclass="col2 centeralign"> global </td>
</tr>
</table></div>
<!-- EDIT3 TABLE [877-1245] --><divclass="noteimportant"><em>WHATTOTRACE</em> must be replaced by the attribute or macro configured in the What To Trace parameter (REMOTE_USER)
<!-- EDIT3 TABLE [871-1335] --><divclass="noteimportant"><em>WHATTOTRACE</em> must be replaced by the attribute or macro configured in the What To Trace parameter (REMOTE_USER)
</div><divclass="notetip">It is advised to use separate session backends for standard sessions, <abbrtitle="Security Assertion Markup Language">SAML</abbr> sessions and <abbrtitle="Central Authentication Service">CAS</abbr> sessions, in order to manage index separately.
</div><divclass="noteclassic">Documentation below explains how set index on ipAddr and _whatToTrace. Adapt it to configure the index you need.
Go in the Manager and set the session module (<ahref="http://search.cpan.org/perldoc?Apache::Session::Browseable::MySQL"class="urlextern"title="http://search.cpan.org/perldoc?Apache::Session::Browseable::MySQL"rel="nofollow">Apache::Session::Browseable::MySQL</a> for MySQL) in <code>General parameters</code> » <code>Sessions</code> » <code>Session storage</code> » <code>Apache::Session module</code> and add the following parameters (case sensitive):
Go in the Manager and set the session module (<ahref="https://metacpan.org/pod/Apache::Session::Browseable::MySQL"class="urlextern"title="https://metacpan.org/pod/Apache::Session::Browseable::MySQL"rel="nofollow">Apache::Session::Browseable::MySQL</a> for MySQL) in <code>General parameters</code> » <code>Sessions</code> » <code>Session storage</code> » <code>Apache::Session module</code> and add the following parameters (case sensitive):
<h2class="sectionedit10"id="categories_and_applications_in_menu">Categories and applications in menu</h2>
<divclass="level2">
<p>
Create the category “applications”:
```
/usr/share/lemonldap-ng/bin/lemonldap-ng-cli addKey applicationList/applications type category applicationList/applications catname Applications
```
</p>
<p>
Create the application “sample” inside category “applications”:
```
/usr/share/lemonldap-ng/bin/lemonldap-ng-cli addKey applicationList/icons/kmultiple.png” applicationList/applications/sample/options name “Sample application” applicationList/applications/sample/options uri “<ahref="https://sample.example.com/"class="urlextern"title="https://sample.example.com/"rel="nofollow">https://sample.example.com/</a>”
```
</p>
</div>
<!-- EDIT10 SECTION "Categories and applications in menu" [9178-] --></div>
@@ -70,7 +70,7 @@ Install and launch a <a href="http://memcached.org/" class="urlextern" title="ht
</p>
<p>
In the manager: set <ahref="http://search.cpan.org/perldoc?Apache::Session::Memcached"class="urlextern"title="http://search.cpan.org/perldoc?Apache::Session::Memcached"rel="nofollow">Apache::Session::Memcached</a> in <code>General parameters</code> » <code>Sessions</code> » <code>Session storage</code> » <code>Apache::Session module</code> and add the following parameters (case sensitive):
In the manager: set <ahref="https://metacpan.org/pod/Apache::Session::Memcached"class="urlextern"title="https://metacpan.org/pod/Apache::Session::Memcached"rel="nofollow">Apache::Session::Memcached</a> in <code>General parameters</code> » <code>Sessions</code> » <code>Session storage</code> » <code>Apache::Session module</code> and add the following parameters (case sensitive):
See <ahref="http://search.cpan.org/perldoc?Apache::Session::Memcached"class="urlextern"title="http://search.cpan.org/perldoc?Apache::Session::Memcached"rel="nofollow">Apache::Session::Memcached</a> for optional parameters.
See <ahref="https://metacpan.org/pod/Apache::Session::Memcached"class="urlextern"title="https://metacpan.org/pod/Apache::Session::Memcached"rel="nofollow">Apache::Session::Memcached</a> for optional parameters.
<ahref="http://search.cpan.org/perldoc?Apache::Session::Redis"class="urlextern"title="http://search.cpan.org/perldoc?Apache::Session::Redis"rel="nofollow">Apache::Session::Redis</a> is the faster shareable session backend
<ahref="https://metacpan.org/pod/Apache::Session::Redis"class="urlextern"title="https://metacpan.org/pod/Apache::Session::Redis"rel="nofollow">Apache::Session::Redis</a> is the faster shareable session backend
Install and launch a <ahref="http://code.google.com/p/redis/"class="urlextern"title="http://code.google.com/p/redis/"rel="nofollow">Redis server</a>. Install
In the manager: set <ahref="http://search.cpan.org/perldoc?Apache::Session::Redis"class="urlextern"title="http://search.cpan.org/perldoc?Apache::Session::Redis"rel="nofollow">Apache::Session::Redis</a> in <code>General parameters</code> » <code>Sessions</code> » <code>Session storage</code> » <code>Apache::Session module</code> and add the following parameters (case sensitive):
In the manager: set <ahref="https://metacpan.org/pod/Apache::Session::Redis"class="urlextern"title="https://metacpan.org/pod/Apache::Session::Redis"rel="nofollow">Apache::Session::Redis</a> in <code>General parameters</code> » <code>Sessions</code> » <code>Session storage</code> » <code>Apache::Session module</code> and add the following parameters (case sensitive):
@@ -274,11 +274,11 @@ You can use the following rules instead:
<divclass="level3">
<p>
Some characters are encoded in URLs by the browser (such as space,…). To avoid problems, <abbrtitle="LemonLDAP::NG">LL::NG</abbr> decode them using <ahref="http://search.cpan.org/perldoc?Apache2::URI#unescape_url"class="urlextern"title="http://search.cpan.org/perldoc?Apache2::URI#unescape_url"rel="nofollow">http://search.cpan.org/perldoc?Apache2::URI#unescape_url</a>. So write your rules using normal characters.
Some characters are encoded in URLs by the browser (such as space,…). To avoid problems, <abbrtitle="LemonLDAP::NG">LL::NG</abbr> decode them using <ahref="https://metacpan.org/pod/Apache2::URI#unescape_url"class="urlextern"title="https://metacpan.org/pod/Apache2::URI#unescape_url"rel="nofollow">https://metacpan.org/pod/Apache2::URI#unescape_url</a>. So write your rules using normal characters.
<h3class="sectionedit3"id="prepare_the_database">Prepare the database</h3>
<divclass="level3">
...
...
@@ -155,12 +155,12 @@ lemonldap-ng=> q</pre>
<divclass="noteimportant">Change char(32) by char(64) if you use the now recommanded SHA256 hash algorithm. See <ahref="documentation/latest/sessions.html"class="wikilink1"title="documentation:latest:sessions">Sessions</a> for more details
</div>
</div>
<!-- EDIT3 SECTION "Prepare the database" [488-2206] -->
<!-- EDIT3 SECTION "Prepare the database" [468-2186] -->
<h3class="sectionedit4"id="manager">Manager</h3>
<divclass="level3">
<p>
Go in the Manager and set the session module (for example <ahref="http://search.cpan.org/perldoc?Apache::Session::Postgres"class="urlextern"title="http://search.cpan.org/perldoc?Apache::Session::Postgres"rel="nofollow">Apache::Session::Postgres</a> for PostgreSQL) in <code>General parameters</code> » <code>Sessions</code> » <code>Session storage</code> » <code>Apache::Session module</code> and add the following parameters (case sensitive):
Go in the Manager and set the session module (for example <ahref="https://metacpan.org/pod/Apache::Session::Postgres"class="urlextern"title="https://metacpan.org/pod/Apache::Session::Postgres"rel="nofollow">Apache::Session::Postgres</a> for PostgreSQL) in <code>General parameters</code> » <code>Sessions</code> » <code>Session storage</code> » <code>Apache::Session module</code> and add the following parameters (case sensitive):
@@ -172,7 +172,7 @@ Go in the Manager and set the session module (for example <a href="http://search
</tr>
</thead>
<trclass="row2 roweven">
<tdclass="col0 centeralign"><strong>DataSource</strong></td><tdclass="col1"> The <ahref="http://search.cpan.org/perldoc?DBI"class="urlextern"title="http://search.cpan.org/perldoc?DBI"rel="nofollow">DBI</a> string </td><tdclass="col2"> dbi:Pg:dbname=sessions;host=10.2.3.1 </td>
<tdclass="col0 centeralign"><strong>DataSource</strong></td><tdclass="col1"> The <ahref="https://metacpan.org/pod/DBI"class="urlextern"title="https://metacpan.org/pod/DBI"rel="nofollow">DBI</a> string </td><tdclass="col2"> dbi:Pg:dbname=sessions;host=10.2.3.1 </td>
</tr>
<trclass="row3 rowodd">
<tdclass="col0 centeralign"><strong>UserName</strong></td><tdclass="col1"> The database username </td><tdclass="col2"> lemonldapng </td>
...
...
@@ -187,9 +187,9 @@ Go in the Manager and set the session module (for example <a href="http://search
<tdclass="col0 centeralign"><strong>TableName</strong></td><tdclass="col1"> Name of the table </td><tdclass="col2"> sessions </td>
</tr>
</table></div>
<!-- EDIT5 TABLE [2535-2929] -->
<!-- EDIT5 TABLE [2509-2897] -->
<p>
You must read the man page corresponding to your database (<ahref="http://search.cpan.org/perldoc?Apache::Session::MySQL"class="urlextern"title="http://search.cpan.org/perldoc?Apache::Session::MySQL"rel="nofollow">Apache::Session::MySQL</a>, …) to learn more about parameters. You must also install the database connector (<ahref="http://search.cpan.org/perldoc?DBD::Oracle"class="urlextern"title="http://search.cpan.org/perldoc?DBD::Oracle"rel="nofollow">DBD::Oracle</a>, <ahref="http://search.cpan.org/perldoc?DBD::Pg"class="urlextern"title="http://search.cpan.org/perldoc?DBD::Pg"rel="nofollow">DBD::Pg</a>,…)
You must read the man page corresponding to your database (<ahref="https://metacpan.org/pod/Apache::Session::MySQL"class="urlextern"title="https://metacpan.org/pod/Apache::Session::MySQL"rel="nofollow">Apache::Session::MySQL</a>, …) to learn more about parameters. You must also install the database connector (<ahref="https://metacpan.org/pod/DBD::Oracle"class="urlextern"title="https://metacpan.org/pod/DBD::Oracle"rel="nofollow">DBD::Oracle</a>, <ahref="https://metacpan.org/pod/DBD::Pg"class="urlextern"title="https://metacpan.org/pod/DBD::Pg"rel="nofollow">DBD::Pg</a>,…)
</p>
<divclass="notetip">For MySQL, you need to set additional parameters:<ul>