On Mon, Mar 14, 2005 at 12:27:10AM -0800, C.Y.M wrote:
Thanks for the debug patch. I have applied it and reproduced the error, but I do not get any new debug info in the log. I am running apache2 in debug mode.
Out of curiosity, how do you define the access to each directory? Are you defining the MySQL options within the .htaccess file or the apache2.conf file? What kind of mysql database structure are you using? I have mine setup using separate tables (one for user and one for group). The user table defines "username" and "passwd" with username as the primary key. The group table contains "username" and "groups" with both fields set to the primary keys. Note: I have tested using a single table database structure and got the same results (username, passwd, and groups in a single table).
The MySQL username and pass is defined in the apache2.conf and the MySQL directives are set within the "sites-available" configs.
Example of apache2.conf:
--SNIP--
# Mod Auth MySQL Settings Auth_MySQL_Info localhost mysql_auth password Auth_MySQL_General_DB http_auth2
--SNIP--
<Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride AuthConfig Auth_MySQL on Auth_MySQL_Empty_Passwords off Auth_MySQL_Encryption_Types SHA1Sum Auth_MySQL_Password_Table user_info Auth_MySQL_Group_Table user_group Order allow,deny Allow from all </Directory>
--SNIP--
Then.. the .htaccess is like this:
AuthName "Authenticated Zone" AuthType Basic require group adm
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]