diff --git a/build/lemonldap-ng/debian/changelog b/build/lemonldap-ng/debian/changelog index 4e1f1df26..7dabc94d7 100644 --- a/build/lemonldap-ng/debian/changelog +++ b/build/lemonldap-ng/debian/changelog @@ -1,9 +1,17 @@ +lemonldap-ng (0.8.2.4) unstable; urgency=low + + * Bug in manager javascript. + + -- Xavier Guimard Mon, 18 Jun 2007 22:28:53 +0200 + lemonldap-ng (0.8.2.3) unstable; urgency=low * Change configuration storage format (Storable bug). Closes: #307173/objectweb.org + * CDA little bug correction + * Documentation update - -- Xavier Guimard Wed, 13 Jun 2007 13:49:27 +0200 + -- Xavier Guimard Wed, 13 Jun 2007 15:33:56 +0200 lemonldap-ng (0.8.2.2) unstable; urgency=low diff --git a/build/lemonldap-ng/debian/control b/build/lemonldap-ng/debian/control index 7fd2b19c8..3001b7c19 100644 --- a/build/lemonldap-ng/debian/control +++ b/build/lemonldap-ng/debian/control @@ -24,7 +24,7 @@ Description: Lemonldap::NG Web-SSO system documentation Package: liblemonldap-ng-handler-perl Architecture: all -Depends: libapache-session-perl, libwww-perl, libcache-cache-perl, liblemonldap-ng-conf-perl +Depends: libapache-session-perl, libwww-perl, libcache-cache-perl, liblemonldap-ng-conf-perl (>=0.8.2.3) Description: Lemonldap::NG apache module part Lemonldap::NG is a complete Web-SSO system that can run with reverse-proxies or directly on application apache servers. @@ -45,7 +45,7 @@ Description: Lemonldap::NG apache administration interface part Package: liblemonldap-ng-manager-perl Architecture: all -Depends: libxml-simple-perl, liblemonldap-ng-conf-perl +Depends: libxml-simple-perl, liblemonldap-ng-conf-perl (>=0.8.2.3) Recommends: libcache-cache-perl, libapache-session-perl, libsoap-lite-perl Description: Lemonldap::NG apache manager part Lemonldap::NG is a complete Web-SSO system that can run with reverse-proxies @@ -55,7 +55,7 @@ Description: Lemonldap::NG apache manager part Package: liblemonldap-ng-portal-perl Architecture: all -Depends: libapache-session-perl, libnet-ldap-perl, liblemonldap-ng-conf-perl +Depends: libapache-session-perl, libnet-ldap-perl, liblemonldap-ng-conf-perl (>=0.8.2.3) Recommends: liblasso-perl Description: Lemonldap::NG apache authentication portal part Lemonldap::NG is a complete Web-SSO system that can run with reverse-proxies diff --git a/build/lemonldap-ng/doc/faq-fr.html b/build/lemonldap-ng/doc/faq-fr.html index 76c259564..399f3d1ab 100644 --- a/build/lemonldap-ng/doc/faq-fr.html +++ b/build/lemonldap-ng/doc/faq-fr.html @@ -93,6 +93,66 @@ changer le mode d'authentification ? + +
  • + Messages d'erreur et de + déboguage + + +
  • + +

    Messages d'erreur et de + déboguage

    + +

    Lemonldap::NG produit des messages de + déboguage et d'erreur enregistrés dans le journal d'Apache + (error.log par défaut). Vous pouvez modifier le niveau d'affichage + en adaptant le paramètre LogLevel d'Apache. + +

    "Incorrect + XML"

    + +

    Ce message apparaît au chargement du + Manager lorsque celui-ci n'arrive pas à charger la configuration. + Dans ce cas, consultez les journaux d'Apache : la véritable + erreur y sera enregistrée. + +

    + "Byte order is not compatible" ou "Magic number checking on storable + string failed"

    + +

    Ce message apparaît lorsque la + configuration stockée est malformée ou sur les versions + antérieures à la version 0.8.2.3 lorsqu'on utilise + Lemonldap::NG sur des serveurs de type différents (32 et 64 bits en + particulier). Dans ce dernier cas, il suffit d'installer une version au + moins égale à la version 0.8.2.3. + +

    "Configuration is in + old format, you've to migrate !"

    + +

    Ce message d'avertissement apparaît + lorsqu'une configuration générée à partir + d'une version antérieure à la 0.8.2.3 est lue par une + version plus récente. Un simple réengistrement de la + configuration par le manager fait disparaître cet avertissement. + +

    "My::Package: get configuration + 1"

    + +

    Ce message de déboguage montre qu'un des + processus fils d'Apache charge la configuration. + +

    "My::Package: store + configuration 1"

    + +

    Ce message de déboguage montre qu'un des + processus fils d'Apache enregistre la dernière version de la + configuration dans le cache local. Elle sera lue par les autres fils + d'Apache dans les 10 minutes qui suivent. + +

    "My::Package: No cookie + found"

    + +

    Ce message indique qu'un utilisateur non + authentifié se présente sur l'application. + +

    "Redirect + <x.x.x.x> to portal (url was /)"

    + +

    Message de déboguage indiquant que le + client correspondant à l'adresse IP est redirigé vers le + portail d'authentification. + +

    "Found a + CDA id. Redirecting"

    + +

    Message de déboguage indiquant que le + client a été authentifié dans un autre domaine + (mécanisme CDA). L'agent génère alors le cookie dans + le nouveau domaine. + +

    "User someone was + authorizated to access to /"

    + +

    Message de déboguage indiquant que le + client est autorisé à accéder à cette URL. + +

    "My::Package: removing + cookie"

    + +

    Message de déboguage indiquant que l'agent + retire le cookie après l'avoir exploité : les + applications n'ont pas à connaître ce cookie mais ne se fient + qu'aux en-têtes. + +

    "Error + while reading configuration with globalStorageOptions key:"

    + +

    Une erreur a été relevée + dans la configuration. + +

    "User + rejected because VirtualHost test.example.com has no + configuration"

    + +

    Lorsqu'un VirtualHost est protégé + mais pas configuré, Lemonldap::NG le bloque. Inscrivez alors ce + VirtualHost dans la configuration de Lemonldap::NG. + +

    + "The cookie xxxx isn't yet available: Object does not exist in the data + store at /usr/share/perl5/Apache/Session/Store/File.pm line + 90.n"

    + +

    Ce message apparaît lorsqu'un utilisateur + présente un cookie qui n'existe pas ou plus dans la base des + sessions. Il est alors prié de se ré-authentifier. + +

    + "The cookie xxxx isn't yet available: <erreur du + module Apache::Session>

    + +

    Ce message apparaît lorsque l'agent + n'arrive pas à atteindre la base des sessions. La véritable + erreur est reportée. + +

    diff --git a/build/lemonldap-ng/doc/faq.html b/build/lemonldap-ng/doc/faq.html index c7d1bfc77..0e969d2fb 100644 --- a/build/lemonldap-ng/doc/faq.html +++ b/build/lemonldap-ng/doc/faq.html @@ -86,6 +86,65 @@ authentication scheme ? + +
  • + Error and debug messages + + +
  • General @@ -397,6 +456,123 @@ my $portal = Lemonldap::NG::Portal::SharedConf->new( because only one Kerberos negociation has to be done for all protected applications. + +

    Error and debug + messages

    + +

    Lemonldap::NG produces error and debug messages + logged by Apache (in error.log by default). You can adapt debug level by + setting LogLevel parameter in Apache configuration file. + +

    "Incorrect + XML"

    + +

    This messages appears when the manager cannot + load configuration. The real error can be found in Apache logs. + +

    + "Byte order is not compatible" ou "Magic number checking on storable + string failed"

    + +

    This error message apprears when stored + configuration is corrupted or on versions earlier than 0.8.2.3 when you're + using Lemonldap::NG with different server types (32 and 64 bits for + example). In this case, you've to upgrade your Lemonldap::NG to at least + 0.8.2.3. + +

    "Configuration is in + old format, you've to migrate !"

    + +

    This warning message means that you are using a + configuration generated by an earlier version than 0.8.2.3 with a more + up-to-date Lemonldap::NG component. You just have to re-save configuration + with a recent manager to avoid this warning. + +

    "My::Package: get configuration + 1"

    + +

    Information message: an Apache child process load + configuration. + +

    "My::Package: store + configuration 1"

    + +

    Information message: an Apache child process + stores the last configuration in the local cache. It will be read by other + Apache childs before 10 minutes. + +

    "My::Package: No cookie + found"

    + +

    Information message: one non-authenticated user + tries to connect to the protected application. + +

    "Redirect + <x.x.x.x> to portal (url was /)"

    + +

    Debug message: the client x.x.x.x is redirected + to the authentication portal. + +

    "Found a + CDA id. Redirecting"

    + +

    Debug message: the client has been authenticated + in another domain (CDA mechanism). The handler generates the cookie in the + new domain. + +

    "User someone was + authorizated to access to /"

    + +

    Debug message: the user "someone" has been + authorizated to access to this URL. + +

    "My::Package: removing + cookie"

    + +

    Debug message: after grant, the handler removes + hides the cookie. Protected application needs only headers. + +

    "Error + while reading configuration with globalStorageOptions key:"

    + +

    Configuration is corrupted. See the following + error. + +

    "User + rejected because VirtualHost test.example.com has no + configuration"

    + +

    When a virtual host is protected but not + configured, Lemonldap::NG block it. Update your configuration to add this + new virtual host, save and apply it. + +

    + "The cookie xxxx isn't yet available: Object does not exist in the data + store at /usr/share/perl5/Apache/Session/Store/File.pm line + 90.n"

    + +

    This message appears when a user use an old + cookie that has been deleted from session database. He has to + re-authenticated itself. + +

    + "The cookie xxxx isn't yet available: <Apache::Session error message>

    + +

    This message appears when an handler can not + access to session database. The real error is reported. diff --git a/modules/lemonldap-ng-manager/Changes b/modules/lemonldap-ng-manager/Changes index 1ca00ae5c..fdc0bbe71 100644 --- a/modules/lemonldap-ng-manager/Changes +++ b/modules/lemonldap-ng-manager/Changes @@ -1,5 +1,8 @@ Revision history for Perl extension Lemonldap::NG::Manager. +0.71 Mon jun 18 22:24:33 2007 + - Bug in javascript : a 'z' is added in regexp + 0.7 Tue jun 12 22:20:54 2007 - Changing storage format due to a bug in Storable module diff --git a/modules/lemonldap-ng-manager/lib/Lemonldap/NG/Manager.pm b/modules/lemonldap-ng-manager/lib/Lemonldap/NG/Manager.pm index c7b197cac..6f4ba643c 100644 --- a/modules/lemonldap-ng-manager/lib/Lemonldap/NG/Manager.pm +++ b/modules/lemonldap-ng-manager/lib/Lemonldap/NG/Manager.pm @@ -16,7 +16,7 @@ use MIME::Base64; our @ISA = qw(Lemonldap::NG::Manager::Base); -our $VERSION = '0.7'; +our $VERSION = '0.71'; sub new { my ( $class, $args ) = @_; diff --git a/modules/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf.pm b/modules/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf.pm index 3011df90c..fbe8b4b08 100644 --- a/modules/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf.pm +++ b/modules/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf.pm @@ -85,9 +85,9 @@ sub getConf { else { my $data; $v =~ s/^\$([_a-zA-Z][_a-zA-Z0-9]*) *=/\$data =/; + $v =~ s/&39;/'/g; eval $v; print STDERR "Lemonldap::NG : Error while reading configuration with $k key: $@\n" if($@); - $data =~ s/&39;/'/g; $conf->{$k} = $data; } } diff --git a/modules/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/_HTML.pm b/modules/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/_HTML.pm index c5e68e0f3..c1412814d 100644 --- a/modules/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/_HTML.pm +++ b/modules/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/_HTML.pm @@ -8,7 +8,7 @@ use AutoLoader qw(AUTOLOAD); require Lemonldap::NG::Manager::_i18n; use Lemonldap::NG::Manager::Conf::Constants; -our $VERSION = '0.28'; +our $VERSION = '0.29'; # TODO: Delete buttons in headers and rules if 'read-only' @@ -131,7 +131,7 @@ function onNodeSelect(nodeId) { v=''; break; case 'both': - k=''; + k=''; v=''; //v=''; break; diff --git a/modules/lemonldap-ng-manager/scripts/lmConfig_File2MySQL b/modules/lemonldap-ng-manager/scripts/lmConfig_File2MySQL index c62fbc2e2..33ff6e2f4 100755 --- a/modules/lemonldap-ng-manager/scripts/lmConfig_File2MySQL +++ b/modules/lemonldap-ng-manager/scripts/lmConfig_File2MySQL @@ -101,7 +101,7 @@ Xavier Guimard, Ex.guimard@free.frE =head1 COPYRIGHT AND LICENSE -Copyright (C) 2007 by LCL Guimard +Copyright (C) 2007 by Xavier Guimard This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, diff --git a/modules/lemonldap-ng-portal/Changes b/modules/lemonldap-ng-portal/Changes index 71a3b3a49..70984e95b 100644 --- a/modules/lemonldap-ng-portal/Changes +++ b/modules/lemonldap-ng-portal/Changes @@ -2,6 +2,7 @@ Revision history for Perl extension Lemonldap::NG::Portal. 0.74 Mon May 14 7:04:48 2007 - Multiple ldap servers can be used + - CDA optimization 0.73 Fri Apr 20 8:48:06 2007 - Bug fix in test (AuthCAS failed) diff --git a/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/CDA.pm b/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/CDA.pm index 717a71b16..9e0ded250 100644 --- a/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/CDA.pm +++ b/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/CDA.pm @@ -28,7 +28,7 @@ sub autoRedirect { my $self = shift; my $tmp = $self->{domain}; $self->{urldc} .= "?" . $self->{cookieName} . "=" . $self->{id} - if ( $self->{urldc} and $self->{urldc} !~ /$tmp$/oi ); + if ( $self->{urldc} and $self->{urldc} !~ m#https?://[^/]*$tmp/#oi ); return $self->SUPER::autoRedirect(@_); }