can you determine username?

D

Dan

Morning All,

At the moment, our intranet asks you to sign in twice - once via
..htaccess, and once using our Perl timesheet system. This is a drag,
because every time i add a user I have to change both systems. Is it
possible to determine the username that someone gave when they first
logged in? I like using .htaccess as it passes some of the security
buck to the webserver (and lets me sleep at night).

Interested to hear any ideas.

Dan
 
A

Anno Siegel

Dan said:
Morning All,

At the moment, our intranet asks you to sign in twice - once via
.htaccess, and once using our Perl timesheet system. This is a drag,
because every time i add a user I have to change both systems.

Your users may have a thought or two about that as well.
Is it
possible to determine the username that someone gave when they first
logged in? I like using .htaccess as it passes some of the security
buck to the webserver (and lets me sleep at night).

That's not a Perl question. Study the set of directives that can
go into an .htaccess, with an eye to environment variable setting.
Or ask on a group that concerns itself with web servers.

Anno
 
B

Brian Wakem

Dan said:
Morning All,

At the moment, our intranet asks you to sign in twice - once via
.htaccess, and once using our Perl timesheet system. This is a drag,
because every time i add a user I have to change both systems. Is it
possible to determine the username that someone gave when they first
logged in?


my $user = $ENV{'REMOTE_USER'};

or

use CGI;
my $q = new CGI;
my $user = $q->remote_user();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,261
Messages
2,571,040
Members
48,769
Latest member
Clifft

Latest Threads

Top