On Mon, Feb 10, 2003 at 12:34:32AM +0100, Dag-Erling Smorgrav wrote: > Olivier <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message