OpenPAM dynamic module loading not working ?

From: Dominic Marks <dom_at_cus.org.uk>
Date: Sun, 6 Jul 2003 23:47:53 +0100
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>
Received on Sun Jul 06 2003 - 13:47:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:14 UTC