<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
>

<channel>
	<title>Espace logiciel libre &#224; l'Ecole</title>
	<link>http://elle.epfl.ch/</link>
	<description></description>
	<language>fr</language>
	<generator>SPIP - www.spip.net</generator>





	<item>
		<title>4. Utiliser tequila dans un cgi</title>
		<link>http://elle.epfl.ch/Utiliser-tequila-dans-un-cgi</link>
		<guid isPermaLink="true">http://elle.epfl.ch/Utiliser-tequila-dans-un-cgi</guid>
		<dc:date>2003-10-15T16:49:12Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>elle</dc:creator>



		<description>cgi-bin en perl avec authentification Tequila

-
&lt;a href="http://elle.epfl.ch/-Tequila-clients-" rel="directory"&gt;3. Tequila-clients&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p class=&quot;spip&quot;&gt;&lt;strong class=&quot;spip&quot;&gt;Tequila&lt;/strong&gt; permet aussi l'authentification dans les &lt;strong class=&quot;spip&quot;&gt;cgi-bin&lt;/strong&gt;.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Le rpm de tequila-clients contient un &lt;strong class=&quot;spip&quot;&gt;module perl&lt;/strong&gt; qui va permettre de g&#233;rer des sessions pour des applications. Par d&#233;faut, ce module est plac&#233; dans &lt;strong class=&quot;spip&quot;&gt;/var/www/cgi-bin/Tequila/Clients.pm&lt;/strong&gt; [&lt;a href=&quot;http://elle.epfl.ch/#nb1&quot; name=&quot;nh1&quot; id=&quot;nh1&quot; class=&quot;spip_note&quot; title='[1] Si les cgis sont ailleurs, il suffit de d&#233;placer le r&#233;pertoire (...)' &gt;1&lt;/a&gt;].&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Le module perl contient un &lt;strong class=&quot;spip&quot;&gt;ensemble de m&#233;thodes&lt;/strong&gt; accessibles depuis un script perl. Quelques exemples permettront de d'utilser ces m&#233;thodes, de fa&#231;on simple mais parfois aussi complexe.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;&lt;strong class=&quot;spip&quot;&gt;Pr&#233;liminaire important&lt;/strong&gt;
En cas d'&#233;chec d'authentification, le serveur &lt;strong class=&quot;spip&quot;&gt;ne rendra pas la main &#224; l'application.&lt;/strong&gt;&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Exemple 1 : authentification simple&lt;/h3&gt;
&lt;p class=&quot;spip&quot;&gt;Ce cgi-bin tout simple requiert simplement une authentification par Tequila et imprime quelques attributs renvoy&#233;s par le serveur :&lt;/p&gt; &lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; use strict;&lt;br /&gt; use Tequila::Client;&lt;br /&gt; &lt;br /&gt; my $tequila = new Tequila::Client ();&lt;br /&gt; $tequila-&amp;gt;setservice ('Tequila example 1');&lt;br /&gt; $tequila-&amp;gt;setlang ('french');&lt;br /&gt; &lt;br /&gt; $tequila-&amp;gt;authenticate ();&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;ul class=&quot;spip&quot;&gt;&lt;li class=&quot;spip&quot;&gt; &lt;strong class=&quot;spip&quot;&gt;new Tequila ::Client&lt;/strong&gt; : instancie l'objet tequila&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; &lt;strong class=&quot;spip&quot;&gt;$tequila-&gt;setservice&lt;/strong&gt; : nomme le service pour lequel l'utilisatrice va s'authentifier [&lt;a href=&quot;http://elle.epfl.ch/#nb2&quot; name=&quot;nh2&quot; id=&quot;nh2&quot; class=&quot;spip_note&quot; title='[2] Bien que non obligatoire, cette option est conviviale.' &gt;2&lt;/a&gt;]&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; &lt;strong class=&quot;spip&quot;&gt;$tequila-&gt;setlang&lt;/strong&gt; : choisit la langue de l'interface d'authentification [anglais par d&#233;faut] [&lt;a href=&quot;http://elle.epfl.ch/#nb3&quot; name=&quot;nh3&quot; id=&quot;nh3&quot; class=&quot;spip_note&quot; title='[3] A ce jours 3 langues sont possibles : english, fran&#231;ais et (...)' &gt;3&lt;/a&gt;]. &lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; &lt;strong class=&quot;spip&quot;&gt;$tequila-&gt;authenticate&lt;/strong&gt; : active le processus d'authentification par Tequila&lt;ul class=&quot;spip&quot;&gt;&lt;li class=&quot;spip&quot;&gt; si une session valide existe d&#233;j&#224; pour l'utilisatrice, Tequila va remplir les attributs avec ceux de cette utilisatrice&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; sinon, Tequila va proposer l'authentification [&lt;a href=&quot;http://elle.epfl.ch/#nb4&quot; name=&quot;nh4&quot; id=&quot;nh4&quot; class=&quot;spip_note&quot; title='[4] Par d&#233;faut, la session est cr&#233;&#233;e par un appel de Tequila au fichier (...)' &gt;4&lt;/a&gt;]&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p class=&quot;spip&quot;&gt;Une fois l'authentification valid&#233;e, Tequila rend la main &#224; la variable &lt;i class=&quot;spip&quot;&gt;urlaccess&lt;/i&gt; [Par d&#233;faut, l'url appelante, c&#224;d l'adresse de cet exemple].&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Exemple 2 : authentification avec informations d&#233;taill&#233;es&lt;/h3&gt;
&lt;p class=&quot;spip&quot;&gt;Il est possible de r&#233;cup&#233;rer les diff&#233;rents attributs concernant une personne qui s'authentifie. Certain seront requis (&lt;i class=&quot;spip&quot;&gt;request&lt;/i&gt;) et certains souhait&#233;s (&lt;i class=&quot;spip&quot;&gt;wish&lt;/i&gt;). Lors de son authentification, l'utilisatrice ne pourra pas ignorer ce qui se passe et pourra d&#233;cider si, oui ou non, les attributs souhait&#233;s seront communiqu&#233;s &#224; l'application.&lt;/p&gt; &lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; use strict;&lt;br /&gt; use Tequila::Client;&lt;br /&gt; &lt;br /&gt; my $tequila = new Tequila::Client ();&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; $tequila-&amp;gt;authenticate ();&lt;br /&gt; &lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;h3 class=&quot;spip&quot;&gt;Exemple 3 : authentification en fonction des droits et r&#244;les EPFL&lt;/h3&gt;
&lt;p class=&quot;spip&quot;&gt;L'annuaire de l'EPFL comprend aussi une interface avec l'&lt;a href=&quot;http://accred.epfl.ch/&quot; class=&quot;spip_out&quot;&gt;Accreditation &lt;/a&gt; de l'EPFL. Ceci peut se visualiser en cliquant sur le lien &lt;i class=&quot;spip&quot;&gt;Voir les accr&#233;ditations de cette personne&lt;/i&gt; qui se trouve au bas du r&#233;sultat d'une requ&#234;te dans l'annuaire &lt;a href=&quot;http://ldap.epfl.ch&quot; class=&quot;spip_out&quot;&gt;ldap &lt;/a&gt;.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Par Tequila, il est alors possible d'utiliser ces informations au sein du cgi.&lt;/p&gt; &lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; use strict;&lt;br /&gt; use Tequila::Client;&lt;br /&gt; &lt;br /&gt; my $tequila = new Tequila::Client ();&lt;br /&gt; $tequila-&amp;gt;authenticate ();&lt;br /&gt; &lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;
		&lt;hr /&gt;
		&lt;div class='rss_notes'&gt;&lt;p class=&quot;spip_note&quot;&gt;[&lt;a href=&quot;http://elle.epfl.ch/#nh1&quot; name=&quot;nb1&quot; class=&quot;spip_note&quot; title=&quot;Notes 1&quot;&gt;1&lt;/a&gt;] Si les cgis sont ailleurs, il suffit de d&#233;placer le r&#233;pertoire Tequila/.&lt;/p&gt; &lt;p class=&quot;spip_note&quot;&gt;[&lt;a href=&quot;http://elle.epfl.ch/#nh2&quot; name=&quot;nb2&quot; class=&quot;spip_note&quot; title=&quot;Notes 2&quot;&gt;2&lt;/a&gt;] Bien que non obligatoire, cette option est conviviale.&lt;/p&gt; &lt;p class=&quot;spip_note&quot;&gt;[&lt;a href=&quot;http://elle.epfl.ch/#nh3&quot; name=&quot;nb3&quot; class=&quot;spip_note&quot; title=&quot;Notes 3&quot;&gt;3&lt;/a&gt;] A ce jours 3 langues sont possibles : &lt;i class=&quot;spip&quot;&gt;english&lt;/i&gt;, &lt;i class=&quot;spip&quot;&gt;fran&#231;ais&lt;/i&gt; et &lt;i class=&quot;spip&quot;&gt;deutsch&lt;/i&gt;&lt;/p&gt; &lt;p class=&quot;spip_note&quot;&gt;[&lt;a href=&quot;http://elle.epfl.ch/#nh4&quot; name=&quot;nb4&quot; class=&quot;spip_note&quot; title=&quot;Notes 4&quot;&gt;4&lt;/a&gt;] Par d&#233;faut, la session est cr&#233;&#233;e par un appel de Tequila au fichier &lt;strong class=&quot;spip&quot;&gt;cgi-bin/tequilalogin&lt;/strong&gt; (variable &lt;i class=&quot;spip&quot;&gt;urlauth&lt;/i&gt;)&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>



	<item>
		<title>5. Remarque pour les managers</title>
		<link>http://elle.epfl.ch/Remarque-pour-les-managers</link>
		<guid isPermaLink="true">http://elle.epfl.ch/Remarque-pour-les-managers</guid>
		<dc:date>2003-07-10T14:46:55Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>elle</dc:creator>



		<description>Effacer les anciennes cl&#233;s de session Tequila &lt;br /&gt;Les cl&#233;s de sessions d&#233;pos&#233;es par Tequila dans le r&#233;pertoire identifi&#233; par TequilaSessionDir ne peuvent &#234;tre effac&#233;es par le serveur. En cons&#233;quence, il faudra penser &#224; nettoyer le r&#233;pertoire correspondant. Par un cron, par exemple.


-
&lt;a href="http://elle.epfl.ch/-Tequila-clients-" rel="directory"&gt;3. Tequila-clients&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p class=&quot;spip&quot;&gt;&lt;strong class=&quot;spip&quot;&gt;Effacer les anciennes cl&#233;s de session Tequila&lt;/strong&gt;&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Les cl&#233;s de sessions d&#233;pos&#233;es par Tequila dans le r&#233;pertoire identifi&#233; par &lt;strong class=&quot;spip&quot;&gt;TequilaSessionDir&lt;/strong&gt; ne peuvent &#234;tre effac&#233;es par le serveur. En cons&#233;quence, il faudra penser &#224; nettoyer le r&#233;pertoire correspondant. Par un cron, par exemple.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>



	<item>
		<title>3. Utiliser l'authentification par Tequila</title>
		<link>http://elle.epfl.ch/Utiliser-l-authentification-par</link>
		<guid isPermaLink="true">http://elle.epfl.ch/Utiliser-l-authentification-par</guid>
		<dc:date>2003-07-10T13:50:06Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>elle</dc:creator>



		<description>Lors de l'acc&#232;s &#224; une page web prot&#233;g&#233;e par authentification de type Tequila, voici ce qui se passe. &lt;br /&gt;Le serveur web redirige automatiquement la requ&#234;te vers le serveur s&#233;curis&#233; de tequila. &lt;br /&gt;S'authentifier par son username et mot de passe. A noter que le mot de passe sera donc transmis sous forme encrypt&#233;e sur le r&#233;seau. &lt;br /&gt;Cocher la case du bas Voulez-vous utiliser un cookie si vous souhaitez ne pas devoir &#224; nouveau vous authentifier lors d'un acc&#232;s &#224; un autre serveur prot&#233;g&#233; par Tequila. (...)


-
&lt;a href="http://elle.epfl.ch/-Tequila-clients-" rel="directory"&gt;3. Tequila-clients&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p class=&quot;spip&quot;&gt;Lors de l'acc&#232;s &#224; une page web prot&#233;g&#233;e par authentification de type Tequila, voici ce qui se passe.&lt;/p&gt; &lt;ul class=&quot;spip&quot;&gt;&lt;ul class=&quot;spip&quot;&gt;&lt;li class=&quot;spip&quot;&gt; Le serveur web redirige automatiquement la requ&#234;te vers le serveur s&#233;curis&#233; de tequila.&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; S'authentifier par son &lt;i class=&quot;spip&quot;&gt;username&lt;/i&gt; [&lt;a href=&quot;http://elle.epfl.ch/#nb2-1&quot; name=&quot;nh2-1&quot; id=&quot;nh2-1&quot; class=&quot;spip_note&quot; title='[1] En cas de doute sur son username, il est mentionn&#233; explicitement dans (...)' &gt;1&lt;/a&gt;] et &lt;i class=&quot;spip&quot;&gt;mot de passe&lt;/i&gt;. A noter que le mot de passe sera donc transmis sous forme &lt;strong class=&quot;spip&quot;&gt;encrypt&#233;e&lt;/strong&gt; sur le r&#233;seau.&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; Cocher la case du bas &lt;i class=&quot;spip&quot;&gt;Voulez-vous utiliser un cookie&lt;/i&gt; si vous souhaitez ne pas devoir &#224; nouveau vous authentifier lors d'un acc&#232;s &#224; un autre serveur prot&#233;g&#233; par Tequila.&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; Login&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; A ce stade, il faut que votre butineur accepte les cookies sinon vous devrez vous r&#233;authentifier &#224; chaque utilisation de l'arborescence consid&#233;r&#233;.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;
&lt;p class=&quot;spip&quot;&gt;Il y a donc deux types de cookies :&lt;/p&gt; &lt;ul class=&quot;spip&quot;&gt;&lt;ul class=&quot;spip&quot;&gt;&lt;li class=&quot;spip&quot;&gt; Le cookie du serveur Tequila proprement dit. Celui-ci informe votre butineur que vous &#234;tes d&#233;j&#224; authentifi&#233;.e aupr&#232;s de Tequila.&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; Le cookie du serveur web en cours de consultation. Celui-ci informe votre butineur que vous &#234;tes authentifi&#233;.e pour le serveur consid&#233;r&#233; [&lt;a href=&quot;http://elle.epfl.ch/#nb2-2&quot; name=&quot;nh2-2&quot; id=&quot;nh2-2&quot; class=&quot;spip_note&quot; title='[2] A noter qu&amp;#39;un m&#234;me serveur web peut avoir plusieurs arborescences (...)' &gt;2&lt;/a&gt;].&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/div&gt;
		&lt;hr /&gt;
		&lt;div class='rss_notes'&gt;&lt;p class=&quot;spip_note&quot;&gt;[&lt;a href=&quot;http://elle.epfl.ch/#nh2-1&quot; name=&quot;nb2-1&quot; class=&quot;spip_note&quot; title=&quot;Notes 2-1&quot;&gt;1&lt;/a&gt;] En cas de doute sur son username, il est mentionn&#233; explicitement dans &lt;a href=&quot;http://www.epfl.ch/cgi-bin/csoldap/&quot; class=&quot;spip_out&quot;&gt;notre annuaire &lt;/a&gt;&lt;/p&gt; &lt;p class=&quot;spip_note&quot;&gt;[&lt;a href=&quot;http://elle.epfl.ch/#nh2-2&quot; name=&quot;nb2-2&quot; class=&quot;spip_note&quot; title=&quot;Notes 2-2&quot;&gt;2&lt;/a&gt;] A noter qu'un m&#234;me serveur web peut avoir plusieurs arborescences prot&#233;g&#233;es de fa&#231;ons distinctes par Tequila (voir les &lt;a href=&quot;http://elle.epfl.ch/Configurer-apache-pour-utiliser&quot; class=&quot;spip_in&quot;&gt;exemples de configurations &lt;/a&gt;)&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>



	<item>
		<title>1. Installer Tequila-clients</title>
		<link>http://elle.epfl.ch/Installer-Tequila-clients</link>
		<guid isPermaLink="true">http://elle.epfl.ch/Installer-Tequila-clients</guid>
		<dc:date>2003-06-20T15:14:20Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>elle</dc:creator>



		<description>La version actuelle de Tequila-clients n'est disponible que pour apache 1.3. La version pour apache 2 devrait &#234;tre bient&#244;t disponible. &lt;br /&gt;Pour installer Tequila-clients sur sa machine il suffit de t&#233;l&#233;charger le rpm disponible dans. Pour des raisons de simplicit&#233;, le rpm est nomm&#233; sous forme g&#233;n&#233;rique. : wget http://slpc1.epfl.ch/public/software/tequila/tequila-clients-current.i386.rpm et de l'installer rpm -Uvh (...)


-
&lt;a href="http://elle.epfl.ch/-Tequila-clients-" rel="directory"&gt;3. Tequila-clients&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p class=&quot;spip&quot;&gt;La version actuelle de Tequila-clients n'est disponible que pour apache 1.3. La version pour apache 2 devrait &#234;tre bient&#244;t disponible.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Pour installer Tequila-clients sur sa machine il suffit de t&#233;l&#233;charger le rpm disponible dans.
Pour des raisons de simplicit&#233;, le rpm est nomm&#233; sous forme g&#233;n&#233;rique. [&lt;a href=&quot;http://elle.epfl.ch/#nb3-1&quot; name=&quot;nh3-1&quot; id=&quot;nh3-1&quot; class=&quot;spip_note&quot; title='[1] Pour conna&#238;tre la version courante, une fois le logiciel t&#233;l&#233;charg&#233;, il (...)' &gt;1&lt;/a&gt;] :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; wget http://slpc1.epfl.ch/public/software/tequila/tequila-clients-current.i386.rpm&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p class=&quot;spip&quot;&gt;et de l'installer [&lt;a href=&quot;http://elle.epfl.ch/#nb3-2&quot; name=&quot;nh3-2&quot; id=&quot;nh3-2&quot; class=&quot;spip_note&quot; title='[2] Pour savoir le num&#233;ro de la version : rpm -qi -p tequila-clients-current.i38' &gt;2&lt;/a&gt;]&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; rpm -Uvh tequila-clients-current.i386.rpm&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;
		&lt;hr /&gt;
		&lt;div class='rss_notes'&gt;&lt;p class=&quot;spip_note&quot;&gt;[&lt;a href=&quot;http://elle.epfl.ch/#nh3-1&quot; name=&quot;nb3-1&quot; class=&quot;spip_note&quot; title=&quot;Notes 3-1&quot;&gt;1&lt;/a&gt;] Pour conna&#238;tre la version courante, une fois le logiciel t&#233;l&#233;charg&#233;, il suffit d'utiliser rpm :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; rpm -q --queryformat &quot;%{name}-%{version}-%{release}\n&quot; -p tequila-clients-current.i386.rpm&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p class=&quot;spip_note&quot;&gt;On peut maintenant aussi acc&#233;der au r&#233;pertoire
&lt;a href=&quot;http://slpc1.epfl.ch/public/software/tequila/&quot; class=&quot;spip_out&quot;&gt;&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; http://slpc1.epfl.ch/public/software/tequila/&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p class=&quot;spip_note&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;p class=&quot;spip_note&quot;&gt;[&lt;a href=&quot;http://elle.epfl.ch/#nh3-2&quot; name=&quot;nb3-2&quot; class=&quot;spip_note&quot; title=&quot;Notes 3-2&quot;&gt;2&lt;/a&gt;] Pour savoir le num&#233;ro de la version :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; rpm -qi -p tequila-clients-current.i386.rpm&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>



	<item>
		<title>2. Configurer apache pour utiliser Tequila</title>
		<link>http://elle.epfl.ch/Configurer-apache-pour-utiliser</link>
		<guid isPermaLink="true">http://elle.epfl.ch/Configurer-apache-pour-utiliser</guid>
		<dc:date>2003-06-20T15:14:10Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>elle</dc:creator>



		<description>Quelques exemples de configuration de apache pour inclure une arborescence prot&#233;g&#233;e par authentification par Tequila (EPFL) . &lt;br /&gt;Exemple 1 : Une arborescence du serveur principal &lt;br /&gt;Soit le serveur servtest.epfl.ch et le r&#233;pertoire /var/www/html/subdir/monExemple pour lequel nous voulons restreindre l'acc&#232;s uniquement aux personnes de l'EPFL ou &#224; toute personne qui acc&#232;de &#224; cette arborescence depuis le site de l'EPFL. &lt;br /&gt;Dans le fichier /etc/httpd/conf/httpd.conf nous allons inclure tout ce qu'il (...)


-
&lt;a href="http://elle.epfl.ch/-Tequila-clients-" rel="directory"&gt;3. Tequila-clients&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p class=&quot;spip&quot;&gt;Quelques exemples de configuration de apache pour inclure une arborescence prot&#233;g&#233;e par authentification par Tequila (EPFL) [&lt;a href=&quot;http://elle.epfl.ch/#nb4-1&quot; name=&quot;nh4-1&quot; id=&quot;nh4-1&quot; class=&quot;spip_note&quot; title='[1] Apache 1.3 seulement &#224; ce jour' &gt;1&lt;/a&gt;].&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Exemple 1 : Une arborescence du serveur principal&lt;/h3&gt;
&lt;p class=&quot;spip&quot;&gt;Soit le serveur &lt;strong class=&quot;spip&quot;&gt;servtest.epfl.ch&lt;/strong&gt; et le r&#233;pertoire &lt;strong class=&quot;spip&quot;&gt;/var/www/html/subdir/monExemple&lt;/strong&gt; pour lequel nous voulons restreindre l'acc&#232;s uniquement aux personnes de l'EPFL ou &#224; toute personne qui acc&#232;de &#224; cette arborescence depuis le site de l'EPFL.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Dans le fichier &lt;strong class=&quot;spip&quot;&gt;/etc/httpd/conf/httpd.conf&lt;/strong&gt; nous allons inclure tout ce qu'il faut mettre en oeuvre l'authentification par Tequila [&lt;a href=&quot;http://elle.epfl.ch/#nb4-2&quot; name=&quot;nh4-2&quot; id=&quot;nh4-2&quot; class=&quot;spip_note&quot; title='[2] On suppose que la balise &amp;lt;Directory&amp;gt; est &amp;lt;Directory (...)' &gt;2&lt;/a&gt;]
.&lt;/p&gt; &lt;ul class=&quot;spip&quot;&gt;&lt;li class=&quot;spip&quot;&gt; Charger le module Tequila :
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; LoadModule tequila_module modules/mod_tequila.so&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;ul class=&quot;spip&quot;&gt;&lt;li class=&quot;spip&quot;&gt; Activer le module Tequila :
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; AddModule mod_tequila.c&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;ul class=&quot;spip&quot;&gt;&lt;li class=&quot;spip&quot;&gt; Configurer les param&#232;tres de session Tequila et les authentifications requises :
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; &amp;lt;IfModule mod_tequila.c&amp;gt;&lt;br /&gt; TequilaLog /var/log/Tequila/monExemple.log&lt;br /&gt; TequilaLogLevel 2&lt;br /&gt; TequilaServer tequila.epfl.ch&lt;br /&gt; TequilaSessionDir /var/log/Tequila/Sessions&lt;br /&gt; TequilaSessionMax 7200&lt;br /&gt; &amp;lt;Location /subdir/monExemple/&amp;gt;&lt;br /&gt; TequilaRewrite /var/www/restricted/monExemple/&lt;br /&gt; TequilaAllowIf org=EPFL&lt;br /&gt; TequilaAllowNet 128.178.&lt;br /&gt; #TequilaHasSSL&lt;br /&gt; &amp;lt;/Location&amp;gt;&lt;br /&gt; &amp;lt;/IfModule&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;ul class=&quot;spip&quot;&gt;&lt;ul class=&quot;spip&quot;&gt;&lt;li class=&quot;spip&quot;&gt; &lt;strong class=&quot;spip&quot;&gt;TequilaLog&lt;/strong&gt; : le fichier des logs de Tequila (cr&#233;er le r&#233;pertoire si n&#233;cessaire)&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; &lt;strong class=&quot;spip&quot;&gt;TequilaLogLevel&lt;/strong&gt; : le niveau de debug pour les logs de Tequila (9 &#233;tant tr&#232;s bavard)&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; &lt;strong class=&quot;spip&quot;&gt;TequilaServer&lt;/strong&gt; : le nom du serveur Tequila (EPFL : tequila.epfl.ch)&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; &lt;strong class=&quot;spip&quot;&gt;TequilaSessionDir&lt;/strong&gt; : le r&#233;pertoire qui contient les cl&#233;s de session pour une arborescence donn&#233;e (cr&#233;er le r&#233;pertoire si n&#233;cessaire)&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; &lt;strong class=&quot;spip&quot;&gt;TequilaSessionMax&lt;/strong&gt; : le temps maximum de la session en secondes&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; &lt;strong class=&quot;spip&quot;&gt;TequilaRewrite&lt;/strong&gt; : le r&#233;pertoire du serveur web qui contient l'arborescence s&#233;curis&#233;e [&lt;a href=&quot;http://elle.epfl.ch/#nb4-3&quot; name=&quot;nh4-3&quot; id=&quot;nh4-3&quot; class=&quot;spip_note&quot; title='[3] A noter que ce r&#233;pertoire peut &#234;tre identique &#224; l&amp;#39;arborescence (...)' &gt;3&lt;/a&gt;]&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; &lt;strong class=&quot;spip&quot;&gt;TequilaAllowIf&lt;/strong&gt; : les conditions de droit &#224; l'authentification [&lt;a href=&quot;http://elle.epfl.ch/#nb4-4&quot; name=&quot;nh4-4&quot; id=&quot;nh4-4&quot; class=&quot;spip_note&quot; title='[4] La liste des options d&amp;#39;identification possible est r&#233;sum&#233;e ici : (...)' &gt;4&lt;/a&gt;]&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; &lt;strong class=&quot;spip&quot;&gt;TequilaAllowNet&lt;/strong&gt; : le subnet pour lequel l'authentification ne sera pas demand&#233;e&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; &lt;strong class=&quot;spip&quot;&gt;TequilaHasSSL&lt;/strong&gt; : option utile si il s'agit d'une acc&#232;s s&#233;curis&#233; (https) [&lt;a href=&quot;http://elle.epfl.ch/#nb4-5&quot; name=&quot;nh4-5&quot; id=&quot;nh4-5&quot; class=&quot;spip_note&quot; title='[5] A noter que l&amp;#39;acc&#232;s au serveur tequila, qui demandera de (...)' &gt;5&lt;/a&gt;]&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; Red&#233;marrer le serveur apache avec cette nouvelle configuration :
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; service httpd restart&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;ul class=&quot;spip&quot;&gt;&lt;li class=&quot;spip&quot;&gt; Tester en se connectant &#224; http://servtest.epfl.ch/subdir/
&lt;br&gt;La redirection vers le serveur tequila devrait se faire si on acc&#232;de &#224; cette page depuis la maison par exemple&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; En cas de probl&#232;me, lire les logs dans &lt;strong class=&quot;spip&quot;&gt;/var/log/httpd/tequila.monExemple.log&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p class=&quot;spip&quot;&gt;A noter qu'il est possible de la m&#234;me mani&#232;re de prot&#233;ger uniquement un fichier.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Exemple 2 : Restreindre l'acc&#232;s d'une arboresence d'un virtual host &#224; quelques personnes identifi&#233;es par leur num&#233;ro sciper&lt;/h3&gt;
&lt;p class=&quot;spip&quot;&gt;Soit &lt;strong class=&quot;spip&quot;&gt;servtest2.epfl.ch&lt;/strong&gt; un virtual host sur le serveur &lt;strong class=&quot;spip&quot;&gt;servtest.epfl.ch&lt;/strong&gt; et &lt;strong class=&quot;spip&quot;&gt;subdir/monExemple&lt;/strong&gt; le r&#233;pertoire &#224; prot&#233;ger.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;La partie du fichier &lt;strong class=&quot;spip&quot;&gt;htppd.conf&lt;/strong&gt; concernant ce virtual host sera de cette mouture :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; &amp;lt;VirtualHost servtest2.epfl.ch&amp;gt;&lt;br /&gt; ServerAdmin toto.rochat@epfl.ch&lt;br /&gt; DocumentRoot /virtdir&lt;br /&gt; ServerName servtest2.epfl.ch&lt;br /&gt; ServerAlias servtest2 servtest2.epfl.ch&lt;br /&gt; &amp;lt;Directory &quot;/virtdir&quot;&amp;gt;&lt;br /&gt; Options FollowSymLinks&lt;br /&gt; AllowOverride none&lt;br /&gt; &amp;lt;Limit GET POST OPTIONS PROPFIND&amp;gt;&lt;br /&gt; Order allow,deny&lt;br /&gt; Allow from all&lt;br /&gt; &amp;lt;/Limit&amp;gt;&lt;br /&gt; &amp;lt;/Directory&amp;gt;&lt;br /&gt; &amp;lt;IfModule mod_tequila.c&amp;gt;&lt;br /&gt; TequilaLogLevel 2&lt;br /&gt; TequilaLog /var/log/Tequila/monExemple.log&lt;br /&gt; TequilaServer tequila.epfl.ch&lt;br /&gt; TequilaSessionDir /var/log/Tequila/Sessions&lt;br /&gt; TequilaSessionMax 7200&lt;br /&gt; &amp;lt;Location /subdir/monExemple/&amp;gt;&lt;br /&gt; TequilaRewrite /virtdir/subdir/monExemple/&lt;br /&gt; TequilaAllowIf uniqueid=104359&amp;org=EPFL&lt;br /&gt; TequilaAllowIf uniqueid=104360&amp;org=EPFL&lt;br /&gt; TequilaAllowIf uniqueid=104361&amp;org=EPFL&lt;br /&gt; TequilaAllowIf uniqueid=104362&amp;org=EPFL&lt;br /&gt; &amp;lt;/Location&amp;gt;&lt;br /&gt; &amp;lt;/IfModule&amp;gt;&lt;br /&gt; &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p class=&quot;spip&quot;&gt; [&lt;a href=&quot;http://elle.epfl.ch/#nb4-6&quot; name=&quot;nh4-6&quot; id=&quot;nh4-6&quot; class=&quot;spip_note&quot; title='[6] Les param&#232;tres globaux de Tequila peuvent &#234;tre configurer au niveau (...)' &gt;6&lt;/a&gt;]&lt;/p&gt; &lt;ul class=&quot;spip&quot;&gt;&lt;ul class=&quot;spip&quot;&gt;&lt;li class=&quot;spip&quot;&gt; &lt;strong class=&quot;spip&quot;&gt;TequilaAllowIf&lt;/strong&gt; : les authentifications sont cette fois bas&#233;es sur le num&#233;ro &lt;strong class=&quot;spip&quot;&gt;sciper&lt;/strong&gt; de l'EPFL (identificateur unique)&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; nous avons ici choisi le &lt;strong class=&quot;spip&quot;&gt;TequilaRewrite&lt;/strong&gt; dans l'arborescense normale&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;h3 class=&quot;spip&quot;&gt;Exemple 3 : Restreindre l'acc&#232;s d'une arboresence par htaccess&lt;/h3&gt;
&lt;p class=&quot;spip&quot;&gt;Pour qu'une arborescence puisse &#234;tre sous authentification &lt;strong class=&quot;spip&quot;&gt;Tequila&lt;/strong&gt;, il faudra :&lt;/p&gt; &lt;ul class=&quot;spip&quot;&gt;&lt;ul class=&quot;spip&quot;&gt;&lt;li class=&quot;spip&quot;&gt; que le fichier de configuration de apache &lt;strong class=&quot;spip&quot;&gt;httpd.conf&lt;/strong&gt; contienne les informations g&#233;n&#233;rales de Tequila : chargement du module, activation du module, d&#233;finition des param&#232;tres globaux (au minimum TequilaServer)&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; que les droits au niveau du serveurs soient au minimum AuthConfig (sinon le fichier &lt;strong class=&quot;spip&quot;&gt;.htaccess&lt;/strong&gt; ne sera pas lu) :
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; &amp;lt;Directory xxx&amp;gt;&lt;br /&gt; AllowOverride AuthConfig&lt;br /&gt; &amp;lt;/Directory&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;ul class=&quot;spip&quot;&gt;&lt;ul class=&quot;spip&quot;&gt;&lt;li class=&quot;spip&quot;&gt; qu'un fichier &lt;strong class=&quot;spip&quot;&gt;.htaccess&lt;/strong&gt; se trouve &#224; la racine de l'arborescence &#224; prot&#233;ger, par exemple :
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; TequilaAllowIf uniqueid=123456&amp;org=EPFL&lt;br /&gt; TequilaAllowIf uniqueid=123457&amp;org=EPFL&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p class=&quot;spip&quot;&gt;La notion de &lt;strong class=&quot;spip&quot;&gt;TequilaRewrite&lt;/strong&gt; n'a pas d'application dans ce cas.&lt;/p&gt;&lt;/div&gt;
		&lt;hr /&gt;
		&lt;div class='rss_notes'&gt;&lt;p class=&quot;spip_note&quot;&gt;[&lt;a href=&quot;http://elle.epfl.ch/#nh4-1&quot; name=&quot;nb4-1&quot; class=&quot;spip_note&quot; title=&quot;Notes 4-1&quot;&gt;1&lt;/a&gt;] Apache 1.3 seulement &#224; ce jour&lt;/p&gt; &lt;p class=&quot;spip_note&quot;&gt;[&lt;a href=&quot;http://elle.epfl.ch/#nh4-2&quot; name=&quot;nb4-2&quot; class=&quot;spip_note&quot; title=&quot;Notes 4-2&quot;&gt;2&lt;/a&gt;] On suppose que la balise &lt;code class='spip_code' dir='ltr'&gt;&amp;lt;Directory&amp;gt;&lt;/code&gt; est&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; &amp;lt;Directory &quot;/var/www/html&quot;&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p class=&quot;spip_note&quot;&gt;[&lt;a href=&quot;http://elle.epfl.ch/#nh4-3&quot; name=&quot;nb4-3&quot; class=&quot;spip_note&quot; title=&quot;Notes 4-3&quot;&gt;3&lt;/a&gt;] A noter que ce r&#233;pertoire peut &#234;tre identique &#224; l'arborescence correspondante. Toutefois, choisir un r&#233;pertoire en dehors de l'arborescence web assurance sans doute encore une plus grande s&#233;curit&#233;.&lt;/p&gt; &lt;p class=&quot;spip_note&quot;&gt;[&lt;a href=&quot;http://elle.epfl.ch/#nh4-4&quot; name=&quot;nb4-4&quot; class=&quot;spip_note&quot; title=&quot;Notes 4-4&quot;&gt;4&lt;/a&gt;] La liste des options d'identification possible est r&#233;sum&#233;e ici :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; #&lt;br /&gt; # Configuration du connecteur LDAP Data pour Gaspar.&lt;br /&gt; #&lt;br /&gt; Server: ldap.epfl.ch&lt;br /&gt; Base: o=epfl,c=ch&lt;br /&gt; UseSSL: off&lt;br /&gt; #&lt;br /&gt; Supports: name firstname status classe email title unit where office phone \&lt;br /&gt; username uniqueid unixid groupid&lt;br /&gt; #&lt;br /&gt; Mapping: name sn&lt;br /&gt; Mapping: firstname givenname&lt;br /&gt; Mapping: status organizationalStatus&lt;br /&gt; Mapping: classe userClass&lt;br /&gt; Mapping: email mail&lt;br /&gt; Mapping: title title&lt;br /&gt; Mapping: unit ou&lt;br /&gt; Mapping: where dn&lt;br /&gt; Mapping: office roomNumber&lt;br /&gt; Mapping: phone phone&lt;br /&gt; Mapping: username uid&lt;br /&gt; Mapping: uniqueid uniqueIdentifier&lt;br /&gt; Mapping: unixid uidnumber&lt;br /&gt; Mapping: groupid gidnumber&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p class=&quot;spip_note&quot;&gt;[&lt;a href=&quot;http://elle.epfl.ch/#nh4-5&quot; name=&quot;nb4-5&quot; class=&quot;spip_note&quot; title=&quot;Notes 4-5&quot;&gt;5&lt;/a&gt;] A noter que l'acc&#232;s au serveur tequila, qui demandera de s'authentifier, sera elle toujours s&#233;curis&#233;e.&lt;/p&gt; &lt;p class=&quot;spip_note&quot;&gt;[&lt;a href=&quot;http://elle.epfl.ch/#nh4-6&quot; name=&quot;nb4-6&quot; class=&quot;spip_note&quot; title=&quot;Notes 4-6&quot;&gt;6&lt;/a&gt;] Les param&#232;tres globaux de Tequila peuvent &#234;tre configurer au niveau global, par exemple :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; &amp;lt;IfModule mod_tequila.c&amp;gt;&lt;br /&gt; TequilaLogLevel 2&lt;br /&gt; TequilaLog /var/log/Tequila/monExemple.log&lt;br /&gt; TequilaServer tequila.epfl.ch&lt;br /&gt; TequilaSessionDir /var/log/Tequila/Sessions&lt;br /&gt; TequilaSessionMax 7200&lt;br /&gt; &amp;lt;/IfModule&amp;gt;&lt;br /&gt; #&lt;br /&gt; &amp;lt;VirtualHost servtest2.epfl.ch&amp;gt;&lt;br /&gt; ServerAdmin toto.rochat@epfl.ch&lt;br /&gt; DocumentRoot /virtdir&lt;br /&gt; ServerName servtest2.epfl.ch&lt;br /&gt; ServerAlias servtest2 servtest2.epfl.ch&lt;br /&gt; &amp;lt;Directory &quot;/virtdir&quot;&amp;gt;&lt;br /&gt; Options FollowSymLinks&lt;br /&gt; AllowOverride none&lt;br /&gt; &amp;lt;Limit GET POST OPTIONS PROPFIND&amp;gt;&lt;br /&gt; Order allow,deny&lt;br /&gt; Allow from all&lt;br /&gt; &amp;lt;/Limit&amp;gt;&lt;br /&gt; &amp;lt;/Directory&amp;gt;&lt;br /&gt; &amp;lt;Location /subdir/monExemple/&amp;gt;&lt;br /&gt; TequilaRewrite /virtdir/subdir/monExemple/&lt;br /&gt; TequilaAllowIf uniqueid=104301&amp;org=EPFL&lt;br /&gt; TequilaAllowIf uniqueid=104302&amp;org=EPFL&lt;br /&gt; TequilaAllowIf uniqueid=104303&amp;org=EPFL&lt;br /&gt; TequilaAllowIf uniqueid=104304&amp;org=EPFL&lt;br /&gt; &amp;lt;/Location&amp;gt;&lt;br /&gt; &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>



	<item>
		<title>NetBackup : Installation</title>
		<link>http://elle.epfl.ch/NetBackup-Installation</link>
		<guid isPermaLink="true">http://elle.epfl.ch/NetBackup-Installation</guid>
		<dc:date>2003-06-11T14:11:55Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>elle</dc:creator>



		<description>Installer NetBackup sur son serveur Linux

-
&lt;a href="http://elle.epfl.ch/-Veritas-NetBackup-" rel="directory"&gt;2. Veritas NetBackup&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p class=&quot;spip&quot;&gt;L'installation de NetBackup sur son serveur Linux RedHat se fait tout simplement &#224; partir du cdrom &#224; disposition aupr&#232;s de &lt;a href=&quot;http://www.epfl.ch/cgi-bin/csoldap/simple?name=boisseau&quot; class=&quot;spip_out&quot;&gt;Aristide Boisseau &lt;/a&gt;, responsable de Veritas &#224; l'EPFL.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Les fichiers sont install&#233;s dans le r&#233;pertoire &lt;strong class=&quot;spip&quot;&gt;/usr/openv/&lt;/strong&gt;. Le fichier &lt;strong class=&quot;spip&quot;&gt;/etc/services&lt;/strong&gt; est aussi modifi&#233; pour ajouter le service &lt;strong class=&quot;spip&quot;&gt;bpjobd&lt;/strong&gt;.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Enfin, les fichiers &lt;strong class=&quot;spip&quot;&gt;/etc/xinetd.d/bpcd&lt;/strong&gt; et &lt;strong class=&quot;spip&quot;&gt;/etc/xinetd.d/bpjava-msvc&lt;/strong&gt; pour la s&#233;curit&#233;.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;NetBackup acc&#232;de au serveur local par le port &lt;strong class=&quot;spip&quot;&gt;13782&lt;/strong&gt; (bpcd) qui doit donc &#234;tre accessible, tant au niveau du firewall que du &lt;strong class=&quot;spip&quot;&gt;tcp wrapper&lt;/strong&gt; (&lt;strong class=&quot;spip&quot;&gt;/etc/hosts.allow&lt;/strong&gt;).&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>



	<item>
		<title>NetBackup : S&#233;lection de sauvegarde</title>
		<link>http://elle.epfl.ch/NetBackup-Selection-de-sauvegarde</link>
		<guid isPermaLink="true">http://elle.epfl.ch/NetBackup-Selection-de-sauvegarde</guid>
		<dc:date>2003-06-11T13:54:54Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>elle</dc:creator>



		<description>Exclusions et inclusions de fichiers et r&#233;pertoires &#224; sauvegarder

-
&lt;a href="http://elle.epfl.ch/-Veritas-NetBackup-" rel="directory"&gt;2. Veritas NetBackup&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p class=&quot;spip&quot;&gt;La liste des r&#233;pertoires &#224; backuper est g&#233;r&#233;e par l'administrateur du serveur Veritas.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Si le client le souhaite, il peut exclure dans fichiers et des r&#233;pertoires de ce qui sera backup&#233; (r&#233;pertoires de cache, fichiers de log qui bougent sans cesse, etc.) en les incluant dans le fichier &lt;strong class=&quot;spip&quot;&gt;/usr/openv/netbackup/exclude_list&lt;/strong&gt; [&lt;a href=&quot;http://elle.epfl.ch/#nb6-1&quot; name=&quot;nh6-1&quot; id=&quot;nh6-1&quot; class=&quot;spip_note&quot; title='[1] Par exemple, pour exclure les fichiers cache de java (j2re), on (...)' &gt;1&lt;/a&gt;]&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Parmi les r&#233;pertoires exclus, on peut encore d&#233;cider de ne prendre que certains fichiers ou sous-r&#233;pertoires. Ceci se fait en les mentionnant dans le fichier &lt;strong class=&quot;spip&quot;&gt;/usr/openv/netbackup/include_list&lt;/strong&gt;.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;&lt;strong class=&quot;spip&quot;&gt;Exemple&lt;/strong&gt;&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Supposons que le serveur Veritas va vouloir backuper le r&#233;pertoire &lt;strong class=&quot;spip&quot;&gt;/disc1&lt;/strong&gt;.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Il est possible d'exclure de ce r&#233;pertoire toute l'arborescence &lt;strong class=&quot;spip&quot;&gt;test&lt;/strong&gt; en l'incluant dans le fichier &lt;strong class=&quot;spip&quot;&gt;/usr/openv/netbackup/exclude_list&lt;/strong&gt; :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; /disc1/test&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p class=&quot;spip&quot;&gt;Mais si dans l'arborescence &lt;strong class=&quot;spip&quot;&gt;test&lt;/strong&gt; nous avons une sous-arborescence &lt;strong class=&quot;spip&quot;&gt;agarder&lt;/strong&gt; que nous souhaitons sauvegarder, nous ajouterons dans le fichier &lt;strong class=&quot;spip&quot;&gt;/usr/openv/netbackup/include_list&lt;/strong&gt; :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; /disc1/test/agarder&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p class=&quot;spip&quot;&gt;&lt;strong class=&quot;spip&quot;&gt;Documentation&lt;/strong&gt;&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Pour une documentation compl&#232;te de la syntaxe de ces fichiers, voir les pages 86 &#224; 115 du &lt;a href=&quot;http://ftp.support.veritas.com/pub/support/products/NetBackup_DataCenter/246847.pdf&quot; class=&quot;spip_out&quot;&gt;gros document de NetBackup &lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;
		&lt;hr /&gt;
		&lt;div class='rss_notes'&gt;&lt;p class=&quot;spip_note&quot;&gt;[&lt;a href=&quot;http://elle.epfl.ch/#nh6-1&quot; name=&quot;nb6-1&quot; class=&quot;spip_note&quot; title=&quot;Notes 6-1&quot;&gt;1&lt;/a&gt;] Par exemple, pour exclure les fichiers cache de java (j2re), on ajoutera la ligne suivante :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; /home/*/.java/*/cache/&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>



	<item>
		<title>NetBackup : Strat&#233;gie de backup</title>
		<link>http://elle.epfl.ch/NetBackup-Strategie-de-backup</link>
		<guid isPermaLink="true">http://elle.epfl.ch/NetBackup-Strategie-de-backup</guid>
		<dc:date>2003-03-04T19:03:44Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>elle</dc:creator>



		<description>NetBackup a sa propre strat&#233;gie de backup en fonction des diff&#233;rentes informations temporelles des fichiers

-
&lt;a href="http://elle.epfl.ch/-Veritas-NetBackup-" rel="directory"&gt;2. Veritas NetBackup&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p class=&quot;spip&quot;&gt;Les premi&#232;res utilisations de &lt;strong class=&quot;spip&quot;&gt;Veritas NetBackup&lt;/strong&gt; d'un serveur sous Linux donnent quelques r&#233;sultats qu'il est utile de comprendre.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Backup incr&#233;mental avec les options par d&#233;faut&lt;/h3&gt;
&lt;p class=&quot;spip&quot;&gt;&lt;strong class=&quot;spip&quot;&gt;Surprise&lt;/strong&gt; : Apr&#232;s avoir ajouter plus de 1 GB de donn&#233;es sur le serveur, le backup incr&#233;mental n'a backup&#233; que 20 MB de donn&#233;es. Pourquoi ?&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;&lt;strong class=&quot;spip&quot;&gt;Compr&#233;hension&lt;/strong&gt; : L'algorithme utilis&#233; par NetBackup pour d&#233;cider si un fichier doit faire partie d'un backup incr&#233;mental est de comparer la date de modification (&lt;strong class=&quot;spip&quot;&gt;mtime&lt;/strong&gt;) du fichier par rapport &#224; la date du dernier backup. Comme les GB ajout&#233;s proviennent principalement de fichiers install&#233;s depuis des fichiers d'archives, la majorit&#233; de leurs dates sont ant&#233;rieures &#224; la date du dernier backup et ne sont donc pas sauvegard&#233;es.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;&lt;strong class=&quot;spip&quot;&gt;Les dates des fichiers&lt;/strong&gt; :
Sous GNU/Linux (et Unix en g&#233;n&#233;ral), les fichiers ont 3 donn&#233;es d'information sur le temps :&lt;/p&gt; &lt;ul class=&quot;spip&quot;&gt;&lt;li class=&quot;spip&quot;&gt; &lt;strong class=&quot;spip&quot;&gt;ctime&lt;/strong&gt; : la date de derni&#232;re modification de l'&lt;i class=&quot;spip&quot;&gt;inode&lt;/i&gt; du fichier&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; &lt;strong class=&quot;spip&quot;&gt;mtime&lt;/strong&gt; : la date de derni&#232;re modification du fichier&lt;/li&gt;&lt;li class=&quot;spip&quot;&gt; &lt;strong class=&quot;spip&quot;&gt;atime&lt;/strong&gt; : la date de dernier acc&#232;s au fichier (lecture)&lt;/li&gt;&lt;/ul&gt;
&lt;p class=&quot;spip&quot;&gt;Avec les param&#232;tres par d&#233;faut du client NetBackup, seul le mtime est pris en compte pour d&#233;cider si un fichier doit &#234;tre backup&#233;.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;&lt;strong class=&quot;spip&quot;&gt;Etat des dates des fichiers apr&#232;s backup par NetBackup&lt;/strong&gt; :
Lorsqu'un fichier est backup&#233; par NetBackup, sa date &lt;strong class=&quot;spip&quot;&gt;atime&lt;/strong&gt; n'est pas modifi&#233;e mais sa date &lt;strong class=&quot;spip&quot;&gt;ctime&lt;/strong&gt; correspond au moment du backup.
Ceci correspond &#224; un choix. Netbackup ne souhaite pas que &lt;strong class=&quot;spip&quot;&gt;atime&lt;/strong&gt; soit modifi&#233;. Ceci se fait un utilisant la fonction &lt;strong class=&quot;spip&quot;&gt;utime&lt;/strong&gt; qui restaure &lt;strong class=&quot;spip&quot;&gt;atime&lt;/strong&gt; &#224; sa valeur juste avant le backup mais avec pour effet secondaire de modifer &lt;strong class=&quot;spip&quot;&gt;ctime&lt;/strong&gt;.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Option possible du client NetBackup&lt;/h3&gt;
&lt;p class=&quot;spip&quot;&gt;Il est possible d'ajouter dans le fichier &lt;strong class=&quot;spip&quot;&gt;/usr/openv/netbackup/bp.conf&lt;/strong&gt; deux lignes qui vont changer le comportement de NetBackup [&lt;a href=&quot;http://elle.epfl.ch/#nb7-1&quot; name=&quot;nh7-1&quot; id=&quot;nh7-1&quot; class=&quot;spip_note&quot; title='[1] Les pages 781 &#224; 786 de ce gros document de NetBackup parlent de fa&#231;on (...)' &gt;1&lt;/a&gt;] :&lt;/p&gt;
&lt;form action=&quot;/&quot; method=&quot;get&quot;&gt;&lt;div&gt;&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;USE_CTIME_FOR_INCREMENTALS = YES DO_NOT_RESET_FILE_ACCESS_TIME = YES&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt;
&lt;p class=&quot;spip&quot;&gt;Cette fois, NetBackup va utiliser, non pas &lt;strong class=&quot;spip&quot;&gt;mtime&lt;/strong&gt; mais &lt;strong class=&quot;spip&quot;&gt;ctime&lt;/strong&gt; pour comparer cette date &#224; sa date de r&#233;f&#233;rence (dernier backup).&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;En outre, en ne recouvrant pas le &lt;strong class=&quot;spip&quot;&gt;atime&lt;/strong&gt; d'avant le backup, le &lt;strong class=&quot;spip&quot;&gt;ctime&lt;/strong&gt; ne sera pas modifi&#233; [&lt;a href=&quot;http://elle.epfl.ch/#nb7-2&quot; name=&quot;nh7-2&quot; id=&quot;nh7-2&quot; class=&quot;spip_note&quot; title='[2] C&amp;#39;est ce qui se passe lors de backups avec NetWorker, de (...)' &gt;2&lt;/a&gt;].&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Ces deux options sont celles choisies pour nos serveurs car des fichiers dont la date est ant&#233;rieure sont souvent d&#233;roul&#233;s sur ces serveurs.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;&lt;strong class=&quot;spip&quot;&gt;Remarque&lt;/strong&gt;&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;La documentation dit aussi ceci concernant ces deux options : &lt;i class=&quot;spip&quot;&gt;DO NOT use these options if you are running Storage Migrator on the system. Setting these options causes the atime for files to be updated every time they are backed up. This makes it appear as if the files are frequently used and stops Storage Migrator from selecting them for migration.&lt;/i&gt;&lt;/p&gt;&lt;/div&gt;
		&lt;hr /&gt;
		&lt;div class='rss_notes'&gt;&lt;p class=&quot;spip_note&quot;&gt;[&lt;a href=&quot;http://elle.epfl.ch/#nh7-1&quot; name=&quot;nb7-1&quot; class=&quot;spip_note&quot; title=&quot;Notes 7-1&quot;&gt;1&lt;/a&gt;] Les pages 781 &#224; 786 de ce &lt;a href=&quot;http://ftp.support.veritas.com/pub/support/products/NetBackup_DataCenter/246847.pdf&quot; class=&quot;spip_out&quot;&gt;gros document de NetBackup &lt;/a&gt;
parlent de fa&#231;on peu explicite de ces aspects. Quelques &lt;a href=&quot;http://seer.support.veritas.com/docs/200644.htm&quot; class=&quot;spip_out&quot;&gt;pistes suppl&#233;mentaires &lt;/a&gt;
existent&lt;/p&gt; &lt;p class=&quot;spip_note&quot;&gt;[&lt;a href=&quot;http://elle.epfl.ch/#nh7-2&quot; name=&quot;nb7-2&quot; class=&quot;spip_note&quot; title=&quot;Notes 7-2&quot;&gt;2&lt;/a&gt;] C'est ce qui se passe lors de backups avec NetWorker, de Legato.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>



	<item>
		<title>4. VPN et les firewalls</title>
		<link>http://elle.epfl.ch/VPN-et-les-firewalls</link>
		<guid isPermaLink="true">http://elle.epfl.ch/VPN-et-les-firewalls</guid>
		<dc:date>2002-12-06T16:27:12Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>elle</dc:creator>



		<description>Comment configurer les firewalls pour VPN

-
&lt;a href="http://elle.epfl.ch/-VPN-" rel="directory"&gt;1. VPN&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;h3 class=&quot;spip&quot;&gt;ipchains&lt;/h3&gt;
&lt;p class=&quot;spip&quot;&gt;Si on utilise &lt;strong class=&quot;spip&quot;&gt;ipchains&lt;/strong&gt; comme firewall, pour utiliser vpn il faudra ouvrir le port 500.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Pour cela, ajouter dans le fichier &lt;strong class=&quot;spip&quot;&gt;/etc/sysconfig/ipchains&lt;/strong&gt; les 2 lignes suivantes (&#224; mettre avant les REJECTS car l'ordre dans ipchains a de l'importance) :&lt;/p&gt;
&lt;form action=&quot;/&quot; method=&quot;get&quot;&gt;&lt;div&gt;&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;-A input -s 128.178.15.0/24 -d 0/0 500 -p tcp -y -j ACCEPT -A input -s 128.178.15.0/24 -d 0/0 500 -p udp -j ACCEPT&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt;
&lt;p class=&quot;spip&quot;&gt;Puis il faut arr&#234;ter et red&#233;marrer le serveur ipchains :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; service ipchains restart&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;h3 class=&quot;spip&quot;&gt;iptables&lt;/h3&gt;
&lt;p class=&quot;spip&quot;&gt;Si on utilise &lt;strong class=&quot;spip&quot;&gt;iptables&lt;/strong&gt; comme firewall, pour utilise vpn il faudra aussi ouvrir le port 500.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Pour cela, ajouter dans le fichier &lt;strong class=&quot;spip&quot;&gt;/etc/sysconfig/ipchains&lt;/strong&gt; les 2 lignes suivantes (&#224; tester) :&lt;/p&gt;
&lt;form action=&quot;/&quot; method=&quot;get&quot;&gt;&lt;div&gt;&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;-A RH-Lokkit-0-50-INPUT -p tcp -m tcp -s 128.178.15.0/24 -d 0/0 --dport 500 --syn -j ACCEPT -A RH-Lokkit-0-50-INPUT -p udp -m udp --sport 500 -s 0/0 -d 0/0 --dport 500 -i eth0 -j ACCEPT&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt;
&lt;p class=&quot;spip&quot;&gt;Puis il faut arr&#234;ter et red&#233;marrer le serveur iptables :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; service iptables restart&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>



	<item>
		<title>2. VPN sous redhat 8.0 &#224; l'EPFL</title>
		<link>http://elle.epfl.ch/VPN-sous-redhat-8-a-l-EPFL</link>
		<guid isPermaLink="true">http://elle.epfl.ch/VPN-sous-redhat-8-a-l-EPFL</guid>
		<dc:date>2002-11-28T16:50:43Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>elle</dc:creator>



		<description>Installer et utiliser vpn sous redhat 8.0

-
&lt;a href="http://elle.epfl.ch/-VPN-" rel="directory"&gt;1. VPN&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;h3 class=&quot;spip&quot;&gt;Installer vpn&lt;/h3&gt;
&lt;p class=&quot;spip&quot;&gt;Pour installer vpn sous linux, suivre les &lt;a href=&quot;http://network/vpn/Linux/index.html&quot; class=&quot;spip_out&quot;&gt;instructions&lt;/a&gt;.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Il faut toutefois &#234;tre attentif car souvent il faut t&#233;l&#233;charger la version de base &lt;strong class=&quot;spip&quot;&gt;et&lt;/strong&gt; la version de mise &#224; jour.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Dans un r&#233;pertoire, detarer le tar de base, puis le tar de mise &#224; jour avant de lancer le script d'installation.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Initialiser le client&lt;/h3&gt;
&lt;p class=&quot;spip&quot;&gt;Si vous avez choisi de lancer automatiquement le client vpn, rien &#224; faire. Sinon, en tant que root, lancer interativement la commande&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; /etc/init.d/vpn_client_init start&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;h3 class=&quot;spip&quot;&gt;Se connecter&lt;/h3&gt;
&lt;p class=&quot;spip&quot;&gt;Comme simple utilisateur, lancer la commande&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; vpnclient connect EPFL_LAN&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p class=&quot;spip&quot;&gt;Il faut s'identifier par son num&#233;ro &lt;strong class=&quot;spip&quot;&gt;sciper&lt;/strong&gt; et son mot de passe &lt;strong class=&quot;spip&quot;&gt;gaspar&lt;/strong&gt;.&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Apr&#232;s le lancement du client, pour r&#233;cup&#233;rer le prompt, mettre la t&#226;che en background (&lt;strong class=&quot;spip&quot;&gt;^Z&lt;/strong&gt;, puis &lt;strong class=&quot;spip&quot;&gt;bg&lt;/strong&gt;).&lt;/p&gt; &lt;p class=&quot;spip&quot;&gt;Si lors du d&#233;marrage de vpnclient, un message parle d'incompatibilit&#233; de version de gcc, c'est que la version de vpn que vous utilisez n'est pas asser r&#233;cente.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Se d&#233;connecter&lt;/h3&gt;
&lt;p class=&quot;spip&quot;&gt;Utiliser la commande&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; vpnclient disconnect&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;h3 class=&quot;spip&quot;&gt;Obtenir des informations sur la connexion&lt;/h3&gt;
&lt;p class=&quot;spip&quot;&gt;La commande&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;br /&gt; vpnclient stat&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p class=&quot;spip&quot;&gt;permet d'avoir des d&#233;tails sur la connexion. Une &lt;a href=&quot;http://www.cisco.com/univercd/cc/td/doc/product/vpn/client/&quot; class=&quot;spip_out&quot;&gt;documentation compl&#232;te&lt;/a&gt; est disponible chez &lt;strong class=&quot;spip&quot;&gt;cisco&lt;/strong&gt;.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>





</channel>

</rss>
