10 More Discussions You Might Find Interesting
1. Linux
Hi All,
could any one point out any open source test-suites for "File cache" testing and as well as performance test suites for the same. Currently my system is up with Linux/ext4.
Regards
Manish (0 Replies)
Discussion started by: hmanish
0 Replies
2. Red Hat
Hi,
I had installed vsftp in rhel5 and i want to restrict all the local users from accessing the ftp.
i want to allow specific users to access the ftp server.
Request you to please help.
Thanks & regards
Arun (1 Reply)
Discussion started by: Arun.Kakarla
1 Replies
3. Linux
Hi all
I saw in Microsoft web site www.SysInternals.com a tool called CoreInfo from able to print out on screen the size of the Data and Instruction caches of your processor, the Locigal to Physical Processor mapping, the number of the CPU sockets. etc..
Do you know if in Linux is available a... (2 Replies)
Discussion started by: manustone
2 Replies
4. Shell Programming and Scripting
Hi ,
How to check whether web server is running from remote machine
How to check whether web server is running on web server itself
Can any one help me soon (1 Reply)
Discussion started by: satheeshkr_cse
1 Replies
5. OS X (Apple)
If I look at the permissions of a folder on a network share while using a local admin account on my computer, then authenticating as a open directory user to connect to the share, they appear completely different than if I had logged in as an OD user and looked at it, it also appears different from... (0 Replies)
Discussion started by: glev2005
0 Replies
6. UNIX for Advanced & Expert Users
Hi There,
i need to creat USERS in UNIX with restricted access to different directories.
for example
user1 should have access to dir1 and dir2
user2 should have access to dir2 and dir3
Please help me (4 Replies)
Discussion started by: ramanan25
4 Replies
7. IP Networking
Hello all
this is general question , if i have web server installed in my local pc and i have client that connecting to that web server
can i force it always to go via the internet network ?
the reason im asking is .. that im noticed when i close my internet connection i still can connect to my... (2 Replies)
Discussion started by: umen
2 Replies
8. UNIX for Dummies Questions & Answers
I'm in the process of setting up two new HP-UX 11.23 i64 servers.
On my existing server (HP-UX B.11.0) we have several users defined to have restricted sam access.
I'm having trouble finding those definitions and copying them over to the new servers. Is this possible - to just copy over the... (1 Reply)
Discussion started by: LisaS
1 Replies
9. Linux
Hi,
I want to create a user and allow its to be able to have telnet session like what you have in the ftp allow and deny. Is this possible
Thanx. (3 Replies)
Discussion started by: kayode
3 Replies
10. UNIX for Advanced & Expert Users
hi,
What is the difference between UBC cache and Metadata cache ? where can i find UBC cache Hits and Metadata cache Hits in hp-ux?
Advanced thanx for the help. (2 Replies)
Discussion started by: sushaga
2 Replies
Plack::Middleware::Auth::Basic(3pm) User Contributed Perl Documentation Plack::Middleware::Auth::Basic(3pm)
NAME
Plack::Middleware::Auth::Basic - Simple basic authentication middleware
SYNOPSIS
use Plack::Builder;
my $app = sub { ... };
builder {
enable "Auth::Basic", authenticator => &authen_cb;
$app;
};
sub authen_cb {
my($username, $password) = @_;
return $username eq 'admin' && $password eq 's3cr3t';
}
DESCRIPTION
Plack::Middleware::Auth::Basic is a basic authentication handler for Plack.
CONFIGURATION
authenticator
A callback function that takes username and password supplied and returns whether the authentication succeeds. Required.
Authenticator can also be an object that responds to "authenticate" method that takes username and password and returns boolean, so
backends for Authen::Simple is perfect to use:
use Authen::Simple::LDAP;
enable "Auth::Basic", authenticator => Authen::Simple::LDAP->new(...);
realm
Realm name to display in the basic authentication dialog. Defaults to restricted area.
LIMITATIONS
This middleware expects that the application has a full access to the headers sent by clients in PSGI environment. That is normally the
case with standalone Perl PSGI web servers such as Starman or HTTP::Server::Simple::PSGI.
However, in a web server configuration where you can't achieve this (i.e. using your application via Apache's mod_cgi), this middleware
does not work since your application can't know the value of "Authorization:" header.
If you use Apache as a web server and CGI to run your PSGI application, you can either a) compile Apache with
"-DSECURITY_HOLE_PASS_AUTHORIZATION" option, or b) use mod_rewrite to pass the Authorization header to the application with the rewrite
rule like following.
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
AUTHOR
Tatsuhiko Miyagawa
SEE ALSO
Plack
perl v5.14.2 2012-06-21 Plack::Middleware::Auth::Basic(3pm)