• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

User Authentication

I'd like to setup user authentication using linux/apache/cgi/perl using
the authent method from apache (already done) .

How can i get the current logged in username via cgi ?

would need to have it for further logics (read,write,logging etc)

Many thanks
0
MKrauss
Asked:
MKrauss
1 Solution
 
ahoffmannCommented:
> How can i get the current logged in username via cgi ?
are you talking about BasicAuth (like .htaccess)?
 in perl something like:

use CGI;
use HTTPD::Authen;
$q=new CGI;
($u,$p)=HTTPD::Authen::Basic->parse($q->headers("authorization"));
0
 
MKraussAuthor Commented:
Great !
many thanks
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now