Bug 212 - Add netgroup support to ssh-keyscan
Summary: Add netgroup support to ssh-keyscan
Status: CLOSED WONTFIX
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: -current
Hardware: All Solaris
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-11 00:30 AEST by Mike Gerdts
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments
Add -n netgroup option to ssh-keyscan and man page (4.12 KB, patch)
2002-04-11 00:37 AEST, Mike Gerdts
no flags Details | Diff
netgroups patch against cvs (3.98 KB, patch)
2002-04-11 02:48 AEST, James A. Morrison
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gerdts 2002-04-11 00:30:33 AEST
I would find it very handy to be able to scan for keys based on netgroup.  As
such, this patch implements that feature.
Comment 1 Mike Gerdts 2002-04-11 00:33:07 AEST
This patch also changes the behavior of ssh-keyscan when a hostname does not
resolve.  I have changed the condition from fatal() to error() so that the scan
does not quit when it runs across a bad hostname.

Comment 2 Mike Gerdts 2002-04-11 00:37:40 AEST
Created attachment 69 [details]
Add -n netgroup option to ssh-keyscan and man page
Comment 3 Markus Friedl 2002-04-11 02:21:18 AEST
hm, why can't you use ypcat/etc to produce a list
and feed it to keyscan's stdin?

this would be more unix like.
Comment 4 James A. Morrison 2002-04-11 02:48:29 AEST
Created attachment 70 [details]
netgroups patch against cvs
Comment 5 James A. Morrison 2002-04-11 02:51:31 AEST
  Why not add this feature to openssh.  There is a system call on at least
Solaris, GNU/Linux, and GNU/Hurd for this purpose.
Comment 6 Mike Gerdts 2002-04-11 03:12:05 AEST
ypcat netgroup does not give the output in a nice format.  For example, suppose
I have netgroups like the following:

servers  servers_here servers_there

servers_here  (fred,,) (dino,,)
servers_there (barney,,) (bambam,,)

If I then do "ypmatch servers netgroup", I get back "servers_here
servers_there".  I then have to "ypmatch servers_here netgroup; ypmatch
servers_there netgroup", then parse the results "(fred,,) (dino,,) (barney,,)
(bambam,,)" to pull out the server names.  Yuck.

Also, netgroups may not actually exist in NIS.  The NIS LDAP schema (RFC 2037)
and name service switch modules in recent versions of Solaris support netgroups
in LDAP.

If there is resistence to this patch, then perhaps a separate (more unixish)
path to take would be a standalone netgroupcat(1).
Comment 7 Damien Miller 2002-04-23 22:54:51 AEST
A standalone netgroupcat would be very useful for other things too - I recommend
that you chose this path.
Comment 8 Damien Miller 2003-01-07 17:55:26 AEDT
Fix would be a standalone program, if anyone could be bothered writing it.
Comment 9 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED