I seem to have a problem getting user authentication to work in Apache.
It appears that even though I have the AuthUserFile pointing to the
correct file, that file is not being accessed by Apache and hence the auth
is failing.
This is the piece out of /etc/httpd/conf/httpd.conf:
<Directory /home/httpd/inhouse>
AuthName "LANNet internal use"
AuthType Basic
AuthUserFile /etc/httpd/.htpasswd
require valid-user
Options FollowSymLinks Indexes
AllowOverride All
Order allow,deny
Allow from all
MetaFiles on
MetaDir .web
MetaSuffix .meta
</Directory>
>From http://lannet.com.au/server-info I get:
Module Name: mod_auth.c
Content handlers: none
Configuration Phase Participation: Create Directory Config
Request Phase Participation: Verify User ID, Verify User Access
Module Directives:
AuthUserFile - text file containing user IDs and passwords
AuthGroupFile - text file containing group names and member
user IDs
AuthAuthoritative - Set to 'off' to allow access control to be
passed along to lower modules if the UserID is not known to
this module
Current Configuration:
httpd.conf
<Directory /home/httpd/inhouse>
AuthUserFile /etc/httpd/.htpasswd
</Directory>
The file exists:
[root@keep httpd]# ls -l /etc/httpd/.htpasswd
-rw-r--r-- 1 root root 21 Nov 20 12:20
/etc/httpd/.htpasswd
but when I try to do a login thru the browser I notice that an ls -lu on
this file shows that the access time does not change which to my mind
tells me that Apache is not reading the file, but I can't see why not.
--
Howard.
______________________________________________________
LANNet Computing Associates <http://www.lannet.com.au>
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug