Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 71534

Summary: pam_userdb.so doesn't recognize DB files
Product: Gentoo Linux Reporter: Karl Trygve Kalleberg (RETIRED) <karltk>
Component: [OLD] Core systemAssignee: PAM Gentoo Team (OBSOLETE) <pam-bugs+disabled>
Status: RESOLVED TEST-REQUEST    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-11-17 08:00:14 UTC
As per various instructions on the net, I use db3_load (and db4_load) as follows:
db3_load -T -f cram-passwords.txt -t hash cram-passwords.db

Then I add the line:
auth   required    pam_userdb.so    db=/etc/courier-imap/cram-passwords.db

But when trying to use that file, I get:
[pam_userdb] user_lookup: could not open database `/etc/courier-imap/cram-passwords.db'

The .db file is:
/etc/courier-imap/cram-passwords.db: Berkeley DB (Hash, version 7, native byte-order)

And db4_dump tells me cram-passwords.db contains what it's supposed to.


Does our pam_userdb.so even support version 7 Berkeley DB files?
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2005-02-25 11:51:37 UTC
It builds against db-4.1, without backwards compat if that will help ...
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-21 08:46:17 UTC
Is this still a problem, while using the right db4.1_load command?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-04-04 15:02:12 UTC
This isn't going anywhere. If you can reproduce this w/ sys-auth/pam_userdb
(yes it's a separate package now) and current ~arch PAM, reopen this bug.