Can you try with .htgroup as well as .htpasswd and see if it does the same
thing?

What errors are in the /var/logs/httpd/error.log file or whatever the error
file is if your running virtual hosts....

thanks,
George Vieira
Network Administrator
http://www.citadelcomputer.com.au
PGP Fingerprint :       43DC 92AC 1A82 27B2 E97B  52F1 B60F 301A 38A9 A10C
PGP KeyID:              0x38A9A10C


-----Original Message-----
From: Howard Lowndes [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 20, 2000 12:35 PM
To: Mail List - SLUG
Subject: [SLUG] Apache authentication not reading file?


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


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to