Catch ENV variables to fill session for all UserDB modules
We have a special trick in UserDBLDAP :
# Special code to catch env var
if ( my $tmp = $ENV{$_} ) {
$tmp =~ s/[\r\n]/ /gs;
$self->{sessionInfo}->{$_} = $tmp;
}
else {
$self->{sessionInfo}->{$_} =
$self->{ldap}
->getLdapValue( $self->{entry}, $self->{exportedVars}->{$_} )
|| "";
}
This should be available for all UserDB modules. So I propose to put the code in Portal/Simple.pm in setSessionInfo. Then UserDbEnv will not be usefull anymore, UserDBNull will be ok!