From owner-freebsd-current Sun Feb 9 16:58: 4 2003 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 6035337B401 for ; Sun, 9 Feb 2003 16:58:03 -0800 (PST) Received: from naboo.blacktrap.net (212.68.218.22.brutele.be [212.68.218.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3AC6B43F3F for ; Sun, 9 Feb 2003 16:58:00 -0800 (PST) (envelope-from olinether@blacktrap.net) Received: from naboo.blacktrap.net (localhost [127.0.0.1]) by naboo.blacktrap.net (8.12.3/8.12.3) with ESMTP id h1A0wJLc007802; Mon, 10 Feb 2003 01:58:19 +0100 (CET) (envelope-from olinether@naboo.blacktrap.net) Received: (from olinether@localhost) by naboo.blacktrap.net (8.12.3/8.12.3/Submit) id h1A0wJhh007801; Mon, 10 Feb 2003 01:58:19 +0100 (CET) Date: Mon, 10 Feb 2003 01:58:19 +0100 From: Olivier Dony To: Dag-Erling Smorgrav Cc: freebsd-current@freebsd.org Subject: Re: Getting an OpenPAM module to work on 5.0-RELEASE Message-ID: <20030210015819.C7711@naboo.blacktrap.net> Reply-To: olivier@blacktrap.net References: <20030209102306.A6880@naboo.blacktrap.net> <20030209195527.V419-100000@lemori.mokr.ru> <20030210010135.A7711@naboo.blacktrap.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from des@ofug.org on Mon, Feb 10, 2003 at 01:38:13AM +0100 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 10, 2003 at 01:38:13AM +0100, Dag-Erling Smorgrav wrote: > Olivier Dony writes: > > Actually I had patched pam_mysql (on FreeBSD 4.x when pam_mysql was still > > working, to be able to use blowfish correctly with FreeBSD's crypt(), but my > > problem is really to get an OpenPAM module to work, I even tried to simply > > rename the pam_permit one, but have the same problem: openpam_load_module > > won't find/open it now matter what... > > In /usr/src/contrib/openpam/lib/openpam_dynamic.c, change at least the > first two instances of PAM_LOG_DEBUG to PAM_LOG_ERROR, then rebuild > libpam (cd /usr/src/lib/libpam && make && make install) and try again. Ah, that's great, I will do that immediately, it sure will help anyway. Too bad I didn't see your second reply earlier, the openpam debug was part of the problem. > OpenPAM will now log messages in /var/log/messages showing why it > fails to load your module. My guess is that your module requires a > library which you forgot to add to LDADD. Exactly, hehe, thank you ! :-) I definetly should have read your second mail, but I was busy playing with those funny PAM modules... Explanation in my previous reply with [SOLVED]. > BTW, the PAM module makefiles in the tree aren't standalone: they rely > on variables set in Makefile.inc one and two levels up. Amongst other > things, they add a version number to the dynamic module, and prevent > the static version from being installed. Ok, that's a good thing to know, I read most of those Makefiles but didn't pay much attention ;-) Thanks so much for your help again! Olivier To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message