Raphael Rigo a écrit :
Steve Langasek wrote:
tags 521860 moreinfo
thanks

On Mon, Mar 30, 2009 at 04:49:09PM +0200, Raphael Rigo wrote:
Package: libpam-modules
Version: 1.0.1-9
Severity: grave
Justification: renders package unusable
A recent upgrade in libpam-modules makes it depend on libdb4.7, unfortunately
it seems DB files created with a previous version are NOT compatible with
version 4.7. This makes pam logins based on userdb break silently, with no
error message whatsoever. It would seem this setup is most commonly used for
vsftpd virtual users.
The only apparent solution is to recreate the database file with the newer db
tools.
How did you create the db file initially?  There are not supposed to be any
on-disk incompatibilities with any recent versions of BDB unless you use
transactions, which we don't.


I created it a long time ago (read "years"), probably using db3_load.

Unfortunately, it seems I overwrited the backup I had of the non working
file with a manipulation error. I will check if I have another backup of
it somewhere this evening.

Raphaël

I ran into the same bug.

I have a backup of the inital db file which was created years ago with this command :

db3_load -T -t hash -f login.txt login.db

The workaround was to re-generate the db file using db4.7_load.

Here are some information about the former db file :

# db4.7_dump login.db.bkp
VERSION=3
format=bytevalue
type=hash
db_pagesize=4096
HEADER=END
DATA=END

# db4.7_dump -d a login.db.bkp
In-memory DB structure:
hash: 0x48000 (open called, read-only)
meta_pgno: 0
h_ffactor: 0
h_nelem: 0
h_hash: 0xb7fe02b0
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
page 0: hash metadata: LSN [0][0]: level 0
        magic: 0x61561
        version: 7
        pagesize: 4096
        type: 8
        keys: 0 records: 0
        free list: 0
        last_pgno: 0
        flags: 0
        uid: aa f3 19 0 1 8 0 0 30 f5 cf 49 40 15 0 0 0 0 0 0
        max_bucket: 1
        high_mask: 0x1
        low_mask:  0
        ffactor: 0
        nelem: 0
        h_charkey: 0x5e688dd1
spare points: 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Benoît




--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to