This is a discussion on Migration to Apache 2, DBM issue within the Linux Web Servers forums, part of the Web Server and Related Forums category; I must be missing something simple so please be patient with me. I am trying to migrate from Apache 1....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I must be missing something simple so please be patient with me.
I am trying to migrate from Apache 1.3.27 to 2.0.47 (maybe 48 by the time I get done) I am using mod_auth_dbm to authenticate my users (I have a lot) I also have perl scripts which manage ID/PW stuff and would rather not change all my scripts if I don't have to. From the setup on my system (solaris 8, perl 5.8 on my test bed and 5.61 on my production machine) I think I am using NDBM files. The issue is that when I put the new server in place I get errors of [Mon Nov 03 13:13:09 2003] [error] [client XXX.XXX.XXX.XXX] DBM user UserName not found: /export/vendor/apache/docs/contest/data/results.shtml, referer: (IP snipped, referrer remnoved and User Name changed.) When I put version 1.3.27 back I am authenticated with no problem. Did something major change between 1.3 and 2.0 with regards to auth_dbm? |
|
|||
|
doug@dougis.com (Doug Hubbard) wrote in message news:<8ee79d1d.0311031414.4fcaf063@posting.google. com>...
> I must be missing something simple so please be patient with me. > I am trying to migrate from Apache 1.3.27 to 2.0.47 (maybe 48 by the > time I get done) > I am using mod_auth_dbm to authenticate my users (I have a lot) I also > have perl scripts which manage ID/PW stuff and would rather not change > all my scripts if I don't have to. > From the setup on my system (solaris 8, perl 5.8 on my test bed and > 5.61 on my production machine) I think I am using NDBM files. The > issue is that when I put the new server in place I get errors of > [Mon Nov 03 13:13:09 2003] [error] [client XXX.XXX.XXX.XXX] DBM user > UserName not found: /export/vendor/apache/docs/contest/data/results.shtml, > referer: > (IP snipped, referrer remnoved and User Name changed.) > > When I put version 1.3.27 back I am authenticated with no problem. Did > something major change between 1.3 and 2.0 with regards to auth_dbm? After some more Testing I know something is different. If I change my DBM file from an NDBM to an SDBM auth happens with no issues (so it seems Apache 2 expects SDBM instead of NDBM). How do I get it to support NDBM format (I have many different user DBs and lots of custom code to update/manage them so changing DBM formats would be a LARGE project) |
|
|||
|
More testing (still no luck) I have tried adding the --with-ndbm flag to
configure when I build apache2 as well as adding the Directive of AuthDBMType NDBM and I get a response of (70023)This function has not been implemented on this platform: could not open dbm (type NDBM) auth file: Am I doing something wrong here or is this not possible (are you forced to go from NDBM to SDBM if you want to move from 1.3 to 2.0 in Apache) "Doug Hubbard" <doug@dougis.com> wrote in message news:8ee79d1d.0311040804.332b2661@posting.google.c om... > doug@dougis.com (Doug Hubbard) wrote in message news:<8ee79d1d.0311031414.4fcaf063@posting.google. com>... > > I must be missing something simple so please be patient with me. > > I am trying to migrate from Apache 1.3.27 to 2.0.47 (maybe 48 by the > > time I get done) > > I am using mod_auth_dbm to authenticate my users (I have a lot) I also > > have perl scripts which manage ID/PW stuff and would rather not change > > all my scripts if I don't have to. > > From the setup on my system (solaris 8, perl 5.8 on my test bed and > > 5.61 on my production machine) I think I am using NDBM files. The > > issue is that when I put the new server in place I get errors of > > [Mon Nov 03 13:13:09 2003] [error] [client XXX.XXX.XXX.XXX] DBM user > > UserName not found: /export/vendor/apache/docs/contest/data/results.shtml, > > referer: > > (IP snipped, referrer remnoved and User Name changed.) > > > > When I put version 1.3.27 back I am authenticated with no problem. Did > > something major change between 1.3 and 2.0 with regards to auth_dbm? > > After some more Testing I know something is different. If I change my > DBM file from an NDBM to an SDBM auth happens with no issues (so it > seems Apache 2 expects SDBM instead of NDBM). How do I get it to > support NDBM format (I have many different user DBs and lots of custom > code to update/manage them so changing DBM formats would be a LARGE > project) |