You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ricardo Portilho Proni <ri...@uol.com.br> on 2004/08/14 03:18:08 UTC
[users@httpd] Activate REMOTE_USER Enviroment Variable
How can I activate the enviroment variable REMOTE_USER in Apache 2.0.46
(Red HAT AS 3)?
Thanks in advance.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Activate REMOTE_USER Enviroment Variable
Posted by Joshua Slive <js...@gmail.com>.
On Tue, 17 Aug 2004 15:31:57 -0300, Ricardo Portilho Proni
<ri...@uol.com.br> wrote:
>
>
> Thanks for the tip about the error-log... Diggning into docs and errors
> really work. ;-)
>
> Actually, I realized that the IE already send a username/password to
> the server with the Require directive on.
> But, what I need now, is that everyone gets in, without needing to
> registrate before with the htpasswd (I just need to use the REMOTE_USER
> in the CGI...). Is that possible?
You can look at mod_auth_anon, but I don't think you'll like the way
it works. Other than that, I don't know of any solution.
Joshua.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Activate REMOTE_USER Enviroment Variable
Posted by Ricardo Portilho Proni <ri...@uol.com.br>.
Thanks for the tip about the error-log... Diggning into docs and errors
really work. ;-)
Actually, I realized that the IE already send a username/password to
the server with the Require directive on.
But, what I need now, is that everyone gets in, without needing to
registrate before with the htpasswd (I just need to use the REMOTE_USER
in the CGI...). Is that possible?
Thanks !
On Tue, 2004-08-17 at 10:57, Joshua Slive wrote:
> On Tue, 17 Aug 2004 00:14:23 -0300, Ricardo Portilho Proni
> <ri...@uol.com.br> wrote:
> >
> >
> > Users will access the files in a intranet enviroment, and they are
> > already registered in a NT Domain.
> > I just need to keep in a mysql db who where the users who accessed the
> > files (as the user informed by the IE in the clients).
>
> Well, that's a whole different story. You can check
> modules.apache.org for modules that can do this (search for "nt
> domain" or "smb"). But I have never tried this, so I can't provide
> any help.
>
> Joshua.
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Activate REMOTE_USER Enviroment Variable
Posted by Joshua Slive <js...@gmail.com>.
On Tue, 17 Aug 2004 00:14:23 -0300, Ricardo Portilho Proni
<ri...@uol.com.br> wrote:
>
>
> Users will access the files in a intranet enviroment, and they are
> already registered in a NT Domain.
> I just need to keep in a mysql db who where the users who accessed the
> files (as the user informed by the IE in the clients).
Well, that's a whole different story. You can check
modules.apache.org for modules that can do this (search for "nt
domain" or "smb"). But I have never tried this, so I can't provide
any help.
Joshua.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Activate REMOTE_USER Enviroment Variable
Posted by Ricardo Portilho Proni <ri...@uol.com.br>.
Users will access the files in a intranet enviroment, and they are
already registered in a NT Domain.
I just need to keep in a mysql db who where the users who accessed the
files (as the user informed by the IE in the clients).
Thanks.
On Mon, 2004-08-16 at 23:43, Joshua Slive wrote:
> On Mon, 16 Aug 2004 22:25:11 -0300, Ricardo Portilho Proni
> <ri...@uol.com.br> wrote:
> >
> >
> > May I put the directives on the "/" or "cgi-bin" Directory? I ask that
> > because I will only need the username with running CGIs.
> > I put the following lines in cgi-bin, and got the 500 error.
> >
> > <Directory "/var/www/cgi-bin">
> > Options ExecCGI
> > AllowOverride None
> > AuthType Basic
> > AuthName "Help"
> > Require valid-user
> > AuthAuthoritative On
> > </Directory>
> >
> > One more think, I don't want to require username and password from the
> > users, I just want to know who they are. So, what can I do, for
> > permmiting their access? I must include every new user with htpasswd?
>
> Please define the term "who they are" more precisely. HTTP requests
> don't come with a C.V. ;-) In general, the only thing you can find
> out about someone without asking explicitly is their IP address and
> browser name. (There is a way to configure identd on a client's
> machine to get their userid, but this is highly unreliable.)
>
> To fix your auth problem, start by looking in the apache error log. A
> 500 error is almost always accompanied by a detailed message in the
> error log.
>
> Joshua.
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Activate REMOTE_USER Enviroment Variable
Posted by Joshua Slive <js...@gmail.com>.
On Mon, 16 Aug 2004 22:25:11 -0300, Ricardo Portilho Proni
<ri...@uol.com.br> wrote:
>
>
> May I put the directives on the "/" or "cgi-bin" Directory? I ask that
> because I will only need the username with running CGIs.
> I put the following lines in cgi-bin, and got the 500 error.
>
> <Directory "/var/www/cgi-bin">
> Options ExecCGI
> AllowOverride None
> AuthType Basic
> AuthName "Help"
> Require valid-user
> AuthAuthoritative On
> </Directory>
>
> One more think, I don't want to require username and password from the
> users, I just want to know who they are. So, what can I do, for
> permmiting their access? I must include every new user with htpasswd?
Please define the term "who they are" more precisely. HTTP requests
don't come with a C.V. ;-) In general, the only thing you can find
out about someone without asking explicitly is their IP address and
browser name. (There is a way to configure identd on a client's
machine to get their userid, but this is highly unreliable.)
To fix your auth problem, start by looking in the apache error log. A
500 error is almost always accompanied by a detailed message in the
error log.
Joshua.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Activate REMOTE_USER Enviroment Variable
Posted by Ricardo Portilho Proni <ri...@uol.com.br>.
May I put the directives on the "/" or "cgi-bin" Directory? I ask that
because I will only need the username with running CGIs.
I put the following lines in cgi-bin, and got the 500 error.
<Directory "/var/www/cgi-bin">
Options ExecCGI
AllowOverride None
AuthType Basic
AuthName "Help"
Require valid-user
AuthAuthoritative On
</Directory>
One more think, I don't want to require username and password from the
users, I just want to know who they are. So, what can I do, for
permmiting their access? I must include every new user with htpasswd?
Sorry, I am beginning now to dig a little more in apache and the docs,
learning a few more than the "Hey, it worked !".
Thanks in advance.
On Fri, 2004-08-13 at 22:39, Joshua Slive wrote:
> On Fri, 13 Aug 2004 22:18:08 -0300, Ricardo Portilho Proni
> <ri...@uol.com.br> wrote:
> >
> >
> > How can I activate the enviroment variable REMOTE_USER in Apache 2.0.46
> > (Red HAT AS 3)?
>
> Turn on HTTP authentication using Require and related directives.
>
> Joshua.
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Activate REMOTE_USER Enviroment Variable
Posted by Joshua Slive <js...@gmail.com>.
On Fri, 13 Aug 2004 22:18:08 -0300, Ricardo Portilho Proni
<ri...@uol.com.br> wrote:
>
>
> How can I activate the enviroment variable REMOTE_USER in Apache 2.0.46
> (Red HAT AS 3)?
Turn on HTTP authentication using Require and related directives.
Joshua.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org