Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2003 19:08:57 -0400
From:      "Ben Goodwin" <ben@atomicmatrix.net>
To:        <freebsd-hackers@freebsd.org>
Subject:   Re: NSS Modules
Message-ID:  <003401c34738$3e49f200$6801a8c0@dsg.atomicmatrix.net>
References:  <001301c34669$438e1040$6801a8c0@dsg.atomicmatrix.net> <20030710232153.500e0152.sheepkiller@cultdeadsheep.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003401c34738$3e49f200$6801a8c0>