<?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; Linux</title>
	<atom:link href="http://etiennelachance.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://etiennelachance.com</link>
	<description></description>
	<lastBuildDate>Sat, 18 Feb 2012 03:30:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<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>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>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>Asterisk 1.6 : Installation, compilation et configuration du CDR via MySQL</title>
		<link>http://etiennelachance.com/2009/11/asterisk-cdr-mysql/</link>
		<comments>http://etiennelachance.com/2009/11/asterisk-cdr-mysql/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 20:54:53 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[cdr]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[pbx]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=86</guid>
		<description><![CDATA[Introduction Pour continuer la série d&#8217;article sur asterisk, celuis-ci vous expliquera comment compiler et installer les modules complémentaire (addons) d&#8217;asterisk. Ainsi comment configurer le CDR (Call Detail Record, registre des appels en français). Bonne lecture. Veuiller prendre note que les &#8230; <a href="http://etiennelachance.com/2009/11/asterisk-cdr-mysql/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2 id="Pré-requis">Introduction</h2>

<p>Pour continuer la série d&#8217;article sur asterisk, celuis-ci vous expliquera comment compiler et installer les modules complémentaire (addons) d&#8217;asterisk.  Ainsi comment configurer le CDR (<em>Call Detail Record</em>, registre des appels en français).  Bonne lecture.
Veuiller prendre note que les versions spécifier dans cet artricle sont les derniers versions stables disponible lors de la création de celui-ci.</p>

<h2 id="Pré-requis"><span id="more-86"></span></h2>

<h2>Description</h2>

<p>Les modules complémentaire d&#8217;asterisk comprend ceci :</p>

<ul>
    <li>Applications
<ul>
    <li>app_addon_sql_mysql (Interface pour MySQL)</li>
    <li>app_saycountpl (gadget selon moi)</li>
</ul>

<p></li>
    <li>Call Detail Recording</p>

<ul>
    <li>cdr_addon_mysql (pour enregistrer le registre des appels dans MySQL, le but de l&#8217;article)</li>
</ul>

<p></li>
    <li>Channel Drivers</p>

<ul>
    <li>chan_mobile (Pilote pour les périphérique Bluetooth)</li>
    <li>chan_ooh323 (<a href="http://www.obj-sys.com/open/html/index.shtml" target="_blank">Objective Open H.323</a>)</li>
</ul>

<p></li>
    <li>Format Interpreters</p>

<ul>
    <li>format_mp3 (ça le dit, supporter le format MP3)</li>
</ul>

<p></li>
    <li>Ressource Modules</p>

<ul>
    <li>res_config_mysql (pour la configuration en temps réel )</li>
</ul>

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

<h2 id="Pré-requis">Pré-requis</h2>

<p>Avoir installé une Debian de Base, <a title="Asterisk" href="http://etiennelachance.com/2009/11/compilation-et-installation-dasterisk-1-6-1-9-sous-debian-lenny/">Asterisk</a> et MySQL serveur</p>

<p>Paquets à installer :</p>

<blockquote>


62c9ba5635304e178d4ef67dbe136f1e


</blockquote>

<p>Télécharger les modules complémentaires d&#8217;asterisk :</p>

<blockquote>
<pre># wget <a href="http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-addons-1.6.1.2-rc1.tar.gz">http://downloads.asterisk.org/pub/telephony/asterisk/releases\
/asterisk-addons-1.6.1.2-rc1.tar.gz</a></pre>
</blockquote>

<h2 id="Compilation">Compilation</h2>

<blockquote>


7e9e26c109b5e3d0caeeb3bada23631f


</blockquote>

<p>Les options au script <strong>./configure</strong>, sont des variables pour le standard Debian.
La commande <strong>make menuconfig</strong> est optionnel, utiliser la si vous voulez personaliser les modules d’asterisk</p>

<blockquote>


cfc6b75427c595fd9e9e45665cba24d9


</blockquote>

<p>La commande <strong>make samples</strong> va créer des fichiers de configuration de base dans le répertoire <em>/etc/asterisk</em></p>

<h2 id="Pré-requis">Configuration</h2>

<h3>Serveur MySQL</h3>

<p>Veuiller créer une table dans MySQL, voici le template :</p>

<blockquote>


63ec40caf5fbe8aa128f6de6b3b25705


</blockquote>

<h3>/etc/asterisk/cdr_mysql.conf</h3>

<blockquote>
<pre>[global] 
hostname=<em>l'adresse de votre serveur MySQL
</em>dbname=<em>nom_de_la_base_de_donnée</em>
table=<em>nom_de_la_table</em>
password=<em>le_mot_de_passe</em>
user=<em>nom_de_l'usager</em>
port=3306
;sock=/tmp/mysql.sock</pre>
</blockquote>

<h2>Finalement</h2>

<p>Redémarrer Asterisk et le tout devrait fonctionner.  Si vous avez des questions, laisser moi un commentaire.</p>

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

<ul>
    <li><a href="http://www.voip-info.org/wiki/view/Asterisk+cdr+mysql">http://www.voip-info.org/wiki/view/Asterisk+cdr+mysql</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2009/11/asterisk-cdr-mysql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Compilation et Installation d&#8217;Asterisk 1.6.1.9 sous debian lenny</title>
		<link>http://etiennelachance.com/2009/11/compilation-et-installation-dasterisk-1-6-1-9-sous-debian-lenny/</link>
		<comments>http://etiennelachance.com/2009/11/compilation-et-installation-dasterisk-1-6-1-9-sous-debian-lenny/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 19:02:39 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[pbx]]></category>
		<category><![CDATA[VoIP]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=62</guid>
		<description><![CDATA[Introduction Ceci est le premier post d&#8217;une série sur l&#8217;installation et la configuration du PBX open source Asterisk. Vive l&#8217;open source !! =) Dans ce tutoriel je vais démontre comment installer Asterisk 1.6.1.9 (version stable de la branche 1.6 lors &#8230; <a href="http://etiennelachance.com/2009/11/compilation-et-installation-dasterisk-1-6-1-9-sous-debian-lenny/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2 id="Pré-requis">Introduction</h2>

<p>Ceci est le premier post d&#8217;une série sur l&#8217;installation et la configuration du PBX open source Asterisk. Vive l&#8217;open source !!  =)
Dans ce tutoriel je vais démontre comment installer Asterisk 1.6.1.9 (version stable de la branche 1.6 lors de la création de ce post).</p>

<h2 id="Pré-requis">Pré-requis</h2>

<p>Avoir installé une Debian de Base</p>

<p>Paquet à installer :</p>

<blockquote>


25afbf64b8b8f955e4d373eb4b767c8b


</blockquote>

<p>Télécharger asterisk :</p>

<blockquote>
<pre># wget <a href="http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.6.1.9.tar.gz">http://downloads.asterisk.org/pub/telephony/asterisk/\
releases/asterisk-1.6.1.9.tar.gz</a></pre>
</blockquote>

<h2 id="Compilation"><span id="more-62"></span>Configuration et compilation</h2>

<blockquote>


570051ec38277330d8ac8a54a49b0e6c


</blockquote>

<p>Les options au script <strong>./configure</strong>, sont des variables pour le standard Debian.
La commande <strong>make menuconfig</strong> est optionnel, utiliser la si vous voulez personaliser les modules d&#8217;asterisk</p>

<blockquote>


cfc6b75427c595fd9e9e45665cba24d9


</blockquote>

<p>La commande <strong>make samples</strong> va créer des fichiers de configuration de base dans le répertoire <em>/etc/asterisk</em></p>

<h2 id="Pré-requis">Référence</h2>

<ul>
    <li>Fichier README fournie avec l&#8217;archive d&#8217;asterisk</li>
    <li><a href="http://www.asterisk.org/">http://www.asterisk.org/</a></li>
    <li><a href="http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/rules">http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/rules</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2009/11/compilation-et-installation-dasterisk-1-6-1-9-sous-debian-lenny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configurer un serveur DHCP sous Debian</title>
		<link>http://etiennelachance.com/2009/10/configurer-un-serveur-dhcp-sous-debian/</link>
		<comments>http://etiennelachance.com/2009/10/configurer-un-serveur-dhcp-sous-debian/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 17:28:37 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=50</guid>
		<description><![CDATA[Ce mémo a été écrit et testé pour Debian, mais il est possible de l’adapter facilement à d’autres distributions. Pré-requis Avoir installé une Debian de Base Installation et Configuration du serveur DHCP Paquet à installer : 5a108e63f312b1f6caa9fb28358713c1 Remarque : Par &#8230; <a href="http://etiennelachance.com/2009/10/configurer-un-serveur-dhcp-sous-debian/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ce mémo a été écrit et testé pour Debian, mais il est possible de l’adapter facilement à d’autres distributions.</p>

<h2 id="Pré-requis">Pré-requis</h2>

<p>Avoir installé une Debian de Base</p>

<p>Installation et Configuration du serveur DHCP</p>

<p>Paquet à installer :</p>

<blockquote>


5a108e63f312b1f6caa9fb28358713c1


</blockquote>

<p>Remarque : Par défaut le serveur DHCP n&#8217;écoutera pas sur aucune interface. Pour assigner une interface, modifier le fichier « /etc/default/dhcp3-server »</p>

<h2 id="Configurationduserveur">Configuration du serveur</h2>

<p>Éditer le fichier « /etc/default/dhcp3-server » pour spécifier l&#8217;interface/les interfaces a utliser pour le serveur</p>

<blockquote>


ebdcd53832754700c60a71fb55faeb55


</blockquote>

<p>Le fichier de configuration du serveur dhcp est</p>

<blockquote>


43c925564d7480da583f8a6aa8b392c2


</blockquote>

<p>Je conseille pour commencer de faire une copie de sauvegarde de ce fichier. Ensuite, vous pouvez effacer ou commenter les lignes existantes et ajouter les lignes suivantes :</p>

<blockquote>


69608f0a84d4df99a795f075d5bb0aa1


</blockquote>

<h3 id="Lesoptions">Les options</h3>

<ul>
    <li><strong>authoritative</strong> : Permet d’indiquer que le serveur DHCP sera responsable de la zone concernée</li>
    <li><strong>option domain-name :</strong> Spécifie le nom du domaine local</li>
    <li><strong>option domain-name-servers : </strong>Spécifie les adresses des serveur DNS</li>
    <li><strong>option routers</strong> : Spécifie l&#8217;adresse du &#8220;default gateway&#8221;</li>
</ul>

<h4 id="CommentavoirdesIPfixesavecunserveurDHCP">Comment avoir des IP fixes avec un serveur DHCP</h4>

<p>Pour cela, il faut ajouter dans le fichier « /etc/dhcp3/dhcpd.conf », de nouvelles lignes.</p>

<p>L’exemple suivant permet de fixer une adresse IP en fonction de son adresse MAC :</p>

<blockquote>


1e7696863eb0f5ccfd8d5c8c5794d340


</blockquote>

<h2 id="Redémarrageetlogs">Redémarrage et logs</h2>

<p>Une fois la configuration terminée, il faut démarrer ou redémarrer le démon pour prendre en compte les modifications :</p>

<blockquote>


8d82c9dd981c6af52682a20d4d7d09d6


</blockquote>

<p>Si le démarrage retourne une erreur, il faut penser à consulter les logs :</p>

<blockquote>


9add33ce3ca5a70ec5c75f3f641e2493


</blockquote>

<p>Le fichier suivant donne la liste des adresses IP délivrées par le serveur. Pour chaque adresse IP l’on retrouve : son adresse mac, le nom de l’ordinateur, la date de début et de fin du bail :</p>

<blockquote>


8d623bb8d07d706776adf6311b0f5854


</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2009/10/configurer-un-serveur-dhcp-sous-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connexion automatique avec SSH</title>
		<link>http://etiennelachance.com/2009/10/connexion-automatique-avec-ssh/</link>
		<comments>http://etiennelachance.com/2009/10/connexion-automatique-avec-ssh/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 14:58:55 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[auth]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=38</guid>
		<description><![CDATA[Mise en situation Si vous tentez de vous connecter automatiquement entre un ordinateur A vers l&#8217;ordianteur B, soit pour avoir accès a un terminal ou vous voulez automatiser une tâche. Comment procéder Identifier vous sur l&#8217;ordinateur A (client) pour créé &#8230; <a href="http://etiennelachance.com/2009/10/connexion-automatique-avec-ssh/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Mise en situation</strong></p>

<p>Si vous tentez de vous connecter automatiquement entre un ordinateur A vers l&#8217;ordianteur B, soit pour avoir accès a un terminal ou vous voulez automatiser une tâche.</p>

<p><strong>Comment procéder</strong></p>

<ol>
    <li>Identifier vous sur l&#8217;ordinateur A (client) pour créé une pair de clef d&#8217;authentification (ne pas spécifier de &#8220;passphrase&#8221;)
<blockquote>


0f8b870ed6ed1c9433e795c9467958ed


</blockquote>
</li>
    <li>Maintenant utiliser <tt>ssh</tt> ou autre logiciel de console pour créé le répertoire <tt>~/.ssh</tt> pour l&#8217;utilisateur que vous voulez sur l&#8217;ordinateur B. (Prenez note que le répertoire peut déjà exister):
<blockquote>


94c1ab6a3312102f2d7f7fb26205f9de


</blockquote>
</li>
    <li>Finalement, ajouter la clef public, créé auparavant, dans le fichier <tt>~/.ssh/authorized_keys</tt> dans l&#8217;ordinateur B et entrer le mot de passe une dernière fois:
<blockquote>


1ae162a88ef82bc021b26e9cc6c6dc08


</blockquote>
</li>
    <li>Maintenant, vous pouvez vous connecter sur l&#8217;ordinateur B depuis l&#8217;ordinateur A sans spécifier de mot de passe:
<blockquote>


3272407bfa4fd5913f5d89f9621da510


</blockquote>
</li>
</ol>

<p><strong>Prendre note</strong> que dépendamment de votre version de SSH vous aurez peut-être besoin des changements suivant :</p>

<ul>
    <li>Insérer la clef public dans le fichier <tt>.ssh/authorized_keys2</tt></li>
    <li>Changer les permissions du répertoire <tt>.ssh</tt> pour <tt>600</tt></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2009/10/connexion-automatique-avec-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment encrypter des fichiers sous Linux avec openssl</title>
		<link>http://etiennelachance.com/2009/10/comment-encrypter-des-fichiers-sous-linux-avec-openssl/</link>
		<comments>http://etiennelachance.com/2009/10/comment-encrypter-des-fichiers-sous-linux-avec-openssl/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 21:45:57 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[securité]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=19</guid>
		<description><![CDATA[Note: C&#8217;est étapes s&#8217;applique à tout fichiers ou dossiers. Une petite récapitulation sur la compression et l&#8217;extraction des fichier tar.gz (ou tgz). Pour compresser un dossier intituler backup : tar -zcf backup.tar.gz backup Cette commande compresse le répertoire backup dans &#8230; <a href="http://etiennelachance.com/2009/10/comment-encrypter-des-fichiers-sous-linux-avec-openssl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><em>Note:</em> C&#8217;est étapes s&#8217;applique à tout fichiers ou dossiers.</p>

<p>Une petite récapitulation sur la compression et l&#8217;extraction des fichier <strong>tar.gz</strong> (ou <strong>tgz</strong>). Pour compresser un dossier intituler <strong>backup</strong> :</p>

<h1><strong> tar -zcf backup.tar.gz backup</strong></h1>

<p>Cette commande compresse le répertoire <strong>backup</strong> dans un fichier <strong>backup.tar.gz</strong>. Pour décompresser, utiliser la commande suivante :</p>

<h1><strong> tar -zxf backup.tar.gz</strong></h1>

<p>Maintenant la partie amusante. Regardons comment nous pouvons ajouter une encryption de base.  Pour compresser le répertoire <strong>backup</strong> avec l&#8217;encryption, exécuter :</p>

<h1><strong>tar -zcf – backup | openssl des3 -salt -k votremotdepasse | dd of=backup.des3</strong></h1>

<p>Remplacer <strong>votremotdepasse</strong> par un de vos mot de passe.  Cette commande génére un fichier nommé <strong>backup.des3</strong>. Ce fichier peut être décompresser uniquement avec votre mot de passe.</p>

<p>Pour extraire votre archive encrypter, utiliser la commande suivante :</p>

<h1><strong>dd if= backup.des3 | openssl des3 -d -k votremotdepasse | tar zxf -</strong></h1>

<p>Veuiller prendre note que le &#8220;-&#8221; à la fin, n&#8217;est pas une erreur de typo, mais bien nécessaire à la commande pour fonctionner.  Remplacer <strong>votremotdepasse</strong> par le mot de passe utiliser pour encrypter le fichier.</p>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2009/10/comment-encrypter-des-fichiers-sous-linux-avec-openssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

