parent
7a2b09bee9
commit
e9191551ed
File diff suppressed because one or more lines are too long
@ -0,0 +1,64 @@ |
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
||||
lang="en" dir="ltr"> |
||||
|
||||
<head> |
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
||||
<title></title> |
||||
<!-- metadata --> |
||||
<meta name="generator" content="Offline" /> |
||||
<meta name="version" content="Offline 0.1" /> |
||||
<!-- style sheet links --> |
||||
<link rel="stylesheet" media="all" type="text/css" href="../../../css/all.css" /> |
||||
<link rel="stylesheet" media="screen" type="text/css" href="../../../css/screen.css" /> |
||||
<link rel="stylesheet" media="print" type="text/css" href="../../../css/print.css" /> |
||||
|
||||
</head> |
||||
<body> |
||||
<div class="dokuwiki export"> |
||||
|
||||
|
||||
<h1 class="sectionedit1" id="mongodb_configuration_backends">MongoDB configuration backends</h1> |
||||
<div class="level1"> |
||||
|
||||
<p> |
||||
<a href="https://www.mongodb.org/" class="urlextern" title="https://www.mongodb.org/" rel="nofollow">MongoDB</a> is a NoSQL database that can be used both for storing configuration and <a href="../../documentation/1.9/mongodbsessionbackend.html" class="wikilink1" title="documentation:1.9:mongodbsessionbackend">sessions</a>. |
||||
</p> |
||||
|
||||
<p> |
||||
See <a href="../../documentation/1.9/changeconfbackend.html" class="wikilink1" title="documentation:1.9:changeconfbackend">how to change configuration backend</a> to change your configuration database. |
||||
</p> |
||||
|
||||
</div> |
||||
<!-- EDIT1 SECTION "MongoDB configuration backends" [1-294] --> |
||||
<h2 class="sectionedit2" id="lemonldap-ngini_parameters">Lemonldap-ng.ini parameters</h2> |
||||
<div class="level2"> |
||||
|
||||
<p> |
||||
To use a MongoDB backend, configure your <code>lemonldap-ng.ini</code> file (section configuration) : |
||||
</p> |
||||
<ul> |
||||
<li class="level1"><div class="li"> Choose MongoDB as type</div> |
||||
</li> |
||||
<li class="level1"><div class="li"> Set dbName and collectionName parameters if different than default values (llConfDB and configuration)</div> |
||||
</li> |
||||
<li class="level1"><div class="li"> Set host, username, password, ssl and fields as follow.</div> |
||||
</li> |
||||
</ul> |
||||
|
||||
<p> |
||||
Example : |
||||
</p> |
||||
<pre class="code ini"><span class="re0"><span class="br0">[</span>configuration<span class="br0">]</span></span> |
||||
<span class="re1">type</span> <span class="sy0">=</span><span class="re2"> MongoDB</span> |
||||
<span class="re1">dbName</span> <span class="sy0">=</span><span class="re2"> llConfDB</span> |
||||
<span class="re1">collectionName</span> <span class="sy0">=</span><span class="re2"> configuration</span> |
||||
<span class="re1">host</span> <span class="sy0">=</span><span class="re2"> 127.0.0.1</span> |
||||
<span class="re1">user</span> <span class="sy0">=</span><span class="re2"> lluser</span> |
||||
<span class="re1">password</span> <span class="sy0">=</span><span class="re2"> llpassword</span> |
||||
<span class="re1">ssl</span> <span class="sy0">=</span><span class="re2"> 1</span></pre> |
||||
|
||||
</div> |
||||
</div><!-- closes <div class="dokuwiki export">--> |
@ -0,0 +1,74 @@ |
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
||||
lang="en" dir="ltr"> |
||||
|
||||
<head> |
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
||||
<title></title> |
||||
<!-- metadata --> |
||||
<meta name="generator" content="Offline" /> |
||||
<meta name="version" content="Offline 0.1" /> |
||||
<!-- style sheet links --> |
||||
<link rel="stylesheet" media="all" type="text/css" href="../../../css/all.css" /> |
||||
<link rel="stylesheet" media="screen" type="text/css" href="../../../css/screen.css" /> |
||||
<link rel="stylesheet" media="print" type="text/css" href="../../../css/print.css" /> |
||||
|
||||
</head> |
||||
<body> |
||||
<div class="dokuwiki export"> |
||||
|
||||
|
||||
<h1 class="sectionedit1" id="mongodb_session_backend">MongoDB session backend</h1> |
||||
<div class="level1"> |
||||
|
||||
<p> |
||||
<a href="http://search.cpan.org/perldoc?Apache::Session::MongoDB" class="urlextern" title="http://search.cpan.org/perldoc?Apache::Session::MongoDB" rel="nofollow">Apache::Session::MongoDB</a> is a faster shareable session backend |
||||
</p> |
||||
|
||||
</div> |
||||
<!-- EDIT1 SECTION "MongoDB session backend" [1-162] --> |
||||
<h2 class="sectionedit2" id="setup">Setup</h2> |
||||
<div class="level2"> |
||||
|
||||
<p> |
||||
Install and launch a <a href="https://www.mongodb.org/" class="urlextern" title="https://www.mongodb.org/" rel="nofollow">MongoDB server</a>. Install |
||||
<a href="http://search.cpan.org/perldoc?Apache::Session::MongoDB" class="urlextern" title="http://search.cpan.org/perldoc?Apache::Session::MongoDB" rel="nofollow">Apache::Session::MongoDB</a> Perl module. |
||||
</p> |
||||
|
||||
<p> |
||||
In the manager: set <a href="http://search.cpan.org/perldoc?Apache::Session::MongoDB" class="urlextern" title="http://search.cpan.org/perldoc?Apache::Session::MongoDB" rel="nofollow">Apache::Session::MongoDB</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): |
||||
</p> |
||||
<div class="table sectionedit3"><table class="inline"> |
||||
<thead> |
||||
<tr class="row0 roweven"> |
||||
<th class="col0 centeralign" colspan="3"> Required parameters </th> |
||||
</tr> |
||||
<tr class="row1 rowodd"> |
||||
<th class="col0 centeralign"> Name </th><th class="col1 centeralign"> Comment </th><th class="col2 centeralign"> Example </th> |
||||
</tr> |
||||
</thead> |
||||
<tr class="row2 roweven"> |
||||
<td class="col0 centeralign"> <strong>Host</strong> </td><td class="col1 centeralign"> MongoDB server </td><td class="col2 centeralign"> 127.0.0.1 </td> |
||||
</tr> |
||||
<tr class="row3 rowodd"> |
||||
<td class="col0 centeralign"> <strong>Port</strong> </td><td class="col1 centeralign"> MongoDB server port </td><td class="col2 centeralign"> 27017 </td> |
||||
</tr> |
||||
</table></div> |
||||
<!-- EDIT3 TABLE [608-767] --> |
||||
<p> |
||||
NOT FINISHED |
||||
</p> |
||||
|
||||
</div> |
||||
<!-- EDIT2 SECTION "Setup" [163-781] --> |
||||
<h2 class="sectionedit4" id="security">Security</h2> |
||||
<div class="level2"> |
||||
|
||||
<p> |
||||
Restrict network access to the MongoDB server. For remote servers, you can use <a href="../../documentation/1.9/soapsessionbackend.html" class="wikilink1" title="documentation:1.9:soapsessionbackend">SOAP session backend</a> in cunjunction to increase security for remote server that access through an unsecure network |
||||
</p> |
||||
|
||||
</div> |
||||
</div><!-- closes <div class="dokuwiki export">--> |
Loading…
Reference in new issue