PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > Apache+MySQL+htaccess - nxt steps after authentication
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

Apache+MySQL+htaccess - nxt steps after authentication

Réponse
 
LinkBack Outils de la discussion
Vieux 26/05/2005, 22h01   #1
11D.Universe@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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?

  Réponse avec citation
Vieux 28/05/2005, 22h36   #2
Michael Wojcik
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
Vieux 28/05/2005, 22h36   #3
Michael Wojcik
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h48.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10932 seconds with 11 queries