lemonldap-ng/po-doc/fr/pages/documentation/1.9/ldapsessionbackend.html
2016-02-10 10:17:52 +00:00

116 lines
5.0 KiB
HTML

<!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="fr"
lang="fr" dir="ltr">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title><!-- metadata --><!-- style sheet links -->
<meta name="generator" content="Hors ligne" />
<meta name="version" content="Hors-ligne 0.1" />
<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="ldap_session_backend">Backend de sessions LDAP</h1>
<div class="level1">
<p>
An Apache session module was created by <abbr title="LemonLDAP::NG">LL::NG</abbr> team to store sessions in an LDAP directory.
</p>
<p>
</p><p></p><div class="noteimportant">Ce module ne fait pas partie de la distribution <abbr title="LemonLDAP::NG">LL::NG</abbr>, et se trouve sur le CPAN : <a href="http://search.cpan.org/dist/Apache-Session-LDAP/" class="urlextern" title="http://search.cpan.org/dist/Apache-Session-LDAP/" rel="nofollow">Apache::Session::LDAP</a>.
</div></p>
</p>
<p>
</p><p></p><div class="notetip">Ce module est également disponible sur <a href="https://github.com/coudot/apache-session-ldap" class="urlextern" title="https://github.com/coudot/apache-session-ldap" rel="nofollow">GitHub</a>.
</div></p>
</p>
<p>
Sessions will be stored as LDAP entries, like this:
</p>
<pre class="file">dn: cn=6fb7c4a170a04668771f03b0a4747f46,ou=sessions,dc=example,dc=com
objectClass: applicationProcess
cn: 6fb7c4a170a04668771f03b0a4747f46
description: [Base64 serialized data]</pre>
</div><!-- EDIT1 SECTION "LDAP session backend" [1-657] -->
<h2 class="sectionedit2" id="setup">Mise en marche</h2>
<div class="level2">
<p>
Go in the Manager and set the LDAP session module (<a href="http://search.cpan.org/dist/Apache-Session-LDAP/" class="urlextern" title="http://search.cpan.org/dist/Apache-Session-LDAP/" rel="nofollow">Apache::Session::LDAP</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"> Paramètres exigés </th>
</tr>
<tr class="row1 rowodd">
<th class="col0 centeralign"> Nom </th><th class="col1 centeralign"> Commentaire </th><th class="col2 centeralign"> Exemple </th>
</tr>
</thead>
<tr class="row2 roweven">
<td class="col0 centeralign"> <strong>ldapServer</strong> </td><td class="col1"> <abbr title="Uniform Resource Identifier">URI</abbr> du serveur </td><td class="col2"> ldap://localhost </td>
</tr>
<tr class="row3 rowodd">
<td class="col0 centeralign"> <strong>ldapConfBase</strong> </td><td class="col1"> <abbr title="Distinguished Name">DN</abbr> de la branche des sessions </td><td class="col2"> ou=sessions,dc=example,dc=com </td>
</tr>
<tr class="row4 roweven">
<td class="col0 centeralign"> <strong>ldapBindDN</strong> </td><td class="col1"> Login de connexion </td><td class="col2"> cn=admin,dc=example,dc=password </td>
</tr>
<tr class="row5 rowodd">
<td class="col0 centeralign"> <strong>ldapBindPassword</strong> </td><td class="col1"> Mot-de-passe de connexion </td><td class="col2"> secret </td>
</tr>
<tr class="row6 roweven">
<th class="col0 centeralign" colspan="3"> Optional parameters </th>
</tr>
<tr class="row7 rowodd">
<th class="col0 centeralign"> Nom </th><th class="col1 centeralign"> Commentaire </th><th class="col2 centeralign"> Default value </th>
</tr>
<tr class="row8 roweven">
<td class="col0 centeralign"> <strong>ldapObjectClass</strong> </td><td class="col1"> Objectclass of the entry </td><td class="col2"> applicationProcess </td>
</tr>
<tr class="row9 rowodd">
<td class="col0 centeralign"> <strong>ldapAttributeId</strong> </td><td class="col1"> Attribute storing session ID </td><td class="col2"> cn </td>
</tr>
<tr class="row10 roweven">
<td class="col0 centeralign"> <strong>ldapAttributeContent</strong> </td><td class="col1"> Attribute storing session content </td><td class="col2"> description </td>
</tr>
</table></div><!-- EDIT3 TABLE [951-1574] -->
</div><!-- EDIT2 SECTION "Setup" [658-1574] -->
<h2 class="sectionedit4" id="security">Sécurité</h2>
<div class="level2">
<p>
Restrict network access to the LDAP directory, and add specific <abbr title="Liste de contrôle d'accès">ACL</abbr> to session branch.
</p>
<p>
On peut utiliser différent login/mot-de-passe pour les serveurs en surchargeant les paramètres <code>globalStorage</code> et <code>globalStorageOptions</code> dans le fichier lemonldap-ng.ini.
</p>
</div>
</div><!-- closes <div class="dokuwiki export">--></body></html>