Authentication Loop

This is a discussion on Authentication Loop within the Apache Web Server forums, part of the Web Server and Related Forums category; Greetings, I am trying to use basic authentication on a directory, but I am getting an endless authentication loop (the ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2006
fraz
 
Posts: n/a
Default Authentication Loop

Greetings,

I am trying to use basic authentication on a directory, but I am
getting an endless authentication loop (the dialogue box pops up over
and over).

Background info:

Running debian-sarge with apache 2.0.54, mod_auth_mysql 4.3.9-2, MySQL
5.1

Turned on logging for MySQL and can see the queries for the passwords
from the www-data user, so auth_mysql is getting the passes.

Use an .htaccess file to trigger the logon:

AuthName "Welcome"
AuthType Basic
Auth_MySQL_Password_Table mysql_auth
Auth_MySQL_Group_Table mysql_auth
Auth_MySQL_Username_Field username
Auth_MySQL_Password_Field passwd
Auth_MySQL_Group_Field groups
Auth_MySQL_Empty_Passwords off
Auth_MySQL_Authoritative on
Auth_MYSQL on
require group std

I believe I have all the db, table and field names defaulted out (db =
http_auth, table = mysql_auth, fields = username;passwd;groups) and
www-auth user is set up in MySQL with no pass and full access to the
db. I don't think hitting the db is the issue.

I have also tried using just plain old mod_auth and flat files
(.htpasswd, etc.) and I get the same issue. I must be overlooking
something simple.

Any help would be appreciated.

  #2 (permalink)  
Old 01-04-2006
fraz
 
Posts: n/a
Default Re: Authentication Loop

Update: Got straight ahead mod_auth to work by fixing the path to the
password file. Still can't get authorization to work using
mod_auth_mysql (after changing the .htaccess file to use AuthMySQL
again).

Oh, correction to the above - user for apache in mysql is www-data

Keep seeing the password queried in the mysql log, but nothing shows in
the apache error log (which is what had tipped me off to the password
file path issue above) yet the authorization loop goes on.

  #3 (permalink)  
Old 01-05-2006
fraz
 
Posts: n/a
Default Re: Authentication Loop

Alright,
Well it turned out to be that I needed to indicate plaintext as the
encrytion type OR insert DES encrypted passes into the db. Works now.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:14 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0