From owner-freebsd-current Sun Feb 9 16:45:38 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 421D737B401 for ; Sun, 9 Feb 2003 16:45:37 -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 6E29143F3F for ; Sun, 9 Feb 2003 16:45:34 -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 h1A0jlLc007787; Mon, 10 Feb 2003 01:45:47 +0100 (CET) (envelope-from olinether@naboo.blacktrap.net) Received: (from olinether@localhost) by naboo.blacktrap.net (8.12.3/8.12.3/Submit) id h1A0jcrt007786; Mon, 10 Feb 2003 01:45:38 +0100 (CET) Date: Mon, 10 Feb 2003 01:45:38 +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 [SOLVED] Message-ID: <20030210014538.B7711@naboo.blacktrap.net> Reply-To: olivier@blacktrap.net References: <20030209102306.A6880@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 12:34:32AM +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 12:34:32AM +0100, Dag-Erling Smorgrav wrote: > Olivier writes: > > I'm trying to write a MySQL authentication PAM module to be used with > > Cyrus-imapd2 and salsauthd, since pam-mysql is broken wrt OpenPAM. > > Wouldn't it be easier to fix the existing pam_mysql? Indeed, but that's what I'm doing, really (with some improvements), I took the framework of the example modules that come with the new OpenPAM and adapted the code from pam_mysql to work in it, thus following the new API. So basically I'm trying to fix pam_mysql, but the problem was to get OpenPAM to recognize and load the modules I build. It turned out that I missed a couple options for the linker in the Makefile, and thus the shared library probably couldn't be loaded. But the error message wasn't very helpful, and the linking was going fine. It's working now :-) I simply appended "-L/usr/local/lib/mysql -lmysqlclient" to my LDADD line in the Makefile. Oh and you were right, if I had simply modified the pam_mysql port those options would have been already in the Makefile, but some other needed to be removed too, so I avoided that trouble ;-) So I was being stupid again I guess, sorry for the trouble, this is my first time building shared libraries and such. Thanks again! Olivier To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message