Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Apache Modules

by larryl (Scribe)
on Mar 13, 2001 at 00:32 UTC ( #63943=note: print w/ replies, xml ) Need Help??


in reply to Apache Modules

And now that I think about it a bit more... If all you're using the CGI object for is to get the remote user name, why not just use:
$r->connection->user()
instead? That will return the user name typed in for Basic authentication. You can also get the password from:
($ret,$pw) = $r->get_basic_auth_pw().


Comment on Re: Apache Modules
Select or Download Code
Re: Re: Apache Modules
by tame1 (Pilgrim) on Mar 13, 2001 at 00:42 UTC

    BINGO!!!!!

    Thanks for the $r->connection->user(); It worked!

    I had searched through Apache.pm, etc. looking for such a thing. Is there a better write-up somewhere? (Before you answer, I own "Programming Apache Modules with Perl" but just haven't read it yet!)

    What does this little button do . .<Click>; "USER HAS SIGNED OFF FOR THE DAY"
        That's actually the real name of the book I have. It's at home so I didn't remember the correct name.

        I also got lucky enough to pick up a Draft Manuscript of "Network Programming with Perl" (Yet another new Lincoln S. book) at the LISA in New Orleans last December ;-) (freebie from the publisher).

        What does this little button do . .<Click>; "USER HAS SIGNED OFF FOR THE DAY"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://63943]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2015-07-07 03:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls