<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Etienne Lachance &#187; Ubuntu</title>
	<atom:link href="http://etiennelachance.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://etiennelachance.com</link>
	<description></description>
	<lastBuildDate>Sat, 17 Sep 2011 18:39:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Installer Node.js sous Ubuntu</title>
		<link>http://etiennelachance.com/2011/06/installer-node-js-sous-ubuntu/</link>
		<comments>http://etiennelachance.com/2011/06/installer-node-js-sous-ubuntu/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 23:39:01 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[Node.js]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=170</guid>
		<description><![CDATA[Voici une petite procédure pour vous permettre d&#8217;installer les fichiers binaire de Node.js sous Ubuntu. Cette procédure a été tester sous la version 10.04 et 10.10. Installation Ouvrer un terminal et exécuter les commandes suivantes : sudo apt-get install python-software-properties &#8230; <a href="http://etiennelachance.com/2011/06/installer-node-js-sous-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Voici une petite procédure pour vous permettre d&#8217;installer les fichiers binaire de <a title="Node.js" href="http://nodejs.org/" target="_blank">Node.js</a> sous <a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a>. Cette procédure a été tester sous la version 10.04 et 10.10.</p>

<h2>Installation</h2>

<p>Ouvrer un terminal et exécuter les commandes suivantes :</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> python-software-properties
<span style="color: #c20cb9; font-weight: bold;">sudo</span> add-apt-repository ppa:jerome-etienne<span style="color: #000000; font-weight: bold;">/</span>neoip
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> nodejs</pre></div></div>


<h2>Conclusion</h2>

<p>Hey Voilà! Node.js fonctionnel. vous pouvez démarrer node avec la commande :</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">node votreApplication.js</pre></div></div>


<h2>Référence</h2>

<ul>
    <li><a href="https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager" target="_blank">https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2011/06/installer-node-js-sous-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installer un serveur DNS(bind) avec un backend MySQL sous Ubuntu 10.04</title>
		<link>http://etiennelachance.com/2010/06/installer-un-serveur-dnsbind-avec-un-backend-mysql-sous-ubuntu-10-04/</link>
		<comments>http://etiennelachance.com/2010/06/installer-un-serveur-dnsbind-avec-un-backend-mysql-sous-ubuntu-10-04/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 18:53:46 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[dlz]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=138</guid>
		<description><![CDATA[But Installation d&#8217;un serveur DNS(bind9) avec un backend MySQL sous Ubuntu 10.04 Pré-requis Préparer l&#8217;environement en exécutant : mkdir -p /usr/local/src/bind9 cd /usr/local/src/bind9 Installer les pacquets nessécaires : apt-get update -y apt-get install -y build-essential mysql-server fakeroot bison libmysqlclient15-dev \ &#8230; <a href="http://etiennelachance.com/2010/06/installer-un-serveur-dnsbind-avec-un-backend-mysql-sous-ubuntu-10-04/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>But</h2>

<p>Installation d&#8217;un serveur DNS(bind9) avec un backend MySQL sous Ubuntu 10.04</p>

<h2>Pré-requis</h2>

<ol>
    <li>Préparer l&#8217;environement en exécutant :


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>bind9
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>bind9</pre></div></div>



</li>
    <li>Installer les pacquets nessécaires :


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> update <span style="color: #660033;">-y</span>
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-y</span> build-essential mysql-server fakeroot <span style="color: #c20cb9; font-weight: bold;">bison</span> libmysqlclient15-dev \
 libkrb5-dev libkrb5-dev libssl-dev libtool libdb-dev libldap2-dev libldap2-dev libcap2-dev \
 hardening-wrapper debhelper libxml2-dev libgeoip-dev
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #7a0874; font-weight: bold;">source</span> <span style="color: #660033;">-y</span> bind9</pre></div></div>



</li>
</ol>

<h2>BIND</h2>

<h3>Préparation</h3>

<ol>
    <li>Récupurer le nom du répertoire (varie selon la version)


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-1</span></pre></div></div>



Voici un exemple de résultat, le nom recherché est marqué en <strong>gras</strong>
<blockquote><strong>bind9-9.5.1.dfsg.P2</strong> bind9_9.5.1.dfsg.P2-1.diff.gz  bind9_9.5.1.dfsg.P2-1.dsc bind9_9.5.1.dfsg.P2.orig.tar.gz</blockquote>
</li>
    <li>Entrer dans le répertoire


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> bind9-9.5.1.dfsg.P2</pre></div></div>



</li>
    <li>Éditer le fichier des règles de compilation


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> debian<span style="color: #000000; font-weight: bold;">/</span>rules</pre></div></div>



Et changer la ligne <strong>&#8211;with-dlz-mysql=no</strong> par    <strong>&#8211;with-dlz-mysql=yes</strong> ou vous pouvez exécuter la commande  suivante dans <strong>vi</strong> :


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">:<span style="color: #000000; font-weight: bold;">%</span>s<span style="color: #000000; font-weight: bold;">/</span>dlz-mysql=no<span style="color: #000000; font-weight: bold;">/</span>dlz-mysql=yes<span style="color: #000000; font-weight: bold;">/</span>g</pre></div></div>



Enregistrer le fichier et quitter


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">:wq</pre></div></div>



</li>
</ol>

<h3>Compilation</h3>

<p>Pour compiler l&#8217;application exécuter la commande suivante :</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">dpkg-buildpackage <span style="color: #660033;">-rfakeroot</span> <span style="color: #660033;">-b</span></pre></div></div>


<table border="0" cellspacing="0" cellpadding="2" width="701" bgcolor="#ffcccc"><colgroup><col width="22"></col> <col width="671"></col> </colgroup>
<tbody>
<tr>
<td width="22" valign="TOP"></td>
<td width="671">Si <strong>dpkg-buildpackage</strong> vous spécifie qu&#8217;il manque des           dépendances (<em>unmet dependencies</em>) Installer les            dépendances avec la commande <strong>apt-get install</strong> et           réessailler.</td>
</tr>
</tbody>
</table>

<h3>Installation</h3>

<ol>
    <li>Reculer d&#8217;un répertoire :


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ..
<span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span></pre></div></div>



<blockquote>bind9-9.5.1.dfsg.P2 bind9_9.5.1.dfsg.P2-1_amd64.changes     bind9_9.5.1.dfsg.P2-1_amd64.deb bind9_9.5.1.dfsg.P2-1.diff.gz   bind9_9.5.1.dfsg.P2-1.dsc bind9_9.5.1.dfsg.P2.orig.tar.gz   bind9-doc_9.5.1.dfsg.P2-1_all.deb   bind9-host_9.5.1.dfsg.P2-1_amd64.deb    bind9utils_9.5.1.dfsg.P2-1_amd64.deb    dnsutils_9.5.1.dfsg.P2-1_amd64.de   libbind9-40_9.5.1.dfsg.P2-1_amd64.deb   libbind-dev_9.5.1.dfsg.P2-1_amd64.deb   libdns45_9.5.1.dfsg.P2-1_amd64.deb  libisc45_9.5.1.dfsg.P2-1_amd64.deb  libisccc40_9.5.1.dfsg.P2-1_amd64.deb    libisccfg40_9.5.1.dfsg.P2-1_amd64.deb   liblwres40_9.5.1.dfsg.P2-1_amd64.deb    lwresd_9.5.1.dfsg.P2-1_amd64.deb</blockquote>
</li>
    <li>Installer les pacquets sur votre système.


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> <span style="color: #000000; font-weight: bold;">*</span>.deb</pre></div></div>



</li>
</ol>

<h3>Configuration</h3>

<ol>
    <li>Forcer bind a être exécuter en    un seul <em>thread</em>. Éditier le fichier /<strong>etc/default/bind9</strong>
<ol>
    <li>run resolvconf? RESOLVCONF=yes</li>
    <li>startup options for the server      OPTIONS=&#8221;-u bind <strong>-n 1</strong>&#8221;
<table border="0" cellspacing="0" cellpadding="2" width="654" bgcolor="#ffffce"><colgroup><col width="22"></col> <col width="624"></col> </colgroup>
<tbody>
<tr>
<td width="22" valign="TOP"></td>
<td width="624">Bind semble avoir un problème lorsque qu&#8217;il est exécuter en                   <em>multithread</em>. L&#8217;erreur <em>&#8220;mysql driver unable to                  return result set for findzone query&#8221;</em> apparait dans                    les fichier de log et bind fini par arrêter.</td>
</tr>
</tbody>
</table>
</li>
</ol>

<p></li>
    <li>Voici un exemple pour le fichier    <strong>/etc/bind/named.conf.local</strong><strong>cat  /etc/bind/named.conf.local</strong></p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">dlz <span style="color: #ff0000;">&quot;Mysql zone&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
   database <span style="color: #ff0000;">&quot;mysql
   {host=localhost dbname=Nom_de_la_Base_de_Donnee user=Nom_d_utilisateur pass=Mot_de_passe ssl=false}
   {select zone from dns_records where zone = '<span style="color: #007800;">$zone</span>$'}
   {select ttl, type, mx_priority, case when lower(type)='txt' then concat('<span style="color: #000099; font-weight: bold;">\&quot;</span>', data, '<span style="color: #000099; font-weight: bold;">\&quot;</span>')
        when lower(type) = 'soa' then concat_ws(' ', data, resp_person, serial, refresh, retry, expire, minimum)
        else data end from dns_records where zone = '<span style="color: #007800;">$zone</span>$' and host = '<span style="color: #007800;">$record</span>$'}&quot;</span>;
<span style="color: #7a0874; font-weight: bold;">&#125;</span>;</pre></div></div>


<p></li>
</ol></p>

<h2><span id="more-138"></span></h2>

<h2>MySQL</h2>

<h3>Creation d&#8217;un utilisateur et d&#8217;une base de données</h3>


<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">CREATE</span> <span style="color: #000099;">USER</span> <span style="color: #008000;">'Nom<span style="color: #008080; font-weight: bold;">_</span>d<span style="color: #008080; font-weight: bold;">_</span>Utilisateur'</span>@<span style="color: #008000;">'localhost'</span> IDENTIFIED BY  <span style="color: #008000;">'***'</span><span style="color: #000033;">;</span>
<span style="color: #990099; font-weight: bold;">GRANT</span> <span style="color: #990099; font-weight: bold;">USAGE</span> <span style="color: #990099; font-weight: bold;">ON</span> <span style="color: #CC0099;">*</span> . <span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">TO</span>  <span style="color: #008000;">'Nom<span style="color: #008080; font-weight: bold;">_</span>d<span style="color: #008080; font-weight: bold;">_</span>Utilisateur'</span>@<span style="color: #008000;">'localhost'</span> IDENTIFIED BY  <span style="color: #008000;">'***'</span> <span style="color: #990099; font-weight: bold;">WITH</span> MAX_QUERIES_PER_HOUR <span style="color: #008080;">0</span> MAX_CONNECTIONS_PER_HOUR <span style="color: #008080;">0</span> MAX_UPDATES_PER_HOUR <span style="color: #008080;">0</span> MAX_USER_CONNECTIONS <span style="color: #008080;">0</span> <span style="color: #000033;">;</span>
&nbsp;
<span style="color: #990099; font-weight: bold;">CREATE</span> <span style="color: #990099; font-weight: bold;">DATABASE</span> <span style="color: #990099; font-weight: bold;">IF <span style="color: #CC0099; font-weight: bold;">NOT</span> EXISTS</span>  <span style="color: #008000;">`Nom<span style="color: #008080; font-weight: bold;">_</span>de<span style="color: #008080; font-weight: bold;">_</span>la<span style="color: #008080; font-weight: bold;">_</span>base<span style="color: #008080; font-weight: bold;">_</span>de<span style="color: #008080; font-weight: bold;">_</span>donnée`</span> <span style="color: #000033;">;</span>
&nbsp;
<span style="color: #990099; font-weight: bold;">GRANT</span> <span style="color: #990099; font-weight: bold;">ALL</span> <span style="color: #990099; font-weight: bold;">PRIVILEGES</span> <span style="color: #990099; font-weight: bold;">ON</span>  <span style="color: #008000;">`Nom<span style="color: #008080; font-weight: bold;">_</span>de<span style="color: #008080; font-weight: bold;">_</span>la<span style="color: #008080; font-weight: bold;">_</span>base<span style="color: #008080; font-weight: bold;">_</span>de<span style="color: #008080; font-weight: bold;">_</span>donnée`</span>.<span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">TO</span>  <span style="color: #008000;">'Nom<span style="color: #008080; font-weight: bold;">_</span>d<span style="color: #008080; font-weight: bold;">_</span>Utilisateur'</span>@<span style="color: #008000;">'localhost'</span><span style="color: #000033;">;</span></pre></div></div>


<h3>Création du schéma</h3>

<p>Exécuter sur le serveur SQL :</p>


<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">CREATE</span> <span style="color: #990099; font-weight: bold;">TABLE</span> <span style="color: #990099; font-weight: bold;">IF <span style="color: #CC0099; font-weight: bold;">NOT</span> EXISTS</span> <span style="color: #008000;">`dns<span style="color: #008080; font-weight: bold;">_</span>records`</span> <span style="color: #FF00FF;">&#40;</span>
  <span style="color: #008000;">`id`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">11</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #FF9900; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`zone`</span> <span style="color: #999900; font-weight: bold;">varchar</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">64</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`host`</span> <span style="color: #999900; font-weight: bold;">varchar</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">64</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`type`</span> <span style="color: #999900; font-weight: bold;">varchar</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">8</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`data`</span> <span style="color: #999900; font-weight: bold;">varchar</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">64</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`ttl`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">11</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #008000;">'3600'</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`mx<span style="color: #008080; font-weight: bold;">_</span>priority`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">11</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`refresh`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">11</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #008000;">'3600'</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`retry`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">11</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #008000;">'3600'</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`expire`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">11</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #008000;">'86400'</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`minimum`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">11</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #008000;">'3600'</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`serial`</span> <span style="color: #999900; font-weight: bold;">bigint</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">20</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #008000;">'2008082700'</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`resp<span style="color: #008080; font-weight: bold;">_</span>person`</span> <span style="color: #999900; font-weight: bold;">varchar</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">64</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #008000;">'resp.person.email'</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`primary<span style="color: #008080; font-weight: bold;">_</span>ns`</span> <span style="color: #999900; font-weight: bold;">varchar</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">64</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #008000;">'ns1.yourdns.here'</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`data<span style="color: #008080; font-weight: bold;">_</span>count`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">11</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #008000;">'0'</span><span style="color: #000033;">,</span>
  <span style="color: #990099; font-weight: bold;">PRIMARY KEY</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`id`</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>
  <span style="color: #990099; font-weight: bold;">KEY</span> <span style="color: #008000;">`host`</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`host`</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>
  <span style="color: #990099; font-weight: bold;">KEY</span> <span style="color: #008000;">`zone`</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`zone`</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>
  <span style="color: #990099; font-weight: bold;">KEY</span> <span style="color: #008000;">`type`</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`type`</span><span style="color: #FF00FF;">&#41;</span>
<span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">ENGINE</span><span style="color: #CC0099;">=</span>MyISAM  <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #FF9900; font-weight: bold;">CHARSET</span><span style="color: #CC0099;">=</span>latin1<span style="color: #000033;">;</span></pre></div></div>


<h3>Donnée d&#8217;exemple</h3>


<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">INSERT</span> <span style="color: #990099; font-weight: bold;">INTO</span> <span style="color: #008000;">`dns<span style="color: #008080; font-weight: bold;">_</span>records`</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`id`</span><span style="color: #000033;">,</span> <span style="color: #008000;">`zone`</span><span style="color: #000033;">,</span> <span style="color: #008000;">`host`</span><span style="color: #000033;">,</span> <span style="color: #008000;">`type`</span><span style="color: #000033;">,</span> <span style="color: #008000;">`data`</span><span style="color: #000033;">,</span> <span style="color: #008000;">`ttl`</span><span style="color: #000033;">,</span> <span style="color: #008000;">`mx<span style="color: #008080; font-weight: bold;">_</span>priority`</span><span style="color: #000033;">,</span> <span style="color: #008000;">`refresh`</span><span style="color: #000033;">,</span> <span style="color: #008000;">`retry`</span><span style="color: #000033;">,</span> <span style="color: #008000;">`expire`</span><span style="color: #000033;">,</span> <span style="color: #008000;">`minimum`</span><span style="color: #000033;">,</span> <span style="color: #008000;">`serial`</span><span style="color: #000033;">,</span> <span style="color: #008000;">`resp<span style="color: #008080; font-weight: bold;">_</span>person`</span><span style="color: #000033;">,</span> <span style="color: #008000;">`primary<span style="color: #008080; font-weight: bold;">_</span>ns`</span><span style="color: #000033;">,</span> <span style="color: #008000;">`data<span style="color: #008080; font-weight: bold;">_</span>count`</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">VALUES</span>
<span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">1</span><span style="color: #000033;">,</span> <span style="color: #008000;">'test.cat.io'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'www'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'A'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'1.2.3.4'</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #008080;">86400</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #008080;">2008082700</span><span style="color: #000033;">,</span> <span style="color: #008000;">'resp.person.email'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'ns1.yourdns.here'</span><span style="color: #000033;">,</span> <span style="color: #008080;">0</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>
<span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">2</span><span style="color: #000033;">,</span> <span style="color: #008000;">'test.cat.io'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'patate'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'A'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'245.241.2.1'</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #008080;">86400</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #008080;">2008082700</span><span style="color: #000033;">,</span> <span style="color: #008000;">'resp.person.email'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'ns1.yourdns.here'</span><span style="color: #000033;">,</span> <span style="color: #008080;">0</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>
<span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">3</span><span style="color: #000033;">,</span> <span style="color: #008000;">'test.cat.io'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'@'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'A'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'1.2.3.4'</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #008080;">86400</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #008080;">2008082700</span><span style="color: #000033;">,</span> <span style="color: #008000;">'resp.person.email'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'ns1.yourdns.here'</span><span style="color: #000033;">,</span> <span style="color: #008080;">0</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>
<span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">4</span><span style="color: #000033;">,</span> <span style="color: #008000;">'test.cat.io'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'www2'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'CNAME'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'www.domain.com.'</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #008080;">86400</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #008080;">2008082700</span><span style="color: #000033;">,</span> <span style="color: #008000;">'resp.person.email'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'ns1.yourdns.here'</span><span style="color: #000033;">,</span> <span style="color: #008080;">0</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>
<span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">5</span><span style="color: #000033;">,</span> <span style="color: #008000;">'test.cat.io'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'@'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'MX'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'domain.com.'</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #008080;">0</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #008080;">86400</span><span style="color: #000033;">,</span> <span style="color: #008080;">3600</span><span style="color: #000033;">,</span> <span style="color: #008080;">2008082700</span><span style="color: #000033;">,</span> <span style="color: #008000;">'resp.person.email'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'ns1.yourdns.here'</span><span style="color: #000033;">,</span> <span style="color: #008080;">0</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span></pre></div></div>


<h2>Redémarrer et tester</h2>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">reboot</pre></div></div>


<h2>References</h2>

<ul>
    <li><a href="http://diaryproducts.net/about/operating_systems/unix/installing_bind9_with_dlz_and_mysql_backend_on_ubuntu_jaunty_9_04">http://diaryproducts.net/about/operating_systems/unix/installing_bind9_with_dlz_and_mysql_backend_on_ubuntu_jaunty_9_04</a></li>
    <li><a href="http://bind-dlz.sourceforge.net/mysql_driver.html">http://bind-dlz.sourceforge.net/mysql_driver.html</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2010/06/installer-un-serveur-dnsbind-avec-un-backend-mysql-sous-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Ubuntu : Changer les boutons de côté dans la barre de titre</title>
		<link>http://etiennelachance.com/2010/05/ubuntu-changer-les-boutons-de-cote-dans-la-barre-de-titre/</link>
		<comments>http://etiennelachance.com/2010/05/ubuntu-changer-les-boutons-de-cote-dans-la-barre-de-titre/#comments</comments>
		<pubDate>Mon, 03 May 2010 17:21:17 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=129</guid>
		<description><![CDATA[Plusieurs personnes sont insatisfaite du changement, vers la gauche, des boutons dans Lucid Voici une procédure simple pour remettre les boutons à Droite gconftool-2 --set &#34;/apps/metacity/general/button_layout&#34; --type string &#34;:minimize,maximize,close&#34; C&#8217;est aussi simple pour les remettre à Gauche gconftool-2 --set &#34;/apps/metacity/general/button_layout&#34; &#8230; <a href="http://etiennelachance.com/2010/05/ubuntu-changer-les-boutons-de-cote-dans-la-barre-de-titre/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Plusieurs personnes sont insatisfaite du changement, vers la gauche, des boutons dans Lucid</p>

<p>Voici une procédure simple pour remettre les boutons à <strong>Droite</strong></p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">--set</span> <span style="color: #ff0000;">&quot;/apps/metacity/general/button_layout&quot;</span> <span style="color: #660033;">--type</span> string <span style="color: #ff0000;">&quot;:minimize,maximize,close&quot;</span></pre></div></div>


<p>C&#8217;est aussi simple pour les remettre à <strong>Gauche </strong></p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">--set</span> <span style="color: #ff0000;">&quot;/apps/metacity/general/button_layout&quot;</span> <span style="color: #660033;">--type</span> string <span style="color: #ff0000;">&quot;maximize,minimize,close:&quot;</span></pre></div></div>


<p>Et voilà !! =)</p>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2010/05/ubuntu-changer-les-boutons-de-cote-dans-la-barre-de-titre/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installation d&#8217;OpenLDAP sous Ubuntu 9.10 ou 10.4</title>
		<link>http://etiennelachance.com/2010/03/installation-dopenldap-sous-ubuntu-9-10-ou-10-4/</link>
		<comments>http://etiennelachance.com/2010/03/installation-dopenldap-sous-ubuntu-9-10-ou-10-4/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 18:23:36 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenLDAP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=123</guid>
		<description><![CDATA[Note Suite a de nombreuses frustration de votre part et de la mienne au sujet de OpenLDAP. OpenLDAP &#8220;is a pain in the a..&#8221;. Pour mon infrastructure j&#8217;ai migré vers OpenDS; necessite un peu plus de ressource (Java) par contre, &#8230; <a href="http://etiennelachance.com/2010/03/installation-dopenldap-sous-ubuntu-9-10-ou-10-4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>Note</h2>

<p>Suite a de nombreuses frustration de votre part et de la mienne au sujet de OpenLDAP. OpenLDAP &#8220;is a pain in the a..&#8221;. Pour mon infrastructure j&#8217;ai migré vers OpenDS; necessite un peu plus de ressource (Java) par contre, la gestion et la syncronisation est un charme. Je vais publier bientôt des tutoriel au sujet de <a href="http://www.opends.org/" target="_blank">OpenDS</a>.</p>

<h2>Description</h2>

<p>La configuration d&#8217;OpenLDAP c&#8217;est un peu compliquer. cn=config est toujours utilisé, par contre lors de l&#8217;installation du paquet, uniquement un squelette de la configuration est installé.</p>

<p>On ne vous demande plus de mot de passe lors de l&#8217;installation du paquet et &#8220;dpkg-reconfigure slapd&#8221; ne fait que restaurer le squelette de la configuration initial.  Vous devez utiliser le compte <strong>root</strong> (ou sudo) pour configurer la base de donnée, dn et acl.</p>

<p>Voici une procédure sur comment installer OpenLDAP sous Ubuntu 9.10 ou 10.4.</p>

<p>Le guide officiel sur <a rel="nofollow" href="http://help.ubuntu.com/">help.ubuntu.com</a> n&#8217;est pas à jour et ne spécifie pas comment installer OpenLDAP sous Karmic ou Lucid.</p>

<p>Dans ce tutoriel nous utiliserons <em>dc=example,dc=com</em> comme arbre LDAP.  Ajuster en conséquence.</p>

<p><span id="more-123"></span></p>

<h2>Pré-requis</h2>

<p>Avoir installé Ubuntu</p>

<p>Paquets à installer :</p>

<div>
<div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> slapd ldap-utils</pre></div></div>



</div>

<p></div></p>

<h2>Configuration</h2>

<h3>Étape 1: Changer de répertoire pour /etc/ldap :</h3>

<div>
<div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ldap</pre></div></div>



</div>

<p></div></p>

<h3>Étape 2: Ajouter les schéma que vous avez de besoin, car uniquement le schema core est ajouté par défaut :</h3>

<div>
<div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ldapadd <span style="color: #660033;">-Y</span> EXTERNAL <span style="color: #660033;">-H</span> ldapi:<span style="color: #000000; font-weight: bold;">///</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ldap<span style="color: #000000; font-weight: bold;">/</span>schema<span style="color: #000000; font-weight: bold;">/</span>cosine.ldif
ldapadd <span style="color: #660033;">-Y</span> EXTERNAL <span style="color: #660033;">-H</span> ldapi:<span style="color: #000000; font-weight: bold;">///</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ldap<span style="color: #000000; font-weight: bold;">/</span>schema<span style="color: #000000; font-weight: bold;">/</span>inetorgperson.ldif
ldapadd <span style="color: #660033;">-Y</span> EXTERNAL <span style="color: #660033;">-H</span> ldapi:<span style="color: #000000; font-weight: bold;">///</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ldap<span style="color: #000000; font-weight: bold;">/</span>schema<span style="color: #000000; font-weight: bold;">/</span>nis.ldif</pre></div></div>



</div>

<p></div>
<strong>Note</strong>: Il faut entrer <strong>CHAQUE LIGNE</strong>, ce ne sont pas des commentaires.</p>

<h3>Étape 3:  Ajouter le module de base de donnée et la créer.</h3>

<p>Créer un fichier : <em>db.ldif</em></p>

<div>
<div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> db.ldif</pre></div></div>



</div>

<p></div>
et ajouter le text suivant :</p>

<div>
<div>


<div class="wp_syntax"><div class="code"><pre class="ldif" style="font-family:monospace;"># Load dynamic backend modules
dn: cn=module{0},cn=config
objectClass: olcModuleList
cn: module
olcModulepath: /usr/lib/ldap
olcModuleload: {0}back_hdb
&nbsp;
# Create the database
dn: olcDatabase={1}hdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: {1}hdb
olcDbDirectory: /var/lib/ldap
olcSuffix: dc=example,dc=com
olcRootDN: cn=admin,dc=example,dc=com
olcRootPW: example
olcDbConfig: {0}set_cachesize 0 2097152 0
olcDbConfig: {1}set_lk_max_objects 1500
olcDbConfig: {2}set_lk_max_locks 1500
olcDbConfig: {3}set_lk_max_lockers 1500
olcLastMod: TRUE
olcDbCheckpoint: 512 30
olcDbIndex: uid pres,eq
olcDbIndex: cn,sn,mail pres,eq,approx,sub
olcDbIndex: objectClass eq</pre></div></div>



</div>

<p></div></p>

<div>
<div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ldapadd <span style="color: #660033;">-Y</span> EXTERNAL <span style="color: #660033;">-H</span> ldapi:<span style="color: #000000; font-weight: bold;">///</span> <span style="color: #660033;">-f</span> db.ldif</pre></div></div>



</div>

<p></div>
Prendre note que <em>olcRootPW: example</em> spécifie le mot de passe. Remplacer <em>example</em> par le mot de passe désiré.</p>

<h3>Étape 4: Créer le dn de base et ajouter le compte administrateur pour le serveur OpenLDAP.</h3>

<p>Modifer le text suivant a vos besoins the text below to your needs and wants and generate a password for the admin account. La chaine MD5 présente dans l&#8217;exemple représente : <em>example</em></p>

<p>Créer un mot de passe encrypter pour le compte administrateur, avec la commande suivante :</p>

<div>
<div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">slappasswd <span style="color: #660033;">-h</span></pre></div></div>



</div>

<p></div>
Entrer le mot de passe désiré 2 fois et copier le résultat dans le text plus bas.</p>

<p>Créer le fichier <em>base.ldif</em>:</p>

<div>
<div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> base.ldif</pre></div></div>



</div>

<p></div>
Contenu du fichier base.ldif:</p>

<div>
<div>


<div class="wp_syntax"><div class="code"><pre class="ldif" style="font-family:monospace;">dn: dc=example,dc=com
objectClass: dcObject
objectclass: organization
o: example.com
dc: example
description: My LDAP Root
&nbsp;
dn: cn=admin,dc=example,dc=com
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
userPassword:{MD5}Gnmk1g3mcY6OWzJuM4rlMw==
description: LDAP administrator</pre></div></div>



</div>

<p></div>
Ajouter à la base de donnée avec la commande suivante :</p>

<div>
<div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ldapadd <span style="color: #660033;">-Y</span> EXTERNAL <span style="color: #660033;">-H</span> ldapi:<span style="color: #000000; font-weight: bold;">///</span> <span style="color: #660033;">-f</span> base.ldif</pre></div></div>



</div>

<p></div></p>

<h3>Étape 5: Modifier le système d&#8217;acl (liste de contrôle d&#8217;accès)</h3>

<p>Il y a quelques acl dans la configuration d&#8217;OpenLDAP qui prévient la connexion à partir d&#8217;un client ldap comme <a rel="nofollow" href="http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page">phpldapadmin</a> ou <a rel="nofollow" href="http://directory.apache.org/studio/">Apache Directory Sudio</a>, alors nous allons ajuster les droits pour <em>cn=admin,cn=config</em>. Après cette modification l&#8217;option -D cn=admin,cn=config sera nécessaire pour ce connecter au serveur LDAP.</p>

<p>Créer un fichier <em>config.ldif</em></p>

<p>vi config.ldif</p>

<p>Contenu du fichier <em>config.ldif</em>:</p>

<div>
<div>


<div class="wp_syntax"><div class="code"><pre class="ldif" style="font-family:monospace;">dn: cn=config
changetype: modify
delete: olcAuthzRegexp
&nbsp;
dn: olcDatabase={-1}frontend,cn=config
changetype: modify
delete: olcAccess
&nbsp;
dn: olcDatabase={0}config,cn=config
changetype: modify
delete: olcRootDN
&nbsp;
dn: olcDatabase={0}config,cn=config
changetype: modify
add: olcRootDN
olcRootDN: cn=admin,cn=config
&nbsp;
dn: olcDatabase={0}config,cn=config
changetype: modify
add: olcRootPW
olcRootPW: {MD5}Gnmk1g3mcY6OWzJuM4rlMw==
&nbsp;
dn: olcDatabase={0}config,cn=config
changetype: modify
delete: olcAccess</pre></div></div>



</div>

<p></div>
Prendre note de ne pas oublier de changer la valeur de <em>olcRootPW</em> par le mot de passe en MD5 créé plutôt.</p>

<p>Intégrer dans OpenLDAP :</p>

<div>
<div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ldapadd <span style="color: #660033;">-Y</span> EXTERNAL <span style="color: #660033;">-H</span> ldapi:<span style="color: #000000; font-weight: bold;">///</span> <span style="color: #660033;">-f</span> config.ldif</pre></div></div>



</div>

<p></div></p>

<h3>Étape 6: Ajuster les acl du LDAP</h3>

<p>Maintenant nous devons ajouter quelques droits au LDAP, root possède les droits de lecture et d&#8217;écriture, parcontre l&#8217;acl suivant représente celui qui à toujours été livré avec OpenLDAP dans le passé.</p>

<p>Créer un fichier nommé acl.ldif :</p>

<div>
<div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> acl.ldif</pre></div></div>



</div>

<p></div>
Contenu du fichier acl.ldif:</p>

<div>
<div>


<div class="wp_syntax"><div class="code"><pre class="ldif" style="font-family:monospace;">dn: olcDatabase={1}hdb,cn=config
add: olcAccess
olcAccess: to attrs=userPassword,shadowLastChange by dn=&quot;cn=admin,dc=example,dc=com&quot; write by anonymous auth by self write by * none
olcAccess: to dn.base=&quot;&quot; by * read
olcAccess: to * by dn=&quot;cn=admin,dc=example,dc=com&quot; write by * readNow load the acl into the openldap server:</pre></div></div>



</div>

<p></div></p>

<div>
<div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ldapmodify <span style="color: #660033;">-x</span> <span style="color: #660033;">-D</span> <span style="color: #007800;">cn</span>=admin,<span style="color: #007800;">cn</span>=config <span style="color: #660033;">-W</span> <span style="color: #660033;">-f</span> acl.ldif</pre></div></div>



</div>

<p></div>
Voilà!  Un OpenLDAP fonctionnel.</p>

<h2>Références</h2>

<ul>
    <li><a rel="nofollow" href="http://www.howtoforge.com/install-and-configure-openldap-on-ubuntu-karmic-koala">http://www.howtoforge.com/install-and-configure-openldap-on-ubuntu-karmic-koala</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2010/03/installation-dopenldap-sous-ubuntu-9-10-ou-10-4/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
	</channel>
</rss>

