[users@httpd] DBD Authentication using MySQL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

It took me a long time but I was finally able to compile Apache with DBD and
get it "working". That is: it seems to authenticate (no errors indicating
otherwise) but it reports an error about an Authoritative handler.

Searching around to resolve that I was pointed to the AuthBasicAuthoritative
directive, which should be On according to this post:
http://mail-archives.apache.org/mod_mbox/httpd-users/200604.mbox/%3ce498c1660604230723q7ce2ebe9wfd2c4077c0b3524c@xxxxxxxxxxxxxx%3e

Below is the config for the "test" directory and the error I get.
As you can see, AuthBasicAuthoritative is not set so should default to On. (No
.htaccess files in use.) I tried both settings, but the same error keeps
showing up.

Can someone please point me to what I'm overlooking?


Thanks,
Rob


==== httpd.conf ====

DBDriver mysql
DBDParams "host=<dbserver> dbname=<dbauth> user=<user> pass=<pass>"
DBDMin  1
DBDKeep 2
DBDMax  10
DBDExptime 60

<Directory /path/to/test>
    DirectoryIndex index.php index.html index.html.var
    AuthName "TEST area, please logon..."
    AuthType Basic
    AuthBasicProvider dbd
    AuthDBDUserPWQuery "select encrypt(user_passwd) from users where
user_name=%s"
    Require group testusers
    Options Indexes
    IndexOptions FancyIndexing FoldersFirst NameWidth=60
</Directory>


==== error_log ====

[Wed Aug 09 15:46:31 2006] [error] [client 193.173.147.3] access to /test
failed, reason: require directives present and no Authoritative handler.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux