Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Files NSS backend for netgroup, with regular expression support

3 views
Skip to first unread message

John DiMarco

unread,
Jul 3, 1998, 3:00:00 AM7/3/98
to

Announcing ngrfiles, a Solaris Name Services Switch backend for netgroup
which uses files instead of NIS/NIS+, and adds regular expression support.
I've been sitting on this for a while, but I finally got around to cleaning
it up and releasing it. I hope some of you find it useful.

Here's the README:

Jul 3, 1998

ngrfiles is a minimal netgroup name services switch backend for Solaris 2.x.
It doesn't parse the netgroup file itself; rather, the actual netgroup data
lives in the directory /etc/netgroups, and each netgroup is defined as a file
in that directory whose name is the name of the netgroup. The file contains
netgroup entries, one per line.

Name services switch backends are shared libraries of the form
nss_name.so.1, and are invoked in /etc/nsswitch.conf by specifying
"map: name". In this case, /usr/lib/nss_ngrfiles.so.1 is invoked by
specifying "netgroup: ngrfiles".

Unlike Sun's netgroup back ends, ngrfiles supports regular expressions in
netgroups for matching via innetgr. For example, you can match all hosts
ending in .domain.com with the single entry "?*domain.com,," This can be
quite useful.

To install, edit the Makefile, compile and "make install".

The latest version of ngrfiles is available at

ftp://ftp.cs.toronto.edu/pub/jdd/ngrfiles/

Comments and enhancements welcome.

John
--
John DiMarco <j...@cs.toronto.edu> Office: SF2101
CSLab Systems Manager Phone: 416-978-5300
University of Toronto Fax: 416-978-1931
http://www.cs.toronto.edu/~jdd

0 new messages