+++ /dev/null
---- apache-mod_auth_mysql-0.3/mod_auth_mysql.c.orig Mon Oct 22 14:15:13 2001
-+++ apache-mod_auth_mysql-0.3/mod_auth_mysql.c Mon Oct 22 14:16:19 2001
-@@ -66,7 +66,7 @@
- * instead.
- *
- * MODULE-DEFINITION-START
-- * Name: mysql_auth_module
-+ * Name: auth_mysql_module
- * ConfigStart
- MYSQL_LIB="-L/usr/local/lib/mysql -lmysqlclient -lm"
- if [ "X$MYSQL_LIB" != "X" ]; then
-@@ -358,7 +358,7 @@
- { NULL }
- };
-
--module mysql_auth_module;
-+module auth_mysql_module;
-
- /*
- * Fetch and return password string from database for named user.
-@@ -478,7 +478,7 @@
- {
- mysql_auth_config_rec *sec =
- (mysql_auth_config_rec *)ap_get_module_config (r->per_dir_config,
-- &mysql_auth_module);
-+ &auth_mysql_module);
- conn_rec *c = r->connection;
- const char *sent_pw, *real_pw;
- int res;
-@@ -523,7 +523,7 @@
- {
- mysql_auth_config_rec *sec =
- (mysql_auth_config_rec *)ap_get_module_config(r->per_dir_config,
-- &mysql_auth_module);
-+ &auth_mysql_module);
- char *user = r->connection->user;
- int method = r->method_number;
-
-@@ -579,7 +579,7 @@
- }
-
-
--module mysql_auth_module = {
-+module auth_mysql_module = {
- STANDARD_MODULE_STUFF,
- NULL, /* initializer */
- create_mysql_auth_dir_config, /* dir config creater */
+++ /dev/null
-This document describes how to use group-based authorization using my
-version of mod_auth_mysql.c. This version is based heavily on my own
-version of mod_auth_msql.c, which was widely distributed prior to the
-one currently shipped with Apache.
-
-There are two options to using groups. You can put the "user_group"
-field into the same table as the user database if each user is in only
-one group, or you can have a separate table that contains the fields
-"user_name" and "user_group" if each user is a member of multiple
-groups.
-
-If the user_group field is part of the full user table, the table has
-three fields at least: user_name, user_group, user_passwd. The
-user_group field must be "PRIMARY KEY" in the user database containing
-a password. The htaccess file would be this:
-
-AuthName My Authorization
-AuthType Basic
-AuthGroupFile /dev/null
-AuthMySQLHost localhost
-AuthMySQLDB authdata
-AuthMySQLUserTable user_info
-AuthMySQLGroupField user_group
-require group admin
-
-If you have a separate database for groups, the two tables would be
-
-user_info: user_name, user_passwd (user_name must be PRIMARY KEY)
-user_group: user_name, user_group (user is not PRIMARY KEY, as we have
- multiple tuples for user_name,user_group to let a user be in
- multiple groups)
-
-and htaccess would have this:
-
-AuthName My Authorzation
-AuthType Basic
-AuthGroupFile /dev/null
-AuthMySQLHost localhost
-AuthMySQLDB authdata
-AuthMySQLUserTable user_info
-
-AuthMySQLGroupTable my_groups
-AuthMySQLGroupField user_group
-require group admin
-
-
-
-Assuming that the required group name is "admin".