OpenPAM dynamic module loading not working ?
Dominic Marks
dom at cus.org.uk
Sun Jul 6 15:47:55 PDT 2003
Hey,
I'm trying to setup authentication against a PostgreSQL Database with
OpenPAM and pam_pgsql. I have installed the pam_pgsql port and
configured a few services (samba, pop3) to authenticate against the DB.
Whenever an authentication request is made I get the following errors
(regardless of the source service):
Samba:
Jul 7 22:22:18 bacon smbd[67333]: in openpam_load_module(): no pam_pgsql.so found
Jul 7 22:22:18 bacon smbd[67333]: [2003/07/07 22:22:18, 0] passdb/pampass.c:smb_pam_error_handler(71)
Jul 7 22:22:18 bacon smbd[67333]: smb_pam_error_handler: PAM: Init Failed : failed to load module
Dovecot:
Jul 7 22:10:40 bacon dovecot-auth: in openpam_load_module(): no pam_pgsql.so found
Jul 7 22:10:40 bacon dovecot-auth: PAM: pam_start(example) failed: failed to load module
I have checked I installed things properly, I also created the link
although that shouldn't be required (from looking at the source).
bacon# ls -l /usr/lib/pam_pgsql.so*
lrwxr-xr-x 1 root wheel 14 Jul 7 21:45 /usr/lib/pam_pgsql.so -> pam_pgsql.so.2
-r--r--r-- 1 root wheel 14052 Jan 12 10:46 /usr/lib/pam_pgsql.so.2
The pam.d file I'm using for Samba:
bacon# cat /etc/pam.d/samba
#
# /etc/pam.d/samba
#
auth required pam_pgsql.so
account required pam_pgsql.so
password required pam_pgsql.so
I can't find anything wrong in my configuration, but maybe I'm being
stupid. If someone has any ideas on a resolution, I'd appreciate it.
Thanks,
--
Dominic
<dom at cus.org.uk> <dominic.marks at npl.co.uk>
More information about the freebsd-current
mailing list