From e42f1febefee761e0b971131e4254723574fa2c9 Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Wed, 5 Nov 2008 14:55:02 +0000 Subject: [PATCH] LEMONLDAP::NG : * IP view in Manager/Sessions.pm * Bug in CGI.pm : local cache was erased each time * Bug in purgeCentralCache : timeout was always 7200 --- .../lib/Lemonldap/NG/Handler/CGI.pm | 6 +- .../lib/Lemonldap/NG/Manager/Sessions.pm | 74 +++++++++++++++++-- .../example/scripts/purgeCentralCache | 2 +- 3 files changed, 73 insertions(+), 9 deletions(-) diff --git a/modules/lemonldap-ng-handler/lib/Lemonldap/NG/Handler/CGI.pm b/modules/lemonldap-ng-handler/lib/Lemonldap/NG/Handler/CGI.pm index 416695b44..2325904a7 100644 --- a/modules/lemonldap-ng-handler/lib/Lemonldap/NG/Handler/CGI.pm +++ b/modules/lemonldap-ng-handler/lib/Lemonldap/NG/Handler/CGI.pm @@ -10,7 +10,7 @@ our @ISA = qw(CGI); use Lemonldap::NG::Handler::SharedConf qw(:all); -our $VERSION = '0.1'; +our $VERSION = '0.11'; sub new { my $class = shift; @@ -93,6 +93,10 @@ use Lemonldap::NG::Handler::SharedConf qw(:locationRules); our @ISA = qw(Lemonldap::NG::Handler::SharedConf); +sub localInit { + 1; +} + sub lmLog { my ( $self, $mess, $level ) = @_; $mess =~ s/^.*HASH[^:]*:/__PACKAGE__/e; diff --git a/modules/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Sessions.pm b/modules/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Sessions.pm index 92d2fb3ee..18d55258e 100755 --- a/modules/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Sessions.pm +++ b/modules/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Sessions.pm @@ -105,7 +105,7 @@ sub new { my ( $class, $args ) = @_; my $self = $class->SUPER::new($args) or _abort( 'Unable to start ' . __PACKAGE__, 'See Apache logs for more' ); - foreach (qw(jqueryUri jquerySimpleTreeUri personnalCss imagePath)) { + foreach (qw(jqueryUri jquerySimpleTreeUri personnalCss imagePath protection)) { $self->{$_} = $args->{$_}; # or print STDERR "Warning, $_ is not set, falling to default value\n"; } eval "use $globalStorage"; @@ -191,11 +191,11 @@ sub process { ) { last if ( ( keys %{ $byUid->{$uid} } ) == 1 ); - print "
  • $uid