You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jean BONNOT <hb...@link2mail.net> on 2006/01/26 14:30:41 UTC

[users@httpd] apache 2.0.54 => 2.2 migration & auth files headaches

Hello

I'm migrating an apache 2.0.54 to 2.2
I've corrected nearly all configs related problems
but just can't solve this one : my web server just
deny me from using or not any authentication with
groups. It's for a small familly web site so I have
just a few users: I use text passwd files, no groups.

Since 2.2 version, nobody can login no more and httpd just say :
configuration error:  couldn't check access.  No groups file?: /
(whenever I enable/disable AuthGroupFile and/or mod_authz_groupfile)


Before migrating, my auth conf was this :
----------------------------------
    AuthUserFile     /etc/apache/.htpasswd
    AuthGroupFile    /dev/null
    AuthName         "Private Area"
    AuthType         Basic
    <Limit GET POST HEAD>
      order          deny,allow
      require        valid-user
      deny from      all
    </Limit>
--------------

after :
----------------------------------
    AuthUserFile     /etc/apache/.htpasswd
    #AuthGroupFile    /dev/null
    AuthBasicProvider  file
    AuthName         "Private Area"
    AuthType         Basic
    <Limit GET POST HEAD>
      order          deny,allow
      require        valid-user
      deny from      all
    </Limit>
--------------

All my modules are :
Compiled in modules:
  core.c
  mod_authn_file.c
  mod_authz_host.c
  mod_authz_groupfile.c  # just added it, in case....
  mod_auth_basic.c
  mod_deflate.c
  mod_log_config.c
  mod_env.c
  mod_expires.c
  mod_headers.c
  mod_setenvif.c
  event.c
  http_core.c
  mod_mime.c
  mod_cgi.c
  mod_vhost_alias.c
  mod_dir.c
  mod_actions.c
  mod_alias.c
(there are all statically linked; OS is a FreeBSD 5.4).

Can someone point me my error ?

T.I.A.		Z.



---------------------------------------------------------------------
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] apache 2.0.54 => 2.2 migration & auth files headaches

Posted by Jean Bonnot <hb...@link2mail.net>.
Joshua Slive a écrit :

>>>>All my modules are :
>>>>Compiled in modules:
>>>> mod_authn_file.c
>>>> mod_authz_host.c
>>>> mod_authz_groupfile.c  # just added it, in case....
>>>> mod_auth_basic.c
>>>>
>>>>
>>>>        
>>>>
>>>You also need mod_authz_owner.
>>>
>>>
>>>      
>>>
>>no luck with mod_authz_owner only, so I have also
>>added  mod_authz_default and mod_authz_user and
>>it finally worked. Don't have time to play to find exactly
>>wich one discard error message. But at least,  it works.
>>    
>>
>
>Oops - did I say "mod_authz_owner"?  I meant "mod_authz_user".  I'm
>always getting those two mixed up.  So there is no reason to search
>for the problem.
>  
>
I've took the time to recompile my 2.2 with only these 3 mods :
  mod_authn_file
  mod_authz_user
  mod_auth_basic
and I have no more stranges errors: these are the minimal set for 
authentication.

Thanks.      J&B



---------------------------------------------------------------------
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] apache 2.0.54 => 2.2 migration & auth files headaches

Posted by Joshua Slive <jo...@slive.ca>.
On 1/26/06, Jean Bonnot <hb...@link2mail.net> wrote:
> Joshua Slive a écrit :
>
> >On 1/26/06, Jean BONNOT <hb...@link2mail.net> wrote:
> >
> >
> >>All my modules are :
> >>Compiled in modules:
> >>  mod_authn_file.c
> >>  mod_authz_host.c
> >>  mod_authz_groupfile.c  # just added it, in case....
> >>  mod_auth_basic.c
> >>
> >>
> >
> >You also need mod_authz_owner.
> >
> >
> no luck with mod_authz_owner only, so I have also
> added  mod_authz_default and mod_authz_user and
> it finally worked. Don't have time to play to find exactly
> wich one discard error message. But at least,  it works.

Oops - did I say "mod_authz_owner"?  I meant "mod_authz_user".  I'm
always getting those two mixed up.  So there is no reason to search
for the problem.

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] apache 2.0.54 => 2.2 migration & auth files headaches

Posted by Jean Bonnot <hb...@link2mail.net>.
Joshua Slive a écrit :

>On 1/26/06, Jean BONNOT <hb...@link2mail.net> wrote:
>  
>
>>All my modules are :
>>Compiled in modules:
>>  mod_authn_file.c
>>  mod_authz_host.c
>>  mod_authz_groupfile.c  # just added it, in case....
>>  mod_auth_basic.c
>>    
>>
>
>You also need mod_authz_owner.
>  
>
no luck with mod_authz_owner only, so I have also
added  mod_authz_default and mod_authz_user and
it finally worked. Don't have time to play to find exactly
wich one discard error message. But at least,  it works.

thx.      J&B.





---------------------------------------------------------------------
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] apache 2.0.54 => 2.2 migration & auth files headaches

Posted by Joshua Slive <jo...@slive.ca>.
On 1/26/06, Jean BONNOT <hb...@link2mail.net> wrote:
> All my modules are :
> Compiled in modules:
>   mod_authn_file.c
>   mod_authz_host.c
>   mod_authz_groupfile.c  # just added it, in case....
>   mod_auth_basic.c

You also need mod_authz_owner.

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