httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marten Lehmann <>
Subject [users@httpd] mod_auth: username is in REMOTE_USER, but where are the groups?
Date Thu, 05 Aug 2010 22:15:31 GMT

I have a pretty standard auth setup:


AuthType Basic
AuthName "restricted"
AuthUserFile /webs/.htpasswd
AuthGroupFile /webs/.htgroups

Require group readwrite




readwrite: user2
readonly: user1
eat-bananas: user2

Now when I access the page, the authorization works fine and the login 
I'm using to authenticate is stored in the env-variable REMOTE_USER by 

But where are the groups? Doesn't Apache store the groups attached to 
the user in an env-variable? This would help me a lot because my 
application needs to know which roles/groups have been assigned to the 
user. So even while for login it is only required to be of the group 
"readwrite" it would be nice to see for the application, that the user 
has additional groups like "eat-bananas".

I hope I can rely on Apache for this, although it wouldn't be that hard 
to do it on my own. I just wouldn't like to update users and 
roles/groups in both, .htaccess files and source code of application.

Kind regards

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message