From owner-freebsd-current@FreeBSD.ORG Sun Jul 6 15:47:55 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D94437B401 for ; Sun, 6 Jul 2003 15:47:55 -0700 (PDT) Received: from cus.org.uk (host213-106-240-81.no-dns-yet.ntli.net [213.106.240.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B9AF43FBD for ; Sun, 6 Jul 2003 15:47:54 -0700 (PDT) (envelope-from dom@cus.org.uk) Received: from cus.org.uk (localhost.cus.org.uk [127.0.0.1]) by cus.org.uk (8.12.6/8.12.6) with ESMTP id h66Mlr5h013050 for ; Sun, 6 Jul 2003 23:47:53 +0100 (BST) (envelope-from dom@cus.org.uk) Received: (from dom@localhost) by cus.org.uk (8.12.6/8.12.6/Submit) id h66Mlr6X013049 for freebsd-current@freebsd.org; Sun, 6 Jul 2003 23:47:53 +0100 (BST) Date: Sun, 6 Jul 2003 23:47:53 +0100 From: Dominic Marks To: freebsd-current@freebsd.org Message-ID: <20030706224753.GA12877@cus.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: OpenPAM dynamic module loading not working ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jul 2003 22:47:55 -0000 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