<?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>IKTEK Blog</title>
	<atom:link href="http://www.iktek.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.iktek.com/blog</link>
	<description></description>
	<lastBuildDate>Tue, 26 Apr 2011 13:45:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Import various versions of a same Maven project in a unique workspace in Eclipse</title>
		<link>http://www.iktek.com/blog/?p=40</link>
		<comments>http://www.iktek.com/blog/?p=40#comments</comments>
		<pubDate>Mon, 14 Mar 2011 10:59:53 +0000</pubDate>
		<dc:creator>Pierre-Arnaud Marcelot</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://www.iktek.com/blog/?p=40</guid>
		<description><![CDATA[Eclipse is one of the best Java IDE for a long time now. However, throughout its evolutions, one relatively important feature is still lacking: the ability to import a same project more than one. More precisely the ability to import a project with same name more than once. This is particularly useful, not to import [...]]]></description>
			<content:encoded><![CDATA[<p>Eclipse is one of the best Java IDE for a long time now. However, throughout its evolutions, one relatively important feature is still lacking: the ability to import a same project more than one. More precisely the ability to import a project with same name more than once.</p>
<p>This is particularly useful, not to import the exact same project, but to import various revisions of a same project in order to have them available in the workspace at once. A use of this could be importing a version of the project from trunk and another one from specific branch.</p>
<p>The trick is to define on the parent pom (if it&#8217;s a multi-modules project) a profile allowing to append to the name of the projects a user-provided string.</p>
<p>Here is the profile, <em>append-to-project-name</em>, we are using on our projects:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;profiles<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #808080; font-style: italic;">&lt;!-- Specific profile used to append a string to project name --&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;profile<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>append-to-project-name<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;activation<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>append.to.project.name<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/activation<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;build<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
         <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plugins<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>maven-eclipse-plugin<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;projectNameTemplate<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                [artifactId]-${append.to.project.name}
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/projectNameTemplate<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plugins<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/build<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/profile<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/profiles<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>This profile is used during the generation of Eclipse project descriptors files using the following command line:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mvn eclipse:eclipse -Dappend.to.project.name=<span style="color: #7a0874; font-weight: bold;">&#91;</span>string<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>The last thing to do after that is importing the projects in Eclipse.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iktek.com/blog/?feed=rss2&amp;p=40</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Importer différentes versions d&#8217;un même projet Maven au sein d&#8217;un unique workspace dans Eclipse</title>
		<link>http://www.iktek.com/blog/?p=23</link>
		<comments>http://www.iktek.com/blog/?p=23#comments</comments>
		<pubDate>Mon, 14 Mar 2011 08:29:44 +0000</pubDate>
		<dc:creator>Pierre-Arnaud Marcelot</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://www.iktek.com/blog/?p=23</guid>
		<description><![CDATA[Eclipse est l&#8217;un des meilleurs IDE Java depuis un grand nombre d&#8217;année. Cependant, au fil des évolutions, une fonctionnalité relativement importante lui fait toujours défaut : la possibilité d&#8217;importer un même projet plus d&#8217;une fois. Plus précisément la possibilité d&#8217;importer un projet avec le même nom plus d&#8217;une fois. Cela est particulièrement utile, non pas pour [...]]]></description>
			<content:encoded><![CDATA[<p>Eclipse est l&#8217;un des meilleurs IDE Java depuis un grand nombre d&#8217;année. Cependant, au fil des évolutions, une fonctionnalité relativement importante lui fait toujours défaut : la possibilité d&#8217;importer un même projet plus d&#8217;une fois. Plus précisément la possibilité d&#8217;importer un projet avec le même nom plus d&#8217;une fois.</p>
<p>Cela est particulièrement utile, non pas pour importer exactement le même projet, mais pour importer différentes révisions d&#8217;un même projet afin de les avoir disponibles dans le workspace au même instant. On peut imaginer vouloir importer une version du projet à partir du trunk et une autre version à partir d&#8217;une branche particulière.</p>
<p>L&#8217;astuce est de définir au niveau du pom parent de son projet (s&#8217;il s&#8217;agit d&#8217;un projet multi-modules) un profil permettant d&#8217;ajouter aux noms des projets une extension définissable par l&#8217;utilisateur.</p>
<p>Voici le profil, <em>append-to-project-name</em>, que nous avons défini pour nos projets:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;profiles<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #808080; font-style: italic;">&lt;!-- Specific profile used to append a string to project name --&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;profile<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>append-to-project-name<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;activation<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>append.to.project.name<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/activation<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;build<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
         <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plugins<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>maven-eclipse-plugin<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;projectNameTemplate<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                [artifactId]-${append.to.project.name}
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/projectNameTemplate<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plugins<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/build<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/profile<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/profiles<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Ce profil est utilisé lors de la génération des fichiers de description de projet Eclipse via la ligne de commande suivante:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mvn eclipse:eclipse -Dappend.to.project.name=<span style="color: #7a0874; font-weight: bold;">&#91;</span>string<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>Il ne reste plus qu&#8217;ensuite à importer les projets dans Eclipse.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iktek.com/blog/?feed=rss2&amp;p=23</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compilation de OpenLDAP sur Ubuntu</title>
		<link>http://www.iktek.com/blog/?p=9</link>
		<comments>http://www.iktek.com/blog/?p=9#comments</comments>
		<pubDate>Sat, 12 Mar 2011 17:02:56 +0000</pubDate>
		<dc:creator>Emmanuel Lécharny</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[openldap]]></category>

		<guid isPermaLink="false">http://www.iktek.com/blog/?p=9</guid>
		<description><![CDATA[Il est facile d&#8217;installer OpenLDAP sous Ubuntu, en suivant les instructions données par exemple sur openldap-server.html. Le seul soucis est que la version de OpenLDAP proposée est généralement une version stable (ici, il s&#8217;agit de la 2.4.23), et vous avez parfois envie de disposer de la toute dernière version. De plus, la version packagée dépend [...]]]></description>
			<content:encoded><![CDATA[<p>Il est facile d&#8217;installer OpenLDAP sous Ubuntu, en suivant les instructions données par exemple sur <a href="http://help.ubuntu.com/10.10/serverguide/C/openldap-server.html">openldap-server.html</a>. Le seul soucis est que la version de OpenLDAP proposée est généralement une version <strong>stable</strong> (ici, il s&#8217;agit de la 2.4.23), et vous avez parfois envie de disposer de la toute dernière version. De plus, la version packagée dépend également de versions de composants également anciens (BDB 4.8 au lieu de 5.1.25, OpenSSL 0.9.8o au lieu de 1.0.0d, etc)</p>
<p>Voici un mode d&#8217;emploi décrivant la compilation des toutes dernières versions de chacun des composants nécessaires.</p>
<p><strong>1 ) Prérequis</strong><br />
Il faut vérifier de la disponibilité des outils nécessaires à la compilation des composants. En voici la liste :</p>
<ul>
<li>Gnu GCC</li>
<li>ld</li>
<li>make</li>
<li>libperl (si vous décidez de lancer les tests)</li>
</ul>
<p><strong>2 ) Système</strong></p>
<p>On va créer un utilisateur dédié, <strong>openldap</strong>, appartenant au même groupe :</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: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>groupadd <span style="color: #660033;">-g</span> <span style="color: #000000;">55</span> openldap
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>useradd <span style="color: #660033;">-u</span> <span style="color: #000000;">55</span> <span style="color: #660033;">-g</span> <span style="color: #000000;">55</span> <span style="color: #660033;">-d</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>openldap <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span> openldap</pre></div></div>

<p>(ici, le numéro du user et du groupe a été arbitrairement fixé à 55, vous sélectionnerez la valeur adaptée, ou demanderez à l&#8217;administrateur système de vous créer ce user)</p>
<p><strong>3 ) Chemins d&#8217;installation</strong></p>
<p>On installera les composants dans le répertoire <strong>/opt/ldap</strong>.</p>
<p>Les composants seront stockés et la compilation sera effectuée dans le home directory du user <strong>openldap</strong>, dans lequel on créera deux sous répertoires :</p>
<ul>
<li><strong>/home/openldap/packages</strong></li>
<li><strong>/home/openldap/install</strong></li>
</ul>
<p><strong>4 ) Sources</strong></p>
<p>Ensuite, il faut récupérer les sources des composants suivants :</p>
<ul>
<li><a href="http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html">BerkeleyDB 5.1.25</a> (il vous faudra un compte chez Oracle pour y accéder)</li>
<li><a href="http://www.openssl.org/source/openssl-1.0.0d.tar.gz">OpenSSL 1.0.0d</a></li>
<li><a href="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.23.tar.gz">CyrusSASL 2.1.23</a></li>
<li><a href="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.24.tgz">OpenLDAP 2.4.24</a></li>
</ul>
<p>Ces packages seront téléchargés dans le répertoire <strong>/home/openldap/packages</strong>.</p>
<p><strong>5 ) Compilation de OpenSSL</strong></p>
<p>Voici les commandes à utiliser :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># su – openldap</span>
$ <span style="color: #7a0874; font-weight: bold;">pwd</span>
<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>openldap
$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
$ <span style="color: #c20cb9; font-weight: bold;">tar</span> xzpf ..<span style="color: #000000; font-weight: bold;">/</span>packages<span style="color: #000000; font-weight: bold;">/</span>openssl-1.0.0d.tar.gz
$ <span style="color: #7a0874; font-weight: bold;">cd</span> openssl-1.0.0d
$ .<span style="color: #000000; font-weight: bold;">/</span>Configure shared \
<span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ldap<span style="color: #000000; font-weight: bold;">/</span>openssl-1.0.0d \
<span style="color: #660033;">--openssldir</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ldap<span style="color: #000000; font-weight: bold;">/</span>openssl-1.0.0d \
threads \
linux-generic32
$ <span style="color: #c20cb9; font-weight: bold;">make</span> depend
$ <span style="color: #c20cb9; font-weight: bold;">make</span>
$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #7a0874; font-weight: bold;">test</span>
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> openldap.openldap <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ldap<span style="color: #000000; font-weight: bold;">/</span>openssl-1.0.0d
$ <span style="color: #7a0874; font-weight: bold;">cd</span> ..
$ <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> openssl-1.0.0d</pre></div></div>

<p>Cette version de OpenSSL sera désormais celle qui sera utilisée dans la compilation des composants suivants.</p>
<p><strong>6 ) Compilation de CysrusSASL</strong></p>
<p>Voici les commandes à utiliser :</p>
<p>&lt;note&gt;On est obligé de lancer la commande <strong>make</strong> deux fois de suite, un bug dans le build génère une erreur lors du premier lancement&lt;/note&gt;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># su – openldap</span>
$ <span style="color: #7a0874; font-weight: bold;">pwd</span>
<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>openldap
$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
$ <span style="color: #c20cb9; font-weight: bold;">tar</span> xzpf ..<span style="color: #000000; font-weight: bold;">/</span>packages<span style="color: #000000; font-weight: bold;">/</span>cyrus-sasl-2.1.23.tar.gz
$ <span style="color: #7a0874; font-weight: bold;">cd</span> cyrus-sasl-2.1.23
$ <span style="color: #007800;">CFLAGS</span>=<span style="color: #ff0000;">&quot;-O2&quot;</span> .<span style="color: #000000; font-weight: bold;">/</span>configure \
<span style="color: #660033;">--enable-static</span> \
<span style="color: #660033;">--without-des</span> \
<span style="color: #660033;">--without-saslauthd</span> \
<span style="color: #660033;">--enable-gssapi</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>kerberos<span style="color: #000000; font-weight: bold;">/</span> \
<span style="color: #660033;">--with-openssl</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ldap<span style="color: #000000; font-weight: bold;">/</span>openssl-1.0.0d \
<span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ldap<span style="color: #000000; font-weight: bold;">/</span>cyrusSASL-2.1.23
$ <span style="color: #c20cb9; font-weight: bold;">make</span> all
$ <span style="color: #c20cb9; font-weight: bold;">make</span>
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> openldap.openldap <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ldap
$ <span style="color: #7a0874; font-weight: bold;">cd</span> ..
$ <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> cyrus-sasl-2.1.23</pre></div></div>

<p><strong>7 ) Compilation de BerkeleyDB</strong></p>
<p>Voici les commandes à utiliser :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># su – openldap</span>
$ <span style="color: #7a0874; font-weight: bold;">pwd</span>
<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>openldap
$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
$ <span style="color: #c20cb9; font-weight: bold;">tar</span> xzpf ..<span style="color: #000000; font-weight: bold;">/</span>packages<span style="color: #000000; font-weight: bold;">/</span>db-5.1.25.tar.gz
$ <span style="color: #7a0874; font-weight: bold;">cd</span> db-5.1.25
$ <span style="color: #7a0874; font-weight: bold;">cd</span> build_unix
$ ..<span style="color: #000000; font-weight: bold;">/</span>dist<span style="color: #000000; font-weight: bold;">/</span>configure \
<span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ldap<span style="color: #000000; font-weight: bold;">/</span>db-5.1.25 \
<span style="color: #660033;">--with-mutex</span>=POSIX<span style="color: #000000; font-weight: bold;">/</span>pthreads
$ <span style="color: #c20cb9; font-weight: bold;">make</span>
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> openldap.openldap <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ldap
$ <span style="color: #7a0874; font-weight: bold;">cd</span> ..<span style="color: #000000; font-weight: bold;">/</span>..
$ <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> db-5.1.25</pre></div></div>

<p><strong>8 ) Compilation de OpenLDAP</strong></p>
<p>Il nous reste à compiler OpenLDAP, en utilisant les composants que l&#8217;on vient de construire. Voici les commandes à utiliser :</p>
<p>&lt;note&gt;Les options utilisées peuvent être modifiées en fonction des besoins&lt;/note&gt;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># su – openldap</span>
$ <span style="color: #7a0874; font-weight: bold;">pwd</span>
<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>openldap
$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
$ <span style="color: #c20cb9; font-weight: bold;">tar</span> xzpf ..<span style="color: #000000; font-weight: bold;">/</span>packages<span style="color: #000000; font-weight: bold;">/</span>openldap-2.4.24.tgz
$ <span style="color: #7a0874; font-weight: bold;">cd</span> openldap-2.4.24
$ <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">CPPFLAGS</span>=<span style="color: #ff0000;">&quot;-I/opt/ldap/db-5.1.25/include -I/opt/ldap/openssl-1.0.0d/include -I/opt/ldap/cyrusSASL-2.1.23/include&quot;</span>
$ <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LDFLAGS</span>=<span style="color: #ff0000;">&quot;-L/opt/ldap/db-5.1.25/lib -L/opt/ldap/openssl-1.0.0d/lib -L/opt/ldap/cyrusSASL-2.1.23/lib&quot;</span>
$ <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LD_LIBRARY_PATH</span>=<span style="color: #ff0000;">&quot;/opt/ldap/db-5.1.25/lib:/opt/ldap/openssl-1.0.0d/lib:/opt/ldap/cyrusSASL-2.1.23/lib&quot;</span>
$ .<span style="color: #000000; font-weight: bold;">/</span>configure \
<span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ldap<span style="color: #000000; font-weight: bold;">/</span>openldap-2.4.24<span style="color: #000000; font-weight: bold;">/</span> \
<span style="color: #660033;">--sysconfdir</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ldap<span style="color: #000000; font-weight: bold;">/</span>openldap-2.4.24<span style="color: #000000; font-weight: bold;">/</span>etc \
<span style="color: #660033;">--localstatedir</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>ldap \
<span style="color: #660033;">--enable-debug</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> \
<span style="color: #660033;">--enable-syslog</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> \
<span style="color: #660033;">--enable-proctitle</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> \
<span style="color: #660033;">--enable-ipv6</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> \
<span style="color: #660033;">--enable-local</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> \
<span style="color: #660033;">--enable-slapd</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> \
<span style="color: #660033;">--enable-dynacl</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> \
<span style="color: #660033;">--enable-aci</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> \
<span style="color: #660033;">--enable-cleartext</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> \
<span style="color: #660033;">--enable-crypt</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> \
<span style="color: #660033;">--enable-spasswd</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> \
<span style="color: #660033;">--enable-rewrite</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> \
<span style="color: #660033;">--enable-bdb</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> \
<span style="color: #660033;">--enable-hdb</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> \
<span style="color: #660033;">--enable-monitor</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> \
<span style="color: #660033;">--enable-overlays</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> \
<span style="color: #660033;">--with-cyrus-sasl</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> \
<span style="color: #660033;">--with-tls</span>=openssl \
<span style="color: #660033;">--with-threads</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>
$ <span style="color: #c20cb9; font-weight: bold;">make</span> depend
$ <span style="color: #c20cb9; font-weight: bold;">make</span>
$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #7a0874; font-weight: bold;">test</span>
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> openldap.openldap <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ldap
$ <span style="color: #7a0874; font-weight: bold;">cd</span> ..
$ <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> openldap-2.4.24</pre></div></div>

<p>Cela clôt la description de la compilation de OpenLDAP, il reste à configurer le serveur pour qu&#8217;il puisse être utilisable.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iktek.com/blog/?feed=rss2&amp;p=9</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
