<?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</title>
	<atom:link href="http://etiennelachance.com/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>Matériel Libre</title>
		<link>http://etiennelachance.com/2011/09/materiel-libre/</link>
		<comments>http://etiennelachance.com/2011/09/materiel-libre/#comments</comments>
		<pubDate>Sat, 17 Sep 2011 18:39:54 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Info]]></category>
		<category><![CDATA[Libre]]></category>
		<category><![CDATA[Matériel]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=205</guid>
		<description><![CDATA[Petit post pour vous mentionner OHANDA, un projet pour le Matériel Libre]]></description>
			<content:encoded><![CDATA[<p>Petit post pour vous mentionner <a title="OHANDA" href="http://www.ohanda.org/" target="_blank">OHANDA</a>, un projet pour le Matériel Libre</p>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2011/09/materiel-libre/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installer MongoDB sous Mac Snow Leopard</title>
		<link>http://etiennelachance.com/2011/06/installer-mongodb-sous-mac-snow-leopard/</link>
		<comments>http://etiennelachance.com/2011/06/installer-mongodb-sous-mac-snow-leopard/#comments</comments>
		<pubDate>Fri, 10 Jun 2011 15:00:07 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[MongoDB]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=190</guid>
		<description><![CDATA[Voici une petite procédure pour installer MongoDB sous Mac OS. La façon la plus simple que j&#8217;ai trouvé est utilisé MacPorts. Installation sudo port install mongodb Références http://www.mongodb.org/downloads#packages &#160;]]></description>
			<content:encoded><![CDATA[<p>Voici une petite procédure pour installer <a title="MongoDB" href="http://www.mongodb.org/" target="_blank">MongoDB</a> sous Mac OS. La façon la plus simple que j&#8217;ai trouvé est utilisé <a title="MacPorts" href="http://www.macports.org/" target="_blank">MacPorts</a>.</p>

<h2>Installation</h2>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> mongodb</pre></div></div>


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

<ul>
    <li><a href="http://www.mongodb.org/downloads#packages" target="_blank">http://www.mongodb.org/downloads#packages</a></li>
</ul>

<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2011/06/installer-mongodb-sous-mac-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Projet : Étendre l&#8217;API BigBlueButton en Node.js</title>
		<link>http://etiennelachance.com/2011/06/projet-etendre-lapi-bigbluebutton-en-node-js/</link>
		<comments>http://etiennelachance.com/2011/06/projet-etendre-lapi-bigbluebutton-en-node-js/#comments</comments>
		<pubDate>Fri, 10 Jun 2011 03:45:46 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[BigBlueButton]]></category>
		<category><![CDATA[Node.js]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=184</guid>
		<description><![CDATA[But L&#8217;idée de re-créer l&#8217;équivalent de l&#8217;API BigBlueButton est dans l&#8217;object d&#8217;y ajouter des fonctionnalitées tel que la gestion par utilisateur, la limitation des ressources et l&#8217;isolation des salles par clients/départements. BigBlueButton est une implémentation d&#8217;un système de vidéo conférence &#8230; <a href="http://etiennelachance.com/2011/06/projet-etendre-lapi-bigbluebutton-en-node-js/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>But</h2>

<p>L&#8217;idée de re-créer l&#8217;équivalent de l&#8217;API BigBlueButton est dans l&#8217;object d&#8217;y ajouter des fonctionnalitées tel que la gestion par utilisateur, la limitation des ressources et l&#8217;isolation des salles par clients/départements.</p>

<p>BigBlueButton est une implémentation d&#8217;un système de vidéo conférence focussé sur une<strong> interface utilisateur simple</strong> et d&#8217;être une<strong> plateforme extensible </strong>pour l&#8217;éducation a distance. L&#8217;équipe de développement de BigBlueButton travail fort pour intégrer et implémenter plus de <a href="http://bigbluebutton.org/components" target="_blank">15 projets Open Source</a> pour accomplir le résultats .</p>

<p>L&#8217;équipe de développement de BigBlueButton ne se concentre pas sur les logics d&#8217;affaires. Et franchement, entre vous et moi, je suis beaucoup plus interessé au fait qu&#8217;il ajoute le &#8220;Record and Playback&#8221;.  Les logic d&#8217;affaire, je peux toujours les développer. =)</p>

<h2>Étapes de réalisation du projet (Roadmap)</h2>

<ul>
    <li>Version 0.1.0
<ul>
    <li>Reproduire le même comportement que l&#8217;API de BigBlueButton (<a href="http://code.google.com/p/bigbluebutton/wiki/API" target="_blank">voir la documentation</a>)</li>
</ul>

<p></li>
    <li>Version 0.2.0</p>

<ul>
    <li>Abstraction du &#8220;securitySalt&#8221; par client (ne pas donnée le &#8220;securitySalt&#8221; du serveur directement au client final, mais sa propre clef)</li>
    <li>Gestion des droits sur les salles (si un utilisateur A crée une salle, l&#8217;utilisateur B ne peu y accéder)</li>
</ul>

<p></li>
    <li>Version 0.3.0</p>

<ul>
    <li>Interface de gestion
<ul>
    <li>ajout, suppression d&#8217;utilisateur</li>
    <li>Tableau de bord</li>
</ul>

<p></li>
</ul>
</li>
    <li>Version 0.4.0 (Release Candidate pour la version 1.0.0)</p>

<ul>
    <li>Exécuter <a href="http://nodejs.org/" target="_blank">Node.js</a> en tant que service</li>
    <li>Optimisation de la performance, re-factorisation du code</li>
    <li>Documentation</li>
</ul>

<p></li>
</ul></p>

<h2>Participation au dévellopement</h2>

<p>Le projet est disponible sur <a title="bbbApiExt" href="https://github.com/estheban/bbbApiExt" target="_blank">GitHub</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2011/06/projet-etendre-lapi-bigbluebutton-en-node-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Importation d&#8217;un fichier vers MySQL en ligne de commande</title>
		<link>http://etiennelachance.com/2010/09/importation-dun-fichier-vers-mysql-en-ligne-de-commande/</link>
		<comments>http://etiennelachance.com/2010/09/importation-dun-fichier-vers-mysql-en-ligne-de-commande/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 19:11:59 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=121</guid>
		<description><![CDATA[Pour importer un fichier .sql vers MySQL, ecrivez la commande suivante, dans un terminal : mysql -p -h SERVEUR_DB dbname &#60; dbname.sql En assumant que le nom de la base de donnée est  &#8221;dbname&#8221; et que le fichier est &#8220;dbname.sql&#8220;. Remplacer &#8230; <a href="http://etiennelachance.com/2010/09/importation-dun-fichier-vers-mysql-en-ligne-de-commande/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Pour importer un fichier .sql vers MySQL, ecrivez la commande suivante, dans un terminal :</p>

<blockquote><span style="font-family: courier, monospace;">mysql -p -h <strong>SERVEUR_DB</strong> <strong>dbname</strong> &lt; <strong>dbname.sql</strong></span></blockquote>

<p>En assumant que le nom de la base de donnée est  &#8221;<strong>dbname</strong>&#8221; et que le fichier est &#8220;<strong>dbname.sql</strong>&#8220;. Remplacer aussi <strong>SERVEUR_DB</strong> par l&#8217;adresse de votre serveur MySQL.</p>

<p><strong>Référence</strong></p>

<ul>
    <li><a href="http://support.modwest.com/content/6/241/en/how-do-i-import-a-mysql-dumpfile-into-my-database.html">http://support.modwest.com/content/6/241/en/how-do-i-import-a-mysql-dumpfile-into-my-database.html</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2010/09/importation-dun-fichier-vers-mysql-en-ligne-de-commande/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>OpenLDAP et Active Directory : Syncroniser la Suppression d&#8217;éléments</title>
		<link>http://etiennelachance.com/2010/05/openldap-et-active-directory-syncroniser-la-suppression-delements/</link>
		<comments>http://etiennelachance.com/2010/05/openldap-et-active-directory-syncroniser-la-suppression-delements/#comments</comments>
		<pubDate>Mon, 03 May 2010 19:46:32 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[activedirectory]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenLDAP]]></category>
		<category><![CDATA[synchronisation]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=131</guid>
		<description><![CDATA[Est-ce possible, un système pour faire la synchronisation entre OpenLDAP et Active Directory ? Je suis présentement en train de créer une série d&#8217;applications pour faire tout simplement(relatif) synchronisé un OpenLDAP (master) vers un Active Directory (Slave). Voici un premier &#8230; <a href="http://etiennelachance.com/2010/05/openldap-et-active-directory-syncroniser-la-suppression-delements/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>Est-ce possible, un système pour faire la synchronisation entre OpenLDAP et Active Directory ?</h2>

<p>Je suis présentement en train de créer une série d&#8217;applications pour faire tout simplement(relatif) synchronisé un OpenLDAP (master) vers un Active Directory (Slave).</p>

<p>Voici un premier <em>draft</em> pour la suppression d&#8217;élément.  Ce script écrit en C# (sous Mono), a comme bût d&#8217;avoir un point d&#8217;accès pour la suppression d&#8217;attribut ou d&#8217;entré d&#8217;un OpenLDAP et d&#8217;un Active Directory.</p>

<p>Je vais créer un projet Open Source avec le code que j&#8217;ai déjà fait sous peu, avec une licence GNU (ou similaire).  Mais en attendant voici le code pour la suppression d&#8217;élément.</p>

<p><a href="http://etiennelachance.com/files/ldap-delete.zip">ldap-delete.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2010/05/openldap-et-active-directory-syncroniser-la-suppression-delements/feed/</wfw:commentRss>
		<slash:comments>1</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>
		<item>
		<title>Comment réinitialisé un mot de passe pour Atlassian Fisheye</title>
		<link>http://etiennelachance.com/2010/03/comment-reinitialise-un-mot-de-passe-pour-atlassian-fisheye/</link>
		<comments>http://etiennelachance.com/2010/03/comment-reinitialise-un-mot-de-passe-pour-atlassian-fisheye/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 14:54:03 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[atlassian]]></category>
		<category><![CDATA[auth]]></category>
		<category><![CDATA[fisheye]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=115</guid>
		<description><![CDATA[Symptômes Si vous avez oublié ou perdu le mot de passe admin, vous devez le réinitialiser manuellement. Résolution Pour réinitialiser le mot de passe admin, éditer le fichier FISHEYE_INST/config.xml (faire une copie de sauvegarde avant, bien-sur). Vous allez voir quelques chose &#8230; <a href="http://etiennelachance.com/2010/03/comment-reinitialise-un-mot-de-passe-pour-atlassian-fisheye/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>Symptômes</h2>

<p>Si vous avez oublié ou perdu le mot de passe admin, vous devez le réinitialiser manuellement.</p>

<h2>Résolution</h2>

<p>Pour réinitialiser le mot de passe admin, éditer le fichier <tt>FISHEYE_INST/config.xml</tt> (faire une copie de sauvegarde avant, bien-sur).</p>

<p>Vous allez voir quelques chose comme :</p>

<div>
<div>


cd7a5b7a060bc8c1ddb069c4bcf5c113


</div>

<p></div>
Changer le &#8220;admin-hash&#8221; pour <tt>admin-hash="21232F297A57A5A743894A0E4A801FC3"</tt></p>

<div>
<div>


1813a7cb35446559d4598d2294462941


</div>

<p></div>
Redémarrer Fisheye pour que cela prend effet. Vous pouvez maintenant vous identifier dans la section Administration de Fisheye avec le mot de passe : <strong>admin</strong>. Prenez note de changer le mot de passe dans l&#8217;interface.</p>

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

<ul>
    <li><a href="http://confluence.atlassian.com/display/FISHKB/How+to+reset+the+Admin+password+in+Fisheye+or+Crucible" target="_blank">http://confluence.atlassian.com/display/FISHKB/How+to+reset+the+Admin+password+in+Fisheye+or+Crucible</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2010/03/comment-reinitialise-un-mot-de-passe-pour-atlassian-fisheye/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

