Apache-NNTPGateway
view release on metacpan or search on metacpan
NNTPGateway.pm view on Meta::CPAN
$The_User eq 'anonymous' ||
$The_User eq 'guest' ||
$The_User eq 'admin' ||
$The_User eq 'root'
);
# 2/ Check username validity, by checking if a local (Unix) account
# exists for the user. This check is mainly for posting actions,
# the access protection is not handled in this module.
my $username = (getpwnam($The_User))[6];
# No password entry for this user consider it as anonymous
$The_User = undef if ( !$username && !&is_true( $r->dir_config( 'NNTPGatewayNonLocalPostOk' )));
# 3/ Check if user allowed to use this service ... And build a choice of possible
# From addresses.
if ( $Anonymous_Post_Allowed ) {
# Populate from posters list with some anonymous one...
%From_Posters = %Anonymous_Posters;
# ... and with the real user name too.
$From_Posters{$The_User} = $username if $The_User;
( run in 0.905 second using v1.01-cache-2.11-cpan-49f99fa48dc )