Subject: Re: NSS
To: Luke Mewburn <>
From: Hubert Feyrer <>
List: tech-userlevel
Date: 07/04/2005 01:08:31
On Mon, 4 Jul 2005, Luke Mewburn wrote:
> The internal nsswitch "API" used by various functions (such as
> getpwent(3), getgrent(3)) has been made more consistent, although
> I only recently requested pullups to netbsd-3 for these.
> This makes it easier to write dynamic modules,
> at least for "passwd" and "group"; I've ported samba's
> to this.

Is that available somewhere (in source)?

> The documentation on the new (internal) API convention is still
> a bit lacking -- I hope to eventually rectify this.
> Note: Not all "standard" getXXbyYYY functions have been converted
> to the internal API; until that's done not all databases in
> nsswitch.conf(5) can have dynamic backends (without ugly hacks).

Can you tell a few pointers for what to look at for writing ones own nss 
module? How would one start converting the missing functions?
Having some documentation on "writing your own nss module" would be nice, 
even if the backend is really simple (plain ascii? :)

  - Hubert