You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nathan Folsom-Kovarik <nf...@afilias.info> on 2002/11/08 00:20:54 UTC

[users@httpd] group environment variable or somesuch

How do find out -- from a script or SetEnvIf perspective -- which Group a user has been authenticated under?  I'm using basic authentication with group and username/pw files.  Can't find anything in mod_auth or mod_setenvif or environment variable docs...

Thanks,
Nathan Folsom-Kovarik

Re: [users@httpd] group environment variable or somesuch

Posted by Nathan Folsom-Kovarik <nf...@afilias.info>.
I'm assuming you meant mod_setenvif -- but I've already looked into that.  I
can't see any way to specify "group".  Of course, "user" is easy, but that
doesn't help.

Plain old SetEnv is not conditional on request and doesn't help.

I can't hack mod_auth, that's not a solution my boss would accept.

Any other ideas?  Mainly I'm looking for something like
     SetEnvIf Remote_User "myuser" new_var=myuser
except with _groups_.  Something that was standard mod_auth functionality
would also be fine.  Some idea I haven't heard of would be lovely, too....

Thanks,
Nathan Folsom-Kovarik



----- Original Message -----
From: "Kirk Jackson" <ki...@mcs.vuw.ac.nz>
To: <us...@httpd.apache.org>
Sent: Thursday, November 07, 2002 10:58 PM
Subject: Re: [users@httpd] group environment variable or somesuch


>
> We did something similar to this by setting an environment variable (see
the mod_setenv for examples). You could probably modify mod_auth to set the
env variable when a 'require group' succeeds.
>
>
> Kirk
>
> On Thu, 7 Nov 2002 18:20:54 -0500
> "Nathan Folsom-Kovarik" <nf...@afilias.info> wrote:
>
> > How do find out -- from a script or SetEnvIf perspective -- which Group
a user has been authenticated under?  I'm using basic authentication with
group and username/pw files.  Can't find anything in mod_auth or
mod_setenvif or environment variable docs...
> >
> > Thanks,
> > Nathan Folsom-Kovarik
> >
>
> ---------------------------------------------------------------------
> 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] group environment variable or somesuch

Posted by Kirk Jackson <ki...@mcs.vuw.ac.nz>.
We did something similar to this by setting an environment variable (see the mod_setenv for examples). You could probably modify mod_auth to set the env variable when a 'require group' succeeds.


Kirk

On Thu, 7 Nov 2002 18:20:54 -0500
"Nathan Folsom-Kovarik" <nf...@afilias.info> wrote:

> How do find out -- from a script or SetEnvIf perspective -- which Group a user has been authenticated under?  I'm using basic authentication with group and username/pw files.  Can't find anything in mod_auth or mod_setenvif or environment variable docs...
> 
> Thanks,
> Nathan Folsom-Kovarik
> 

---------------------------------------------------------------------
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