Re: [users@httpd] apache server - username and password

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 12/7/05 9:25 PM, "sean@xxxxxxxxxx" <sean@xxxxxxxxxx> wrote:

> It was thus said that the Great Joshua Slive once stated:
>> 
>> On 12/7/05, Senthil Nathan <rsennat@xxxxxxxxx> wrote:
>>> hi all,
>>> 
>>> my application running on Apache 2 on mod_perl 2 uses htaccess to
>>> authenticate. so i need to get the username and the password who is
>>> authenticated to login for passing it to a different command in the scrip=
>> t.
>> 
>> You should probably ask on the mod_perl list.  Normal cgi scripts
>> can't do this for security reasons, but mod_perl has access to apache
>> internals, so there might be a way.

See here as a start.
http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_user_

Also, this page is useful for mod_perl 2.0 related API issues.
http://perl.apache.org/docs/2.0/api/index.html

Sean

>   Well, CGI scripts are passed the authentication method (Basic or Digest)
> and the userid in the environment variables:
> 
> AUTH_TYPE
> REMOTE_USER
> 
>   What is not passed is the password the user typed.
> 
>   -spc
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux