二、建数据库用户
mysql>mysql> GRANT SELECT,INSERT,UPDATE,DELETE ON authz_db.* TO 'mysqlauthuser'@'localhost' IDENTIFIED BY 'some_pass';
三、创建表
create table users
(
uid int unsigned not null auto_increment,
login varchar(20) not null,
password varchar(50) not null,
user_name varchar(50) character set utf8 not null,
enabled bool not null default true,
primary key (uid),
unique key uidx_users_login (login)
)
type = MYISAM;
备注2
这东东折腾了好一会儿,直到在
http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/
找到答案
While upgrading Apache to version 2.2.4-2 for a subversion upgrade (version 1.4.4dfsg1-1) I ran into errors with my auth_pgsql (or any other auth_mysql, auth_ldap or auth_* module) setup:
“Internal error: pcfg_openfile() called with NULL filename”
This is caused by auth_basic and stops the authentication and authorisation process. Adding the following directive to your auth_pgsql or auth_ldap config file solves the problem:
“AuthBasicAuthoritative Off”
It disables basic authorisation being authoritive for the authorisation process. The errors will still be visible in your logfiles, but the authorisation scheme works as normal.
大意貌似是auth_basic模块的问题。