samba pam_smbpass & passwd seg fault

Michael McGrew mmcgrew1 at mail.csuchico.edu
Mon Jul 19 03:15:28 UTC 2010


I'm trying to sync the local unix account passwords to the samba
smbpass db using pam. When i run passwd, after it's done it seg faults
and produces a core dump. The odd thing is that it works, the users
local unix password gets synced to the smbpass db, but it seg faults.
Below are my relevant config files. Is this a bug or am I doing
something wrong?

/usr/local/etc/smb.conf

security = user
passdb backend = smbpasswd

cat /etc/pam.d/passwd
#
# $FreeBSD: src/etc/pam.d/passwd,v 1.3.36.1 2010/02/10 00:26:20 kensmith Exp $
#
# PAM configuration for the "passwd" service
#

# passwd(1) does not use the auth, account or session services.

# password
#password       requisite       pam_passwdqc.so         enforce=users
password        required        pam_unix.so             no_warn
try_first_pass nullok
password        optional        /usr/local/lib/pam_smbpass.so
try_first_pass smbconf=/usr/local/etc/smb.conf

[root at localhost ~]# passwd
Changing local password for root
New Password:
Retype New Password:
Segmentation fault: 11 (core dumped)


More information about the freebsd-questions mailing list