From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 10 16:09:00 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED5DA37B401 for ; Thu, 10 Jul 2003 16:09:00 -0700 (PDT) Received: from rs.atomicmatrix.net (rs.atomicmatrix.net [64.246.60.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6CD943FBD for ; Thu, 10 Jul 2003 16:08:59 -0700 (PDT) (envelope-from ben@atomicmatrix.net) Received: from energizer (h00045ad8cdf8.ne.client2.attbi.com [24.60.62.109]) by rs.atomicmatrix.net (8.11.6/8.11.6) with ESMTP id h6AN8xH14432 for ; Thu, 10 Jul 2003 18:08:59 -0500 Message-ID: <003401c34738$3e49f200$6801a8c0@dsg.atomicmatrix.net> From: "Ben Goodwin" To: References: <001301c34669$438e1040$6801a8c0@dsg.atomicmatrix.net> <20030710232153.500e0152.sheepkiller@cultdeadsheep.org> Date: Thu, 10 Jul 2003 19:08:57 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: NSS Modules X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2003 23:09:01 -0000 > have a look at : > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/51768 > (sorry I dirt your code :)) > It's *really* dirty :) but it works :-) It's actually a pretty good hack :-) I actually forgot that I'd run across this port earlier. It doesn't link on my system (removed -Bgroup to get it to work) and the configuration file in config.h ended up being "NONE/etc/libnss-mysql.cfg" .. so that's a bit broken.. and I'm also getting some warnings inside _nss_mysql_is_same_sockaddr but I was able to log in as cinergi. I'm curious how it worked tho .. I thought the function calls had to be something like: _nss_mysql_getpwnam_r (void *retval, void *mdata, va_list ap) and not _nss_mysql_getpwnam_r (const char *name, struct passwd *result, char *buffer, size_t buflen, int *errnop) I don't think I fully understand ns_mtab ... I see your mtab array .. which is different than how I conceived it.. anyway I'll let someone clarify. I'll still get this to compile cleanly without patches etc etc ... with your help that shouldn't take too long. Thanks! -=| Ben