<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://blog.davidrobin.net/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>MyFacebookSpace</title>
  <link>http://blog.davidrobin.net/</link>
  <atom:link href="http://blog.davidrobin.net/feed/rss2" rel="self" type="application/rss+xml"/>
  <description></description>
  <language>fr</language>
  <pubDate>Wed, 17 Dec 2008 23:14:12 +0100</pubDate>
  <copyright></copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Tomcat 6 avec l'apache portable runtime</title>
    <link>http://blog.davidrobin.net/post/2008/05/02/Tomcat-6-avec-lapache-portable-runtime</link>
    <guid isPermaLink="false">urn:md5:045016cde8dcd11480321afec51bcea7</guid>
    <pubDate>Fri, 02 May 2008 21:21:00 +0200</pubDate>
    <dc:creator>david</dc:creator>
        <category>technique</category>
            
    <description>&lt;p&gt;&lt;img style=&quot;margin: 0 auto; display: block;&quot; alt=&quot;&quot; src=&quot;http://blog.davidrobin.net/public/images/.lion_m.jpg&quot; /&gt;&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Installer Tomcat 6 est couvert dans de nombreux tutoriaux.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Dans ce post, je vais couvrir l'installation de tomcat 6 avec l'Apache Portable
Runtime, ce qui permet au serveur tomcat d'utiliser des librairies natives pour
gérer le SSL ou pour servir des fichiers statiques par exemple.&lt;/p&gt;    &lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Une installation de ce type est très intéressante pour installer un serveur
d'authentification CAS (un futur post dessus va voir le jour prochainement sur
mon blog :p), car CAS ne sert que des pages dynamiques en SSL (donc le gain en
performance est très significatif si CAS tourne avec l'APR)&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Pré-requis : installation du jdk 1.6 (et positionnement de la fameuse variable
d'environement JAVA_HOME), des outils de compilation unix (gcc, g++),des
building tools unix classiques (autoconf, automake, etc..) et il faut aussi
avoir les headers de la librairie OpenSSL pour pouvoir compiler une application
utilisant openssl (package libssl-dev sous ubuntu 8.04)&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Les étapes :&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- il va falloir compiler l'APR afin d'être sur du bon fonctionnement final de
tomcat 6 avec jsvc (les packages tout fait sont souvent compilés avec de
mauvaises options et provoquent un démarrage du serveur tomcat 6 anormalement
long, comme nous le verrons plus loin).&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Générer des certificats pour le bon fonctionnement de tomcat en mode ssl&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Configurer tomcat&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Créer un utilisateur sous lequel le processus s'exécutera ainsi que
des scripts de démarrage automatiques.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Le nécessaire :&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- &lt;a hreflang=&quot;fr&quot; href=&quot;http://tomcat.apache.org/download-60.cgi&quot;&gt;tomcat
6.0.16 (ou supérieur)&lt;/a&gt;&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- &lt;a hreflang=&quot;fr&quot; href=&quot;http://apr.apache.org/download.cgi&quot;&gt;apr sources
1.2.12&lt;/a&gt;&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
1) Compilation de l'APR pour Tomcat 6 :&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Nous allons installer toutes les librairies et placer tous les header
nécessaires à la compilation d'autres outils utilisants ces librairies dans
/opt/apr-tomcat-6.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Il faut tout d'abord décompresser l'archive&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
 tar xvzf apr-1.2.12.tar.gz&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Créer le répertoire qui va contenir les librairies que nous allons
compiler&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sudo mkdir /opt/apr-tomcat-6&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Se placer dans le répertoire contenant ce que nous avons décompresser et
lancer la configuration suivante :&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
./configure --prefix=/opt/apr-tomcat-6/ --with-devrandom=/dev/urandom&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
puis&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sudo make &lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
et enfin&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sudo make instal&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
l'option --with-devrandom est très importante : par défaut apr utilise
/dev/random, et c'est ce qui provoque un démarrage lent du serveur lorsqu'il
utilise SSL : le système met du temps a générer de l'entropie avec
/dev/random.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
C'est pour cette raison que nous n'avons pas pu utiliser le package libapr de
la distribution, mais ce n'est pas génant car la vocation de l'APR c'est d'être
compilé spécialement pour  l'outil dans lequel il doit être embarqué,
comme expliqué sur le site officiel du projet :&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;q&gt;As of this writing, APR is not quite ready to be installed as a system-wide
shared library; it currently works best when tied directly to the application
using it.&lt;/q&gt;&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
2) Installation de tomcat&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Se placer dans le répertoire /opt et détarrer l'archive de tomcat 6.0.16&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sudo tar xvzf apache-tomcat-6.0.16.tar.gz&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Vous devriez avoir un répertoire /opt/apache-tomcat-6.0.16&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Pour des soucis de maintenabilité de scripts pour démarrer / stopper tomcat,
nous allons créer un lien symbolique /opt/tomcat qui pointera vers
/opt/apache-tomcat-6.0.16&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
ln -s /opt/apache-tomcat-6.0.16 /opt/tomcat&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Se rendre dans le répertoire /opt/tomcat/bin&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Nous allons compiler les wrappers JNI pour tomcat utilisants la librairie APR
spécialement compilée pour le serveur à l'étape précédente :&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sudo tar xvzf tomcat-native.tar.gz&lt;br /&gt;
cd tomcat-native-1.1.12-src/jni/native&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sudo ./configure --with-apr=/opt/apr-tomcat-6
--with-java-home=/usr/lib/jvm/java-6-sun --with-ssl=yes&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
puis&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sudo make&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
et &lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sudo make install&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Maintenant nous allons installer l'outil jsvc (aussi inclus dans la
distribution de tomcat 6).&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Cet outil permet de démarrer tomcat 6 en tant que démon et de pouvoir par
exemple démarrer tomcat sur le port 80 et de switcher d'utilisateur une fois le
processus démarré.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Nous allons nous replacer dans /opt/tomcat/bin et executer :&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sudo tar xvzf jsvc.tar.gz&lt;br /&gt;
cd jsvc-src/&lt;br /&gt;
sudo chmod u+x configure&lt;br /&gt;
sudo ./configure --with-java=/usr/lib/jvm/java-6-sun&lt;br /&gt;
sudo make&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
L'outil est compilé et disponible dans /opt/tomcat/bin/jsvc-src/.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Si votre tomcat est destiné à un environnement de production, vous pouvez aussi
modifier le fichier /opt/tomcat/conf/web.xml pour ajouter :&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
        &amp;lt;init-param&amp;gt;&lt;br /&gt;
           
&amp;lt;param-name&amp;gt;development&amp;lt;/param-name&amp;gt;&lt;br /&gt;
           
&amp;lt;param-value&amp;gt;false&amp;lt;/param-value&amp;gt;&lt;br /&gt;
        &amp;lt;/init-param&amp;gt;&lt;br /&gt;
       &amp;lt;init-param&amp;gt;&lt;br /&gt;
           
&amp;lt;param-name&amp;gt;genStringAsCharArray&amp;lt;/param-name&amp;gt;&lt;br /&gt;
           
&amp;lt;param-value&amp;gt;true&amp;lt;/param-value&amp;gt;&lt;br /&gt;
        &amp;lt;/init-param&amp;gt;&lt;br /&gt;
        &amp;lt;init-param&amp;gt;&lt;br /&gt;
           
&amp;lt;param-name&amp;gt;trimSpaces&amp;lt;/param-name&amp;gt;&lt;br /&gt;
           
&amp;lt;param-value&amp;gt;true&amp;lt;/param-value&amp;gt;&lt;br /&gt;
        &amp;lt;/init-param&amp;gt;&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
A la liste des init-param de la servlet Jasper
(org.apache.jasper.servlet.JspServlet).&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Il faudra dans ce cas déployer des webapps ayant précompilées les JSPs.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Mais pas de panique si tout ceci ne vous semble pas très clair car c'est
détaillé &lt;a hreflang=&quot;fr&quot; href=&quot;http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html&quot;&gt;ici&lt;/a&gt;.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
3) Les certificats pour le mode SSL de tomcat : &lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Pour fonctionner en mode SSL, tomcat va avoir besoin de certificats.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Pour ce faire nous allons générer des certificats auto-signés par des
certificats émulant ceux d'une autorité certificatrice  (comme expliqué
dans un précédent post sur openssl)&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Tous les certificats que nous allons créer pour tomcat vont se trouver dans
un répertoire /opt/tomcat-certificats&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
mkdir /opt/tomcat-certificats&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
cd /opt/tomcat-certificats&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Générer la clée&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sudo openssl genrsa -out tomcat-key.pem 1024&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- il faut ensuite créer une requete de signature :&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sudo openssl req -new -out tomcat-req.csr -key tomcat-key.pem&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Et signer cette requête à l'aide de nos certificats racine :&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sudo openssl ca -policy policy_anything -out tomcat-cert.pem -infiles
tomcat-req.csr&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Vérification du certificat :&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sudo openssl verify -CAfile /opt/root-certificats/cacert.pem -purpose sslserver
tomcat-cert.pem&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
-Mise a jour des droits sur le répertoire contenant les certificats pour
l'utilisateur tomcat  :&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sudo chown -R tomcat:tomcat /opt/tomcat-certificats&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
4) Configuration du serveur tomcat :&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Editer le fichier /opt/tomcat/conf/server.xml et remplacer le connecteur par
défaut sur le port 8080 par celui-ci&lt;/p&gt;
&lt;p&gt;  &amp;lt;Connector
protocol=&amp;quot;org.apache.coyote.http11.Http11AprProtocol&amp;quot;&lt;br /&gt;
           port=&amp;quot;80&amp;quot;&lt;br /&gt;
          
enableLookups=&amp;quot;true&amp;quot; disableUploadTimeout=&amp;quot;true&amp;quot;&lt;br /&gt;
          
acceptCount=&amp;quot;100&amp;quot;  maxThreads=&amp;quot;200&amp;quot; URIEncoding=&amp;quot;UTF-8&amp;quot;&lt;br /&gt;
           scheme=&amp;quot;http&amp;quot;
/&amp;gt;&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Et ajouter juste après le connecteur pour la connection en HTTPS :&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;
  &amp;lt;Connector
protocol=&amp;quot;org.apache.coyote.http11.Http11AprProtocol&amp;quot;&lt;br /&gt;
           port=&amp;quot;443&amp;quot;&lt;br /&gt;
          
enableLookups=&amp;quot;true&amp;quot; disableUploadTimeout=&amp;quot;true&amp;quot;&lt;br /&gt;
          
acceptCount=&amp;quot;100&amp;quot;  maxThreads=&amp;quot;200&amp;quot; URIEncoding=&amp;quot;UTF-8&amp;quot;&lt;br /&gt;
           scheme=&amp;quot;https&amp;quot;
secure=&amp;quot;true&amp;quot; SSLEnabled=&amp;quot;true&amp;quot;&lt;br /&gt;
          
SSLCertificateFile=&amp;quot;/opt/tomcat-certificats/tomcat-cert.pem&amp;quot;&lt;br /&gt;
          
SSLCertificateKeyFile=&amp;quot;/opt/tomcat-certificats/tomcat-key.pem&amp;quot;&lt;br /&gt;
           sslProtocol=&amp;quot;TLS&amp;quot;
/&amp;gt;&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
4) Scripts de démarrages et tweaking avancé du serveur&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Pour que votre serveur tomcat puisse supporter une très grande charge (300
requêtes / secondes) , vous serez sûrement amenés à augmenter le nombre maximum
de &amp;quot;file descriptor&amp;quot; pouvant etre ouverts simultanément.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Pour ce faire éditez le fichier /etc/security/limits.conf pour y ajouter à la
fin les 2 lignes suivantes :&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
tomcat soft nofile 4096&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
tomcat hard nofile 4096&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sauvez et rebootez la machine.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Par la suite dans tout script de votre création avant de démarrer tomcat vous
ajouterez&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
su tomcat -c &amp;quot;ulimit -n 4096&amp;quot;&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Et vous ne devriez pas être embêté avec des erreurs du type &amp;quot;too many open
file&amp;quot;.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Mettre dans /opt/tomcat/bin un script nommé Tomcat6.sh contenant :&lt;/p&gt;
&lt;p&gt;#Debut fichier Tomcat6.sh&lt;/p&gt;
&lt;p&gt;# Adapt the following lines to your configuration&lt;br /&gt;
LD_LIBRARY_PATH=/usr/local/apr/lib&lt;br /&gt;
JAVA_HOME=/usr/lib/jvm/java-6-sun&lt;br /&gt;
CATALINA_HOME=/opt/tomcat&lt;br /&gt;
DAEMON_HOME=$CATALINA_HOME/bin&lt;br /&gt;
TOMCAT_USER=tomcat&lt;br /&gt;
ENDORSED_DIR=$CATALINA_HOME/common/endorsed&lt;br /&gt;
# for multi instances adapt those lines.&lt;br /&gt;
TMP_DIR=/var/tmp&lt;br /&gt;
PID_FILE=/var/run/jsvc.pid&lt;br /&gt;
CATALINA_BASE=$CATALINA_HOME&lt;br /&gt;
&lt;br /&gt;
CATALINA_OPTS=&amp;quot;-Djava.library.path=/opt/tomcat/bin/tomcat-native-1.1.12-src/jni/native/.libs/&amp;quot;&lt;br /&gt;

CLASSPATH=\&lt;br /&gt;
$JAVA_HOME/lib/tools.jar:\&lt;br /&gt;
$CATALINA_HOME/bin/commons-daemon.jar:\&lt;br /&gt;
$CATALINA_HOME/bin/bootstrap.jar&lt;/p&gt;
&lt;p&gt;#to avoid the  &amp;quot;too many open files&amp;quot; error when tomcat needs more than
1024 opened file descriptors  at the same time&lt;/p&gt;
&lt;p&gt;su tomcat -c &amp;quot;ulimit -n 4096&amp;quot;&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
  start)&lt;br /&gt;
    #&lt;br /&gt;
    # Start Tomcat&lt;br /&gt;
    #&lt;br /&gt;
    $DAEMON_HOME/jsvc-src/jsvc \&lt;br /&gt;
    -user $TOMCAT_USER \&lt;br /&gt;
    -home $JAVA_HOME \&lt;br /&gt;
    -Dcatalina.home=$CATALINA_HOME \&lt;br /&gt;
    -Dcatalina.base=$CATALINA_BASE \&lt;br /&gt;
    -Djava.io.tmpdir=$TMP_DIR \&lt;br /&gt;
    -Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed \&lt;br /&gt;
    -wait 10 \&lt;br /&gt;
    -pidfile $PID_FILE \&lt;br /&gt;
    -outfile $CATALINA_HOME/logs/catalina.out \&lt;br /&gt;
    -errfile '&amp;amp;1' \&lt;br /&gt;
    $CATALINA_OPTS \&lt;br /&gt;
    -cp $CLASSPATH \&lt;br /&gt;
    org.apache.catalina.startup.Bootstrap&lt;br /&gt;
    #&lt;br /&gt;
    # To get a verbose JVM&lt;br /&gt;
    #-verbose \&lt;br /&gt;
    # To get a debug of jsvc.&lt;br /&gt;
    #-debug \&lt;br /&gt;
    exit $?&lt;br /&gt;
    ;;&lt;br /&gt;
&lt;br /&gt;
  stop)&lt;br /&gt;
    #&lt;br /&gt;
    # Stop Tomcat&lt;br /&gt;
    #&lt;br /&gt;
    $DAEMON_HOME/jsvc-src/jsvc \&lt;br /&gt;
    -stop \&lt;br /&gt;
    -pidfile $PID_FILE \&lt;br /&gt;
    org.apache.catalina.startup.Bootstrap&lt;br /&gt;
    exit $?&lt;br /&gt;
    ;;&lt;br /&gt;
&lt;br /&gt;
  *)&lt;br /&gt;
    echo &amp;quot;Usage tomcat.sh start/stop&amp;quot;&lt;br /&gt;
    exit 1;;&lt;br /&gt;
esac&lt;/p&gt;
&lt;p&gt;#Fin fichier Tomcat6.sh&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Le rendre executable :&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
chmod a+x /opt/tomcat/bin/Tomcat6.sh&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
et enfin on donne bien à l'utilisateur tomcat les droits sur tout ce qui est
contenu dans le répertoire de tomcat&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sudo chown -R tomcat:tomcat /opt/tomcat&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
5) Bugfixe : désactiver le support d'IPV6&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Normalement après l'étape 4, tout est censé fonctionner et vous devriez pouvoir
démmarrer votre serveur tomcat en lançant /opt/tomcat/bin/tomcat6.sh start&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Néanmoins l'activation du support d'IPV6 entraine souvent une BindException au
démarrage de tomcat avec APR.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Il faut donc désactiver le support de l'IPV6 (une techno inutile depuis
l'invention de la NAT ;p)&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Editer /etc/modprobe.d/aliases&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
remplacer&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
alias net-pf-10 ipv6&lt;br /&gt;
&lt;br /&gt;
par&lt;br /&gt;
&lt;br /&gt;
alias net-pf-10 off&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Un reboot du serveur (pour la prise en compte des modifications sur le support
de l'ipv6), and That's it !&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
votre tomcat avec APR devrait pouvoir démarrer sur les ports 80 et 443, en tant
qu'utilisateur tomcat une fois lancé avec un&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sudo /opt/tomcat/bin/Tomcat6.sh start&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Prochaine étape : Faire tourner dessus un serveur CAS, pour disposer d'une
solution efficace et performante de Single Sign On ;)&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.davidrobin.net/post/2008/05/02/Tomcat-6-avec-lapache-portable-runtime#comment-form</comments>
      <wfw:comment>http://blog.davidrobin.net/post/2008/05/02/Tomcat-6-avec-lapache-portable-runtime#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.davidrobin.net/feed/rss2/comments/235688</wfw:commentRss>
      </item>
    
  <item>
    <title>Open SSL : Générer ses certificats</title>
    <link>http://blog.davidrobin.net/post/2008/04/23/Open-SSL-%3A-Generer-ses-certificats</link>
    <guid isPermaLink="false">urn:md5:0f939724965cb8e967d0f601d08f67b9</guid>
    <pubDate>Wed, 23 Apr 2008 23:54:00 +0200</pubDate>
    <dc:creator>david</dc:creator>
        <category>technique</category>
            
    <description>&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;img src=&quot;http://blog.davidrobin.net/public/images/zebre.jpg&quot; alt=&quot;&quot; style=&quot;margin: 0 auto; display: block;&quot; /&gt;&lt;br /&gt;
Vouloir établir une connexion sécurisée entre un internaute et un site web lors
d'un formulaire demandant par exemple des coordonnées banquaires ou un login /
mdp est un besoin fréquent.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Pour ce faire, il faut chiffrer les données transmises entre le navigateur du
client et le serveur web.&lt;/p&gt;    &lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Afin de crypter les données, il faut procéder à un échange de certificats entre
le navigateur et le serveur web. Le mécanisme est le suivant : Le serveur
dispose d'un fichier appelé certificat contenant une clée privée et une clée
publique. Il envoie au navigateur un certificat contenant des informations sur
le nom de la société qui met en oeuvre le site, son pays de résidence
&lt;strong&gt;et&lt;/strong&gt; surtout une clée &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;publique&lt;/span&gt;. La clée &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;privée&lt;/span&gt; est gardée jalousement a l'abris sur
le serveur. Le navigateur va donc présenter ce certificat à l'internaute des
réception de celui-ci (et vous avez souvent une petite fenêtre qui vous demande
d'accepter ou refuser ce certificat).&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Si le certificat est accepté, le navigateur va crypter les informations à
envoyer avec la clée publique, et cela garantira que seul le détenteur de la
clée privée correspondante pourra décrypter les données. Ce mécanisme est
néanmoins incomplet : si vos données sont en effet protégées entre le
navigateur et le serveur, vous n'êtes pas sur de l'identité du serveur. Pour
cela il existe des organismes comme &lt;a href=&quot;http://www.verisign.fr&quot; hreflang=&quot;fr&quot; style=&quot;color: rgb(102, 102, 102); text-decoration: underline;&quot;&gt;Vérisign&lt;/a&gt; qui
vous garantissent que le serveur avec lequel vous dialoguez est bien celui
qu'il prétend être.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Pour ce faire ces organismes disposent de certificats servant à signer un
certificat émis par la société du site web.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Les navigateurs intègrent automatiquement les certificats de ces grandes
compagnies (appelées &amp;quot;autorités de certification&amp;quot;) et peuvent vérifier si le
certificat qui lui est envoyé par un site est approuvé par une de ces autorités
de certification.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Voici la définition officielle disponible sur le site de Vérisign :&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&amp;quot;Chaque certificat SSL est créé pour un serveur particulier dans un domaine
spécifique pour une entité professionnelle vérifiée. Comme un passeport ou un
permis de conduire, un certificat SSL est émis par une autorité de confiance,
l’autorité de certification (Certification Authority, CA en abrégé). Lors de la
transaction SSL, le navigateur demande l’authentification du serveur. Le client
voit apparaître le nom de la société lorsqu’il clique sur certaines marques de
confiance SSL (telles que le sceau VeriSign Secured™ Seal) ou utilise un
navigateur prenant en charge la norme Extended Validation (Validation
&lt;span class=&quot;Body-0020Text--Char&quot; style=&quot;font-family: 'Arial','Arial';&quot;&gt;renforcée&lt;/span&gt;). Si l’information ne
correspond pas ou si le certificat est périmé, le navigateur affiche un message
d’erreur ou un avertissement&amp;quot;&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Un certificat approuvé par une autorité de certification est appelé un
certificat signé.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
D'ailleurs quand le navigateur reçoit un certificat signé, l'internaute n'a pas
à donner son approbation pour accepter / refuser le certificat : le navigateur
lui fait confiance automatiquement.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
La signature d'un certificat par une autorité de certification étant payante,
il est nécessaire pour un développeur de pouvoir émuler la signature de
certificat.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Pour ce faire il faut commencer par créer des certificats allant servir à
signer les autres.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
C'est parti :&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Je suppose que vous avez déjà installé openssl sur votre environnement
unix.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Je me base sur la distribution ubuntu 8.04.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
La première chose à faire est de modifier un fichier de configuration pour
indiquer que les certificats que nous allons créer vont être des certificats
d'autorité certificatrice.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Editer le fichier /etc/ssl/openssl.cnf.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Modifier dir pour pointer vers un dossier allant contenir tous vos futurs
certificats CA. Par exemple :&lt;br /&gt;
&lt;br /&gt;
dir = /opt/root-certificats/&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Toujours dans le même fichier, remplacer tous les &lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
basicConstraints=CA:FALSE&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
par&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
basicConstraints=CA:TRUE&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
(3 occurences dans le fichier par défaut normalement).&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Cet attribut sera présent dans les certificats générés et indique au navigateur
qu'il sagit bien d'un certificat émanant d'une CA.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Modifier le fichier /usr/lib/ssl/misc/CA.sh(ce fichier est un script shell
vous permettant de gagner un temps précieux pour créer vos certificats CA, il
lance a votre place bon nombre de commandes du jeu d'outils openssl).&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
CATOP=/opt/root-certificats&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Fermer le fichier ci-dessus et lancer la ldc :&lt;br /&gt;
/usr/lib/ssl/misc/CA.sh -newca&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Répondre aux questions en notant bien la passphrase demandée.&lt;br /&gt;
&lt;br /&gt;
Country Name (2 letter code) [AU]:FR&lt;br /&gt;
State or Province Name (full name) [Some-State]:Paris&lt;br /&gt;
Locality Name (eg, city) []:Paris&lt;br /&gt;
Organization Name (eg, company) [Internet Widgits Pty Ltd]:David ROBIN
Certification corp&lt;br /&gt;
Organizational Unit Name (eg, section) []:certification dpt&lt;br /&gt;
Common Name (eg, YOUR name) []:CATOPID&lt;br /&gt;
Email Address []:votreemail@mail.net&lt;br /&gt;
&lt;br /&gt;
Please enter the following 'extra' attributes&lt;br /&gt;
to be sent with your certificate request&lt;br /&gt;
A challenge password []:yourpassword&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Pour certaines opérations par la suite il faut convertir le fichier .pem du
certificat en .der avec la ldc suivante :&lt;br /&gt;
&lt;br /&gt;
openssl x509 -in /opt/root-certificats/cacert.pem -inform PEM -out
/opt/root-certificats/cacert.der -outform DER&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
- Ré-editer le fichier /etc/ssl/openssl.cnf&lt;br /&gt;
&lt;br /&gt;
Remplacer tous les  basicConstraints=CA:TRUE ou basicConstraints=CA:true
par basicConstraints=CA:FALSE (4 occurences cette fois car une des entrées du
fichier d'origine était déjà a true)&lt;br /&gt;
&lt;br /&gt;
Ainsi tous les certificats créés par la suite n'auront pas l'attribut indiquant
qu'il sagit d'un certificat émanant d'une authorité certificatrice.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
That's all : vos certificats CA sont créés.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Il reste une dernière petite étape : importer votre certificats dans Firefox
(ou IE).&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Par défaut firefox inclus un certains de certificats émanants de véritables
autorités de certification.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Il faut enrichir cette liste avec notre autorité de certification nouvellement
créée.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Aller dans Préférences &amp;gt; Avancé &amp;gt; Chiffrement et cliquer sur le bouton
&amp;quot;Afficher les certificats&amp;quot;.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Cliquer sur l'onglet &amp;quot;Autorités&amp;quot; de la nouvelle fenêtre.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Ici il faut importer le fichier /opt/root-certificats/cacert.der (ce fichier
doit être distribué sur tout vos postes clients).&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Vous devriez voir votre autorité parmis celle déjà présente, comme sur le
screenshot ci-dessous :&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;img style=&quot;margin: 0 auto; display: block;&quot; alt=&quot;&quot; src=&quot;http://blog.davidrobin.net/public/images/.openssl-1_m.jpg&quot; /&gt;&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Par la suite, nous utiliserons ces certificats racines afin de signer d'autres
certificats, comme dans mon post suivant sur tomcat en mode APR.&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.davidrobin.net/post/2008/04/23/Open-SSL-%3A-Generer-ses-certificats#comment-form</comments>
      <wfw:comment>http://blog.davidrobin.net/post/2008/04/23/Open-SSL-%3A-Generer-ses-certificats#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.davidrobin.net/feed/rss2/comments/233248</wfw:commentRss>
      </item>
    
  <item>
    <title>Installer un annuaire ldap</title>
    <link>http://blog.davidrobin.net/post/2008/04/17/Installer-un-annuaire-ldap</link>
    <guid isPermaLink="false">urn:md5:52b7a8daa94d2866a2af30214972f559</guid>
    <pubDate>Thu, 17 Apr 2008 18:55:00 +0200</pubDate>
    <dc:creator>david</dc:creator>
        <category>technique</category>
            
    <description>&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;img src=&quot;http://blog.davidrobin.net/public/images/gorille.jpg&quot; alt=&quot;&quot; style=&quot;margin: 0 auto; display: block;&quot; /&gt;&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Voici un petit guide d’installation open ldap sous ubuntu (7.04 version
dédibox, mais ce qui suit  fonctionne sur les versions 7.10 et 8.04) 
vous permettant d’installer un annuaire ldap pour, par exemple, gérer un
référentiel d’utilisateurs et faire du single-sign-on entre différentes
applications.&lt;/p&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(70, 60, 60); font-family: ArialMT; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;    &lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;img src=&quot;http://blog.davidrobin.net/public/images/LDAPworm.gif&quot; alt=&quot;&quot; style=&quot;margin: 0 auto; display: block;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Aller, on prend une grande respiration, un mug de thé / café, et c'est parti
!&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;span class=&quot;style_1&quot; style=&quot;text-decoration: underline;&quot;&gt;étape 1
:&lt;/span&gt; Avant d’installer les packages spécifiques à open ldap, nous
allons mettre à jour les dépots apt et les packages deja installés sur la
machine.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Pour cela 2 commandes : &lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sudo apt-get update&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
et&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sudo apt-get upgrade&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Ceci étant fait, nous pouvons entrer dans le vif du sujet.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;span class=&quot;style_1&quot; style=&quot;text-decoration: underline;&quot;&gt;étape 2
:&lt;/span&gt; installation de slapd&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Installons les packages slapd, ldap-utils et la base de données berkeley db
utilisé par slapd.&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
slapd est OpenLDAP (c’est le nom du démon qui réalise la mise en oeuvre de
l’annuaire ldap, ldap-utils contient comme son nom l’indique des tas
d’utilitaire pour attaquer un annuaire ldap en ligne de commande ;p)&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;span class=&quot;style_2&quot; style=&quot;font-family: Courier,serif;&quot;&gt;sudo apt-get install
slapd ldap-utils&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;Body&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 20px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Nous allons maintenant créer un utilisateur et un group pour notre annuaire
ldap :&lt;/p&gt;
&lt;p class=&quot;paragraph_style&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 22px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;span class=&quot;style_3&quot; style=&quot;font-family: ArialMT,Arial,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;paragraph_style&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 22px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;span class=&quot;style_4&quot; style=&quot;font-family: ArialMT,Arial,sans-serif; text-decoration: underline;&quot;&gt;étape 3
:&lt;/span&gt;&lt;span class=&quot;style_3&quot; style=&quot;font-family: ArialMT,Arial,sans-serif;&quot;&gt; création d’un utilisateur et
d’un groupe pour le processus du serveur ldap&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_1&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 18px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;span class=&quot;style_5&quot; style=&quot;font-size: 13px; line-height: 16px;&quot;&gt;sudo addgroup
--system slapd&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_1&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 18px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;span class=&quot;style_5&quot; style=&quot;font-size: 13px; line-height: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_1&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 18px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;span class=&quot;style_5&quot; style=&quot;font-size: 13px; line-height: 16px;&quot;&gt;sudo adduser
slapd --home /var/lib/ldap -shell /bin/false --no-create-home -ingroup slapd
--system&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_2&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 17px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;span class=&quot;style_6&quot; style=&quot;font-family: Monaco,Courier,serif; font-size: 13px; line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_2&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 17px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;span class=&quot;style_1&quot; style=&quot;text-decoration: underline;&quot;&gt;étape 4
:&lt;/span&gt; Configuration&lt;/p&gt;
&lt;p class=&quot;paragraph_style_2&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 17px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Ceci étant fait, il faut maintenant mettre à jour le fichier
/etc/default/slapd.&lt;/p&gt;
&lt;p class=&quot;paragraph_style_2&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 17px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Ce fichier est utilisé par le script de démarrage du service slapd situé dans
/etc/init.d/&lt;span class=&quot;style_7&quot; style=&quot;font-family: Monaco,Courier,serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# Default location of the slapd.conf file&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
SLAPD_CONF=/etc/ldap/slapd.conf&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# System account to run the slapd server under. If empty the server&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# will run as root.&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
SLAPD_USER=&amp;quot;slapd&amp;quot;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# System group to run the slapd server under. If empty the server will&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# run in the primary group of its user.&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
SLAPD_GROUP=&amp;quot;slapd&amp;quot;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# Path to the pid file of the slapd server. If not set the init.d script&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# will try to figure it out from $SLAPD_CONF (/etc/ldap/slapd.conf)&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
SLAPD_PIDFILE=&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# Configure if the slurpd daemon should be started. Possible values:&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# - yes:   Always start slurpd&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# - no:    Never start slurpd&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# - auto:  Start slurpd if a replica option is found in slapd.conf
(default)&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
SLURPD_START=auto&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# slapd normally serves ldap only on all TCP-ports 389. slapd can also&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# service requests on TCP-port 636 (ldaps) and requests via unix&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# sockets.&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
SLAPD_SERVICES=&amp;quot;ldap://ldap.davidrobin.net:389/
ldaps://ldap.davidrobin.net:636/&amp;quot;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# Additional options to pass to slapd and slurpd&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
SLAPD_OPTIONS=&amp;quot;&amp;quot;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
SLURPD_OPTIONS=&amp;quot;&amp;quot;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_1&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 18px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;span class=&quot;style_3&quot; style=&quot;font-family: ArialMT,Arial,sans-serif;&quot;&gt;Bref un
fichier pas vraiment compliqué qui permettra à slapd de s’executer sous les
user / group créés précédemment.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_1&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 18px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;span class=&quot;style_3&quot; style=&quot;font-family: ArialMT,Arial,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_1&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 18px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;span class=&quot;style_3&quot; style=&quot;font-family: ArialMT,Arial,sans-serif;&quot;&gt;Ensuite
nous allons générer un mot de passe chiffré à mettre dans le fichier de conf
qui va suivre (l’installeur lors de l’étape 2 l’insère directement dans le
ldap, ce qui n’est pas pratique en cas de drop puis recreate de la base de
l’annuaire)&lt;/span&gt;.&lt;/p&gt;
&lt;p class=&quot;paragraph_style_1&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 18px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;span class=&quot;style_3&quot; style=&quot;font-family: ArialMT,Arial,sans-serif;&quot;&gt;La
commande à utiliser est slappaswd&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_1&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 18px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;span class=&quot;style_5&quot; style=&quot;font-size: 13px; line-height: 16px;&quot;&gt;sudo
slappasswd&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_1&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 18px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
&lt;span class=&quot;style_3&quot; style=&quot;font-family: ArialMT,Arial,sans-serif;&quot;&gt;qui donne
un résultat du type &lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
$ sudo slappasswd&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
New password:&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Re-enter password:&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
{SSHA}d2BamRTgBuhC6SxC0vFGWol31ki8iq5m&lt;/p&gt;
&lt;p class=&quot;paragraph_style_2&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: ArialMT,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 17px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
Nous pouvons maintenant éditer /etc/ldap/slapd.conf : &lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# Global Directives:&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# Features to permit&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
#allow bind_v2&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# Schema and objectClass definitions&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
include        
/etc/ldap/schema/core.schema&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
include        
/etc/ldap/schema/cosine.schema&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
include        
/etc/ldap/schema/nis.schema&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
include        
/etc/ldap/schema/inetorgperson.schema&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
include        
/etc/ldap/schema/misc.schema&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
include        
/etc/ldap/schema/corba.schema&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
include        
/etc/ldap/schema/openldap.schema&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
include        
/etc/ldap/schema/java.schema&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
include        
/etc/ldap/schema/ppolicy.schema&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# Where the pid file is put. The init.d script&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# will not stop the server if you change this.&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
pidfile        
/var/run/slapd/slapd.pid&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# List of arguments that were passed to the server&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
argsfile       
/var/run/slapd/slapd.args&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# Read slapd.conf(5) for possible values&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
loglevel        0&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# Where the dynamically loaded modules are stored&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
modulepath      /usr/lib/ldap&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
moduleload      back_bdb&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# The maximum number of entries that is returned for a search operation&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
sizelimit 500&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# The tool-threads parameter sets the actual amount of cpu's that is used&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# for indexing.&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
tool-threads 1&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
backend         bdb&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
checkpoint 512 30&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
#backend               
&amp;lt;other&amp;gt;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
database        bdb&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# The base of your directory in database #1&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
suffix         
&amp;quot;dc=davidrobin,dc=net&amp;quot;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# rootdn directive for specifying a superuser on the database. This is
needed&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# for syncrepl.&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
rootdn         
&amp;quot;cn=admin,dc=davidrobin,dc=net&amp;quot;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
rootpw         
{SSHA}UT307hSsFU++B3UvefzqFVzVp3UlzkwJ&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# Where the database file are physically stored for database #1&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
directory       &amp;quot;/var/lib/ldap&amp;quot;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# For the Debian package we use 2MB as default but be sure to update this&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# value if you have plenty of RAM&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
dbconfig set_cachesize 0 2097152 0&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# Sven Hartge reported that he had to set this value incredibly high&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# to get slapd running at all. See &lt;a href=&quot;http://bugs.debian.org/303057&quot; title=&quot;http://bugs.debian.org/303057&quot; style=&quot;color: rgb(70, 60, 60); text-decoration: underline;&quot;&gt;http://bugs.debian.org/303057&lt;/a&gt;&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# for more information.&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# Number of objects that can be locked at the same time.&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
dbconfig set_lk_max_objects 1500&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# Number of locks (both requested and granted)&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
dbconfig set_lk_max_locks 1500&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# Number of lockers&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
dbconfig set_lk_max_lockers 1500&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# Indexing options for database #1&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
index           objectClass
eq&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# Save the time that the entry gets modified, for database #1&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
lastmod         on&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# Where to store the replica logs for database #1&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
# replogfile    /var/lib/ldap/replog&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
access to attrs=userPassword,shadowLastChange&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
        by
dn=&amp;quot;cn=admin,dc=davidrobin,dc=net&amp;quot; write&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
        by anonymous auth&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
        by self write&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rgb(70, 60, 60); font-family: Courier,serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 16px; opacity: 1; padding-bottom: 0; padding-top: 0; text-align: left; text-decoration: none; text-indent: 0; text-transform: none;&quot;&gt;
        by * none&lt;/p&gt;
&lt;p class=&quot;paragraph_style_3&quot; style=&quot;margin: 0; color: rg