diff --git a/build/lemonldap-ng/_example/lmConfig.mysql b/build/lemonldap-ng/_example/lmConfig.mysql index 044a19d23..b3c594824 100644 --- a/build/lemonldap-ng/_example/lmConfig.mysql +++ b/build/lemonldap-ng/_example/lmConfig.mysql @@ -17,5 +17,6 @@ CREATE TABLE lmConfig ( exportedVars text, managerDn text, managerPassword text, + timeout int, whatToTrace text ); diff --git a/build/lemonldap-ng/debian/migrating.sql b/build/lemonldap-ng/debian/migrating.sql new file mode 100644 index 000000000..ff2b10a8e --- /dev/null +++ b/build/lemonldap-ng/debian/migrating.sql @@ -0,0 +1 @@ +ALTER TABLE lmConfig ADD COLUMN timeout int; diff --git a/build/lemonldap-ng/doc/advanced-install.html b/build/lemonldap-ng/doc/advanced-install.html index 978db1be0..921a22089 100644 --- a/build/lemonldap-ng/doc/advanced-install.html +++ b/build/lemonldap-ng/doc/advanced-install.html @@ -5,7 +5,7 @@
+ "HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />@@ -111,47 +110,42 @@ apt-get install libapache-session-perl libnet-ldap-perl libcache-cache-perl libdbi-perl perl-modules libwww-perl libcache-cache-perl libxml-simple-perl-
apt-get install libapache-session-perl libnet-ldap-perl libdbi-perl perl-modules-
apt-get install libapache-session-perl libdbi-perl libwww-perl libcache-cache-perl-
@@ -160,12 +154,10 @@ apt-get install perl-modules libxml-simple-perl
@@ -174,11 +166,10 @@ $ tar xzf lemonldap-ng-*.tar.gz $ perl Makefile.PL && make && make test $ sudo make install-
@@ -187,20 +178,19 @@ $ tar xzf lemonldap-ng-*.tar.gz $ make && make test $ sudo make install-
@@ -210,11 +200,10 @@ $ tar xzf lemonldap-ng-*.tar.gzLemonldap::NG Configuration - database
- - To store configuration, use this table : - - + database
+
+ To store configuration, use this table :
+
@@ -244,14 +233,13 @@ CREATE TABLE lmConfig (Apache::Session database
- - The choice of Apache::Session::* module is free. - See Apache::Session::Store::* or Apache::Session::* to know how to - configure the module. For example, if you want to use - Apache::Session::MySQL, you can create the database like this: - - + "HApache3A3ASessiondatabase">Apache::Session database
+
+ The choice of Apache::Session::* module is free. See + Apache::Session::Store::* or Apache::Session::* to know how to configure + the module. For example, if you want to use Apache::Session::MySQL, you + can create the database like this:
+
@@ -263,13 +251,12 @@ CREATE TABLE sessions (Manager - configuration
- - Copy example/manager.cgi and personalize it if - you want (see Lemonldap::NG::Manager). You have to set in particular - configStorage. For example with MySQL: - - + configuration
+
+ Copy example/manager.cgi and personalize it if you want (see + Lemonldap::NG::Manager). You have to set in particular configStorage. For + example with MySQL:
+
- - Securise Manager access with Apache: Lemonldap - does not securise the manager itself yet: - - +@@ -283,12 +270,11 @@ $my $manager = Lemonldap::NG::Manager->"mypass", } );
-
@@ -302,10 +288,10 @@ SSLEngine On
__PACKAGE__->init ( { localStorage => "Cache::FileCache", @@ -248,24 +247,22 @@ __PACKAGE__->init ( {A quoi sert le paramètre - https du handler ?
- - Ce paramètre n'est utilisé que dans - les redirections vers le portail d'authentification. Il sert juste - à indiquer à ce dernier qu'après authentification, - l'utilisateur doit être redirigé vers l'application en https - et non en http. + https du handler ?
+
+ Ce paramètre n'est utilisé que dans les redirections vers le + portail d'authentification. Il sert juste à indiquer à ce + dernier qu'après authentification, l'utilisateur doit être + redirigé vers l'application en https et non en http.Qu'est ce qu'une CGI - auto-protégée ?
- - Lorsqu'on a qu'une seule page Perl à - protéger dans un VirtualHost, plutôt que de la - protéger en utilisant un agent Lemonldap::NG dans Apache, on peut - utiliser une CGI auto-protégée: - - + auto-protégée ?
+
+ Lorsqu'on a qu'une seule page Perl à protéger dans un + VirtualHost, plutôt que de la protéger en utilisant un agent + Lemonldap::NG dans Apache, on peut utiliser une CGI + auto-protégée:
+
use Lemonldap::NG::Handler::CGI; my $cgi = Lemonldap::NG::Handler::CGI->new ( { @@ -273,11 +270,11 @@ __PACKAGE__->init ( { } ); $cgi->authenticate; -- - Dans l'exemple ci-dessus, $cgi est un objet de - type CGI(3). La seule différence est qu'il bénéficie - de quelques fonctions supplémentaires: +
# httpd.conf
<VirtualHost *>
@@ -360,20 +356,19 @@ my $portal = Lemonldap::NG::Portal::SharedConf->new(
# RewriteRule /(.*)$ http://serveur-reel/$1 [P]
</VirtualHost>
-
-
- Si toutefois vous préférez utiliser
- un proxy Perl, Lemonldap::NG en fournit un
- (Lemonldap::NG::Handler::Proxy(3)).
+__PACKAGE__->init ( { localStorage => "Cache::FileCache", @@ -212,21 +211,18 @@ __PACKAGE__->init ( {For what is used the "https" - parameter ?
- - This parameter is used only in authentication - portal redirections. It is just used to indicate to the portal that after - authentification, the user must be redirected towards the application - using https and not http. + parameter ?
+
+ This parameter is used only in authentication portal redirections. It is + just used to indicate to the portal that after authentification, the user + must be redirected towards the application using https and not http.What is - an auto-protected CGI ?
- - When you have just 1 Perl CGI to protect in a - VirtualHost, you can use an auto-protected CGI instead of using a - Lemonldap::NG handler: - - + an auto-protected CGI ?
+
+ When you have just 1 Perl CGI to protect in a VirtualHost, you can use an + auto-protected CGI instead of using a Lemonldap::NG handler:
+
use Lemonldap::NG::Handler::CGI; my $cgi = Lemonldap::NG::Handler::CGI->new ( { @@ -234,10 +230,10 @@ __PACKAGE__->init ( { } ); $cgi->authenticate; -- - In the example above, $cgi is a CGI(3) object. - The only difference is that it has some additional functions: +
#!/usr/bin/perl use Lemonldap::NG::Portal::SharedConf; @@ -293,13 +288,11 @@ my $portal = Lemonldap::NG::Portal::SharedConf->new(How to use Lemonldap::NG as - reverse-proxy ?
- - Lemonldap::NG protects Apache VirtualHosts. To - use it as reverse-proxy, you just have to configure Apache as - reverse-proxy : - - + reverse-proxy ?
+
+ Lemonldap::NG protects Apache VirtualHosts. To use it as reverse-proxy, + you just have to configure Apache as reverse-proxy :
+
# httpd.conf <VirtualHost *> @@ -315,18 +308,18 @@ my $portal = Lemonldap::NG::Portal::SharedConf->new( # RewriteRule /(.*)$ http://serveur-reel/$1 [P] </VirtualHost> -
- - If you prefer to use a Perl proxy, Lemonldap::NG - provides one (Lemonldap::NG::Handler::Proxy(3)) +
@@ -103,9 +102,8 @@ $ make example
@@ -114,12 +112,10 @@ $ cd lemonldap-ng-* $ debuild $ sudo dpkg -i ../lemonldap-ng*.deb-
@@ -131,13 +127,12 @@ deb-srcCONFIGURATION DE L'EXEMPLE
- - Après compilation, vous disposez d'un - fichier example/apache.conf. Vous avez simplement à l'inclure dans - le fichier de configuration d'Apache: - - + "HCONFIGURATIONDEL27EXEMPLE">CONFIGURATION DE L'EXEMPLE
+
+ Après compilation, vous disposez d'un fichier example/apache.conf. + Vous avez simplement à l'inclure dans le fichier de configuration + d'Apache:
+
- - Modifiez votre fichier /etc/hosts pour y ajouter: - - +@@ -150,11 +145,10 @@ ln -s /usr/share/doc/lemonldap-ng/example/apache.conf /etc/apache/conf.d/test.co # ou avec Apache-2.x ln -s /usr/share/doc/lemonldap-ng/example/apache2.conf /etc/apache2/sites-enabled/test.conf-
@@ -162,10 +156,10 @@ ln -s /usr/share/doc/lemonldap-ng/example/apache2.conf /etc/apache2/sites-enable 127.0.0.3 test.example.com 127.0.0.4 manager.example.com-
@@ -91,9 +90,8 @@ $ make example
@@ -102,11 +100,10 @@ $ cd lemonldap-ng-* $ debuild $ sudo dpkg -i ../lemonldap-ng*.deb-
@@ -118,13 +115,11 @@ deb-srcEXAMPLE - CONFIGURATION
- - After build, you have a new file named - example/apache.conf. You just have to include this file in Apache - configuration: - - + CONFIGURATION
+
+ After build, you have a new file named example/apache.conf. You just have + to include this file in Apache configuration:
+
- - Modify your /etc/hosts file to include: - - +@@ -137,11 +132,10 @@ ln -s /usr/share/doc/lemonldap-ng/example/apache.conf /etc/apache/conf.d/test.co # or with Apache-2.x ln -s /usr/share/doc/lemonldap-ng/example/apache2.conf /etc/apache2/sites-enabled/test.conf-
@@ -149,10 +143,10 @@ ln -s /usr/share/doc/lemonldap-ng/example/apache2.conf /etc/apache2/sites-enable 127.0.0.3 test.example.com 127.0.0.4 manager.example.com-
@@ -340,44 +339,43 @@ group1 => {$uid eq "unit1"})
-
@@ -294,36 +291,36 @@ group1 => {$uid eq "unit1"})
-