Re: "DSO load failed" when using mod_authn_dbm for Berkeley DB

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

 



Thanks, Loca!

Yes, I did set AuthDBMUserFile (the whole point for this module is to use a DBM file to do the authn control, isn't it?)

I generate the file called dbm-auth-file using dbmmanger 
$ file dbm-auth-file
dbm-auth-file: Berkeley DB (Hash, version 9, native byte-order)

and then I loaded the module and configured it in a <Directory> as follows,
    AuthType Basic
    AuthName Documents
    AuthBasicProvider dbm
    AuthDBMType DB
    AuthDBMUserFile "/home/tixu/httpd-2.4.20-bin/dbm-auth-file"

and then I got the "DSO load failed" message:
[Thu May 05 18:12:29.915467 2016] [authn_dbm:error] [pid 9107:tid 140031532377856] (20019)DSO load failed: [client 127.0.0.1:54442] AH01754: could not open dbm (type DB) auth file: /home/tixu/httpd-2.4.20-bin/dbm-auth-file

I changed the AuthBasicProvider to be "default" and used "htdbm" to create the DBM files (in which can it generates a .dir and .pag file). And the module goes correctly. 

Thus, I'm sure there it the problem of the "AuthDBMType". But I'm not sure if this is a bug in the implementation of mod_authn_dbm or a problem of some native libs in my system or some incompatibility caused by the dbmmanger? 

Thanks!
Tianyin






On Mon, May 9, 2016 at 11:41 PM, Luca Toscano <toscano.luca@xxxxxxxxx> wrote:
Hi Tianyin,

2016-05-06 3:22 GMT+02:00 Tianyin Xu <tixu@xxxxxxxxxxx>:
Hi,

I'm trying to use mod_authn_dbm, and referring to
https://httpd.apache.org/docs/current/mod/mod_authn_dbm.html

I used dbmmanger to generate the dbm file named dbm-auth-file.
$ file dbm-auth-file
dbm-auth-file: Berkeley DB (Hash, version 9, native byte-order)

According to the manual, the value of AuthDBMType could be "default|SDBM|GDBM|NDBM|DB".

Is "DB" here refer to Berkeley DB?

I set "AuthDBMType DB" and see the following errors in my error_log:
[Thu May 05 18:12:29.915467 2016] [authn_dbm:error] [pid 9107:tid 140031532377856] (20019)DSO load failed: [client 127.0.0.1:54442] AH01754: could not open dbm (type DB) auth file: /home/tixu/httpd-2.4.20-bin/dbm-auth-file

(and the client gets 500 Internal Service Error as you can expected)

Does anyone know about this?

I am a bit ignorant about this module but it seems that you'd need to set https://httpd.apache.org/docs/current/mod/mod_authn_dbm.html#authdbmuserfile to avoid (what is seems) the default path.

Let us know!

Luca 




--
Tianyin XU,
http://cseweb.ucsd.edu/~tixu/

[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