User Authentication

User Authentication

Post by Scott Ranza » Tue, 13 Apr 1999 04:00:00



trying again.   I'm trying to set up a directory to work with User
Authentication.

Created password file outside of DocumentRoot.  The file contains a valid
entry(or at least appears so).

Created .htaccess for directory with AuthUserFile listed as above file
AuthType Basic and require valid-user.

I created all this based on the documentation and two similar directories on
the system.

I have checked file/directory permissions(all identical).

Unable to get the authentication working.

.htaccess is listed as the directory file to look for.

Any ideas would be helpful, I'm getting to the end of my rope.

Scott

415 544 0508

 
 
 

User Authentication

Post by Joshua Sliv » Tue, 13 Apr 1999 04:00:00



> trying again.   I'm trying to set up a directory to work with User
> Authentication.
> Created password file outside of DocumentRoot.  The file contains a valid
> entry(or at least appears so).
> Created .htaccess for directory with AuthUserFile listed as above file
> AuthType Basic and require valid-user.
> I created all this based on the documentation and two similar directories on
> the system.
> I have checked file/directory permissions(all identical).
> Unable to get the authentication working.
> .htaccess is listed as the directory file to look for.
> Any ideas would be helpful, I'm getting to the end of my rope.

Please be much more specific about:

1. What does "unable to get the authentication working" mean?

2. What is in the access and error logs?

3. What is in the .htaccess file?

4. How did you generate the password file?

For basic instructions, see:
http://www.apacheweek.com/features/userauth

--
Joshua Slive

http://finance.commerce.ubc.ca/~slive/

 
 
 

User Authentication

Post by Kurt J. Lanz » Wed, 14 Apr 1999 04:00:00



> trying again.   I'm trying to set up a directory to work with User
> Authentication.

> Created password file outside of DocumentRoot.  The file contains a valid
> entry(or at least appears so).

It should contain:

name:grbl

Quote:

> Created .htaccess for directory with AuthUserFile listed as above file
> AuthType Basic and require valid-user.

> I created all this based on the documentation and two similar directories on
> the system.

> I have checked file/directory permissions(all identical).

Identical to what? BTW, what is your OS and webserver (Apache?)

Quote:

> Unable to get the authentication working.

What does the server return when you access it with telnet?
What shows up in the access log? The error log?

Quote:

> .htaccess is listed as the directory file to look for.

Scuse me? What does that mean?
Quote:

> Any ideas would be helpful, I'm getting to the end of my rope.

We need more information (stuff you should have check before, like
above).
 
 
 

User Authentication

Post by Ron Klatchk » Wed, 14 Apr 1999 04:00:00



> trying again.   I'm trying to set up a directory to work with User
> Authentication.

Double check AllowOverride to make sure your .htaccess files are
actually being used.

moo
----------------------------------------------------------------------
          Ron Klatchko - Manager, Advanced Technology Group          
           UCSF Library and Center for Knowledge Management          

 
 
 

User Authentication

Post by Alan J. Flavel » Wed, 14 Apr 1999 04:00:00



> Double check AllowOverride to make sure your .htaccess files are
> actually being used.

A suggestion: Stick something completely bogus into .htaccess, and try
to access any URL from the area that it controls (or should control).
If you don't get an "Internal server error" report, then the .htaccess
file isn't being honoured at all.   Quicker and less confusion-prone
than poring over configuration files.  (Don't forget to take the bogus
entry out afterwards ;-)

Of course, if you don't get the internal server error report, then ou
really _do_ have to pore over the configuration files, but at least you
know you're looking for the right problem then.

good luck