/usr/share/perl5/Lemonldap/NG/Portal/UserDBSlave.pm is in liblemonldap-ng-portal-perl 1.9.16-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | ## @file
# Slave userDB mechanism
## @class
# Slave userDB mechanism class
package Lemonldap::NG::Portal::UserDBSlave;
use strict;
use Lemonldap::NG::Portal::_Slave;
use Lemonldap::NG::Portal::Simple;
use Lemonldap::NG::Portal::UserDBNull;
our $VERSION = '1.9.1';
our @ISA = qw(Lemonldap::NG::Portal::UserDBNull);
## @apmethod int setSessionInfo()
# Search exportedVars values in HTTP headers.
# @return Lemonldap::NG::Portal constant
sub setSessionInfo {
my $self = shift;
return PE_FORBIDDENIP
unless ( $self->checkIP );
my %vars = ( %{ $self->{exportedVars} }, %{ $self->{slaveExportedVars} } );
while ( my ( $k, $v ) = each %vars ) {
$v = 'HTTP_' . uc($v);
$v =~ s/\-/_/g;
$self->{sessionInfo}->{$k} = $ENV{$v};
}
return PE_OK;
}
1;
|