From owner-freebsd-questions@FreeBSD.ORG Wed Oct 8 13:40:24 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3918416A4BF for ; Wed, 8 Oct 2003 13:40:24 -0700 (PDT) Received: from mail.relia.net (mail.relia.net [207.173.156.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2795C43FBD for ; Wed, 8 Oct 2003 13:40:23 -0700 (PDT) (envelope-from joe@relia.net) Received: from customercare.relia.net ([207.173.156.19] helo=relia.net) by mail.relia.net with esmtp (Exim 4.20) id 1A7L6c-0006K6-HM for freebsd-questions@FreeBSD.ORG; Wed, 08 Oct 2003 14:40:22 -0600 Message-ID: <3F8477E7.3020405@relia.net> Date: Wed, 08 Oct 2003 14:47:35 -0600 From: Joe Lewis User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4b) Gecko/20030507 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG References: <20031005020513.C45148-100000@skywalker.rogness.net> In-Reply-To: <20031005020513.C45148-100000@skywalker.rogness.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: Anyone using Linux-PAM on 5.x? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: joe@joe-lewis.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2003 20:40:24 -0000 Hello, all; I would like to take a moment of your time. I was having some heavy frustrations on preparing a FreeBSD 5.1 server for handling centrally located accounts using OpenPAM, particularly due to my inability to locate good documentation on it. I found that the problems : Oct 5 13:04:15 sharktooth login: in openpam_load_module(): no pam_mysql.so found Oct 5 13:04:15 sharktooth login: pam_start(): failed to load module Were NOT due to the misplacement of the module. Proper permissions were in place. The concerns I had were resolved when the following individuals (many, many, many thanks to these guru's) : Kris Kennaway Mikko Työläjärvi Nick Rogness Gave me pointers, advice, and properly illustrated what the problem was. For the archives sake, I am posting the results of that hassle here. The first of the problems were based on the fact that I was trying to port pam_mysql. This was failing because the mysqlclient library wasn't being located when the pam libraries were loaded. There had to be an -R/usr/local/lib/mysql added to the compilation/linker commands. Then I ran into the errors : Oct 6 19:22:09 sharktooth login: in openpam_dispatch(): pam_mysql.c: no pam_sm_authenticate() Oct 6 19:22:09 sharktooth login: in openpam_dispatch(): pam_mysql.c: no pam_sm_setcred() The functions were defined properly, and I used a number of different methods. That's when I was pointed to the Makefile as the problem. The end result switched from using ld as the linker to libtool. There are still bugs to work out, but the module is beginning to function. Again, I offer a sincere thanks to those individuals listed above for their responses. Joe Lewis