Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2003 01:45:38 +0100
From:      Olivier Dony <olivier@blacktrap.net>
To:        Dag-Erling Smorgrav <des@ofug.org>
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>
In-Reply-To: <xzpfzqxqb93.fsf@flood.ping.uio.no>; from des@ofug.org on Mon, Feb 10, 2003 at 12:34:32AM %2B0100
References:  <20030209102306.A6880@naboo.blacktrap.net> <xzpfzqxqb93.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 10, 2003 at 12:34:32AM +0100, Dag-Erling Smorgrav wrote:
> Olivier <olinether@blacktrap.net> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030210014538.B7711>