From owner-freebsd-current@FreeBSD.ORG Thu Jul 10 01:26:47 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 0549237B404 for ; Thu, 10 Jul 2003 01:26:47 -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 E6F0543F93 for ; Thu, 10 Jul 2003 01:26:45 -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 h6A8Qg5h018197; Thu, 10 Jul 2003 09:26:43 +0100 (BST) (envelope-from dom@cus.org.uk) Received: (from dom@localhost) by cus.org.uk (8.12.6/8.12.6/Submit) id h6A8Qg3v018196; Thu, 10 Jul 2003 09:26:42 +0100 (BST) Date: Thu, 10 Jul 2003 09:26:42 +0100 From: Dominic Marks To: Dag-Erling Sm?rgrav Message-ID: <20030710082642.GA17776@cus.org.uk> References: <20030706224753.GA12877@cus.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i cc: freebsd-current@freebsd.org Subject: Re: 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: Thu, 10 Jul 2003 08:26:47 -0000 On 10/07/2003 08:46, Dag-Erling Sm?rgrav wrote: > Dominic Marks writes: > > 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 > > The module probably lacks dependency information. I'll try to figure > it out later today. I rebuilt OpenPAM with debugging info and looked at what was happening. It turned out that it was not able to resolve pam_get_pass from the module and would then state (confusingly) that the module didnt exist 'no pam_pgsql.so found' is bogus. The port has patches which remove these symbols and I managed to get it working (mostly) by putting those functions back. Now I can successfully get past authentication with this module but when I try and login to dovecot it passes down the PAM chain into pam.d/other and seems to choke. I suppose this is because there is no local user which matches the user/pass and pam_unix doesn't like that. If I remove pam_unix from the chain then Dovecot (my test program) crashes while trying to continue post-auth. If you'd like I can provide lots of logged openpam debug info and do testing. > DES > -- > Dag-Erling Sm?rgrav - des@des.no > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" Thanks, -- Dominic