Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71534 - pam_userdb.so doesn't recognize DB files
Summary: pam_userdb.so doesn't recognize DB files
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: PAM Gentoo Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-17 08:00 UTC by Karl Trygve Kalleberg (RETIRED)
Modified: 2007-04-04 15:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.