Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43299 - PAM unable pam_userdb.so dbm_firstkey (when i try to login as virtual user in vsftpd and so i am unable to login to ftp server)
Summary: PAM unable pam_userdb.so dbm_firstkey (when i try to login as virtual user in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PAM Gentoo Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-29 09:59 UTC by egolf
Modified: 2004-09-30 13:50 UTC (History)
1 user (show)

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 egolf 2004-02-29 09:59:32 UTC
The folloing massage: 
Feb 28 12:32:08 baby-tux vsftpd: PAM unable to dlopen(/lib/security/pam_userdb.so)
Feb 28 12:32:08 baby-tux vsftpd: PAM [dlerror: /lib/security/pam_userdb.so: undefined symbol: dbm_firstkey]
Feb 28 12:32:08 baby-tux vsftpd: PAM adding faulty module: /lib/security/pam_userdb.so
while i tried to login to the vsftpd ftp server whit a virtual user declared in the a db file created using:
db4.1_load -T -t hash -f logins.txt /etc/vsftpd_login.d .

Reproducible: Always
Steps to Reproduce:
1. setup vsftpd and pam following documentation:
/usr/share/doc/vsftpd-1.2.0-r1/examples/VIRTUAL_USERS/README
2. run vsftpd &
3. ftp localhost 10021
Actual Results:  
I got messages:
Feb 28 12:32:08 baby-tux vsftpd: PAM unable 
to dlopen(/lib/security/pam_userdb.so)
Feb 28 12:32:08 baby-tux vsftpd: PAM [dlerror:
/lib/security/pam_userdb.so: undefined symbol: dbm_firstkey]
Feb 28 12:32:08 baby-tux vsftpd: PAM adding faulty module:
/lib/security/pam_userdb.so
and couldn't login to ftp server (vsftpd, running on my system)

Expected Results:  
Let me login!
Reading username and password from the db file i created (like described in the
Vsftpd documentation)

=here are the versions of the programs:================
sys-libs/pam-0.77  +berkdb +pwdb -(selinux)
sys-apps/pam-login-3.14  +nls -(selinux)  
sys-libs/db-4.1.25_p1-r3  -doc +java +tcltk  
net-ftp/vsftpd-1.2.0-r1  +ipv6 +pam +tcpd  
-------------------------------------------------------

=cat /etc/pam.d/vsftpd=================================
#%PAM-1.0
auth       required     /lib/security/pam_listfile.so item=user
sense=deny file=/etc/vsftpd/denied_users onerr=succeed
auth       sufficient   /lib/security/pam_userdb.so icase
db=/etc/vsftpd_login.db
auth       required     /lib/security/pam_pwdb.so shadow nullok
try_first_pass
auth       required     /lib/security/pam_shells.so
account    required     /lib/security/pam_pwdb.so
session    required     /lib/security/pam_pwdb.so
----------------------------------------------------

====================================================

-----------------------------------------------------

=cat /etc/vsftpd/vsftpd.conf=========================
anonymous_enable=NO
 
local_enable=YES
write_enable=NO
 
anon_upload_enable=NO
anon_mkdir_write_enable=NO
anon_other_write_enable=NO
 
chroot_local_user=YES
 
guest_enable=YES
guest_username=virtual
 
listen=YES
listen_port=10021
 
xferlog_enable=NO
pam_service_name=vsftpd
----------------------------------------------

=emerge info==================================

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3)
=================================================================
System uname: 2.6.3-tuxy i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=pentium4 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /usr/X11R6/bin/startx /etc/env.d"
CXXFLAGS="-O3 -mcpu=pentium4 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi alsa apache2 apm avi berkdb bidi bonobo cdr crypt cups
curl dga directfb dvd encode esd evo firebird flac flash foomaticdb gb gdbm gif
gnome gpm gtk gtk2 imlib ipv6 java jpeg ldap libg++ libwww mad mikmod motif mpeg
mysql ncurses nls oggvorbis opengl pam pcmcia pdflib perl png pwdb python
quicktime readline samba scanner sdl slang spell ssl tcltk tcpd truetype usb x86
xinerama xml2 xmms xv zlib"
Comment 1 SpanKY gentoo-dev 2004-02-29 14:41:52 UTC
no one change the summary until the bugzilla peeps can figure out what's up with it
Comment 2 egolf 2004-03-25 04:40:53 UTC
i fixed the problem by:
emerge -C db
emerge pam
emerge db
:o) now everything works!
http://forums.gentoo.org/viewtopic.php?t=134374&highlight=vsftpd
Comment 3 Jeffrey Forman (RETIRED) gentoo-dev 2004-09-30 13:50:24 UTC
Looks fixed by the user, this bug is 8 months old anyways. Bugger if it is recurring.

-Jeffrey