From dgaudet@arctic.org Mon Jun 23 15:43:28 1997 Received: from twinlark.arctic.org (twinlark.arctic.org [204.62.130.91]) by hyperreal.com (8.8.5/8.8.5) with SMTP id PAA13866 for ; Mon, 23 Jun 1997 15:43:27 -0700 (PDT) Message-Id: Date: Mon, 23 Jun 1997 15:43:42 -0700 (PDT) From: Dean Gaudet To: apbugs@apache.org Subject: Re: mod_auth-any/708: DBM autorization not working. (fwd) >Number: 774 >Category: pending >Synopsis: DBM autorization not working. >Confidential: yes >Severity: serious >Priority: medium >Responsible: gnats-admin >State: closed >Class: sw-bug >Submitter-Id: unknown >Arrival-Date: Mon Jun 23 15:50:01 1997 >Last-Modified: Sun Jun 29 06:54:36 PDT 1997 >Originator: >Organization: >Release: >Environment: >Description: >How-To-Repeat: >Fix: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: coar State-Changed-When: Sun Jun 29 06:54:36 PDT 1997 State-Changed-Why: Text properly belongs to #708, and has been attached there. >Unformatted: >State-Changed-From-To: open-analyzed >State-Changed-By: dgaudet >State-Changed-When: Sun Jun 22 22:35:03 PDT 1997 >State-Changed-Why: >Which db library did you link against? Did you link against >-ldbm, -ldb, or -lgdbm? dbmmanage unfortunately doesn't adapt >to what you've linked the server with. You need to add "use DB_File" >or "use GDBM_File". At least I think that's the perl magic >needed. > >At any rate, dbm auth definately works... I'm typing this message >to you on a form on a 1.2 server in a dbm auth space. The filename >is specified without the trailing .db. I compiled the server originally with mod_auth_dbm.c instead of mod_auth_db.c. When you use mod_auth_dbm.c, and -lgdbm, you need to to add a use "use GDBM_File" in dbmmanage to create the database file, which will have no extension, then HARD symbolic link it to databasefile .pag and .dir to get it to work. I solved all problems by recompiling with mod_auth_db.c , -lndbm and leaving dbmmanage untouched. I suggest that this entire process is explained more clearly or rethought. I think the docs could be a little more complete in explaining the DBM GDBM NDBM dilemna. Also, what would REALLY help is an a little bit more diagnosis in the error files. The messages you get in ther server logs are completely unhelpful. I had no idea what the problem was. See below for log entry: [Mon Jun 9 12:55:19 1997] access to /home/httpd/users failed for xx.xx.xx.xx, reason: could not open dbm auth file thank you, -Jeff Ellermeyer ------------------------------------------------------- Jeff Ellermeyer Fullerene Productions jeff@fullerene.com http://www.fullerene.com (213) 937-4114 1101 Longwood ave. (213) 937-4114 (fax) Los Angeles, CA 90019 ------------------------------------------------------- ---------- Forwarded message ---------- Date: Mon, 23 Jun 1997 12:16:43 -0700 From: Jeff Ellermeyer To: dgaudet@hyperreal.com Subject: Re: mod_auth-any/708: DBM autorization not working. At 10:35 PM 6/22/97 -0700, you wrote: >