From owner-freebsd-questions@FreeBSD.ORG Sun Oct 5 12:02:40 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 223A916A4C0 for ; Sun, 5 Oct 2003 12:02:40 -0700 (PDT) Received: from mail.relia.net (mail.relia.net [207.173.156.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E17043FDF for ; Sun, 5 Oct 2003 12:02:33 -0700 (PDT) (envelope-from joe@relia.net) Received: from post ([207.173.156.6] helo=email.relia.net) by mail.relia.net with smtp (Exim 4.20) id 1A6E9G-000I4e-DU; Sun, 05 Oct 2003 13:02:30 -0600 Received: from 67.2.79.212 (SquirrelMail authenticated user joe) by email.relia.net with HTTP; Sun, 5 Oct 2003 13:02:28 -0600 (MDT) Message-ID: <1097.67.2.79.212.1065380548.squirrel@email.relia.net> In-Reply-To: <20031004164554.X3248@atlas.home> References: <3F7F29C5.7030606@relia.net> <20031004164554.X3248@atlas.home> Date: Sun, 5 Oct 2003 13:02:28 -0600 (MDT) From: "Joe Lewis" To: Mikko Ty=?iso-8859-1?Q?=F6l=E4j=E4rvi?= User-Agent: SquirrelMail/1.4.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal cc: freebsd-questions@freebsd.org Subject: Re: Anyone using Linux-PAM on 5.x? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Oct 2003 19:02:40 -0000 > Having had some experience writing pam modules on a number of > platforms, I whipped out my suite of pam test modules to have a look > at this incredbible breakage you speak of. I mean, there is a > specification for pam after all. I know of the specification. However, I have a customized version of the pam-mysql module that I have tried to install. In a previous post to this list about a week or two ago, I wrote about getting only the following entrys in the log file (an example of one from today) : Oct 5 13:04:15 sharktooth login: in opempam_load_module(): no pam_mysql.so found Oct 5 13:04:15 sharktooth login: pam_start(): failed to load module Now, it is there in the /usr/lib/ directory, it has the correct permissions, correct owner, etc. In the /etc/pam.d/login file, I've even put in absolute paths, and non-aboslute paths. I've copied existing module entries, changing only the module name (such as pam_unix to pam_mysql). > > Hmmm... odd; the modules all build and work just fine, modulo some > minor tweaks mostly related to gcc 3.x, even though I have never built > them on FreeBSD 5 before. Definitely no worse than when porting to > certain commercial platforms. Can you at least point me to some documentation? I don't mind porting the module. I've copied the pam_unix.c module that comes with the openpam source code (dogwood release, the one in 5.x), changed references from pam_unix to pam_mysql, leaving the actual implementations in place so I make sure that I'm not messing something up, and STILL get the same log file entries, so it can't be the code in the module. What's the deal? > Whatever difficulties you are experiencing, I'd say the reason is not > specifically related to openpam or FreeBSD 5. Maybe if you post some > details, such as source and error messages, someone will be able to > help you. > > Regards, > /Mikko > > Mikko > Työläjärvi_______________________________________mikko@rsasecurity.com > RSA Security > If you want the source, give me a day or two to remove proprietary code, and I can get that back to you - however, it will look extremely similar to the existing pam_mysql module, because that was the basis for my work.