Apache+MySQL+htaccess - nxt steps after authentication

This is a discussion on Apache+MySQL+htaccess - nxt steps after authentication within the Linux Web Servers forums, part of the Web Server and Related Forums category; I've set-up Apache to authenticate using htaccess and MySQL. That part works great. I'm trying to figure ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-26-2005
11D.Universe@gmail.com
 
Posts: n/a
Default Apache+MySQL+htaccess - nxt steps after authentication

I've set-up Apache to authenticate using htaccess and MySQL. That part
works great. I'm trying to figure out how to get access (cgi? php?
server config?) to the user_name provided in the login pop-up box to
personalize the pages seen by that user. After authentication, are
there accessible environment variables? Any ideas?

  #2 (permalink)  
Old 05-28-2005
Michael Wojcik
 
Posts: n/a
Default Re: Apache+MySQL+htaccess - nxt steps after authentication


[Followups restricted to comp.infosystems.www.servers.misc.]

In article <1117135796.777109.187140@g49g2000cwa.googlegroups .com>, 11D.Universe@gmail.com writes:
> I've set-up Apache to authenticate using htaccess and MySQL. That part
> works great. I'm trying to figure out how to get access (cgi? php?
> server config?) to the user_name provided in the login pop-up box to
> personalize the pages seen by that user. After authentication, are
> there accessible environment variables? Any ideas?


For CGI, the username should be in the REMOTE_USER environment
variable. From the CGI/1.1 specification:

6.1.12. REMOTE_USER
If the request required authentication using the "Basic" mechanism
(i.e., the AUTH_TYPE metavariable is set to "Basic"), then the value
of the REMOTE_USER metavariable is set to the user-ID supplied. In
all other cases the value of this metavariable is undefined.

REMOTE_USER = *OCTET

This variable is specific to requests made via the HTTP protocol.

Servers SHOULD provide this metavariable to scripts.

--
Michael Wojcik michael.wojcik@microfocus.com

Be sure to push the button of the bottom, and push the button of the
settlement page indicated next only once, there is fear of the bottom
rhinoceros multiplex lesson money. -- Sukebe Net
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:06 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0