Bill Paul 2be5d4cba8 Add support for detecting and hopefully using the passwd.adjunct.byname
NIS map which is present on SunOS NIS servers with the SunOS C2 security
hack^Woption installed. I'm convinced that the C2 security option restricts
access to the passwd.adjunct.byname map in the same way that I restrict
access to the master.passwd.{byname,buid} maps (checking for reserved ports),
which means that we should be able to handle passwd.adjunct.byname map
correctly.

If _havemaster() doesn't find a master.passwd.byname map, it will now
test for a passwd.adjunct.byname map before defaulting back to the
standard non-shadowed passwd.{byname,byuid} maps. If _pw_breakout_yp()
sees that the adjunct map was found and the password from the standard
maps starts with ##, it will try to grab the correct password field
from the adjunct map. As with the master.passwd maps, this only happens
if the caller is root, so the shadowing feature is preserved; non-root
users just get back ##username as the encrypted password.

Note that all we do is grab the second field from the passwd.adjunct.byname
entry, which is designated to be the real encrypted password. There are
other auditing fields in the entry but they aren't of much use to us.

Also switched back to using yp_order() to probe for the maps (instead
of yp_first()). The original problem with yp_order() was that it barfed
with NIS+ servers in YP compat mode since they don't support the
YPPROC_ORDER procedure. This condition is handled a bit more gracefully
in yplib now: we can detect the error and just punt on the probing.
1996-12-03 17:55:49 +00:00
..
1996-01-22 00:32:08 +00:00
1994-05-27 05:00:24 +00:00
1995-05-30 05:51:47 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1996-10-23 16:40:20 +00:00
1994-05-27 05:00:24 +00:00
1994-05-24 09:57:34 +00:00
1996-07-12 18:57:58 +00:00
1994-05-27 05:00:24 +00:00
1996-09-21 15:08:10 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1995-05-30 05:51:47 +00:00
1996-01-22 00:02:33 +00:00
1994-05-27 05:00:24 +00:00
1996-05-29 00:57:19 +00:00
1994-05-27 05:00:24 +00:00
1996-09-28 22:46:35 +00:00
1994-09-13 14:52:45 +00:00
1996-09-28 22:46:35 +00:00
1994-09-13 14:52:45 +00:00
1996-09-28 22:46:35 +00:00
1994-09-13 14:52:45 +00:00
1996-09-28 22:46:35 +00:00
1994-09-13 14:52:45 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1996-07-12 18:57:58 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1996-07-12 18:57:58 +00:00
1996-06-20 19:19:29 +00:00
1994-05-26 05:23:31 +00:00
1994-05-27 05:00:24 +00:00
1996-07-12 18:57:58 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1995-05-30 05:51:47 +00:00
1994-09-13 14:52:45 +00:00
1994-09-13 14:52:45 +00:00
1994-09-13 14:52:45 +00:00
1994-09-13 14:52:45 +00:00
1994-09-24 02:59:15 +00:00
1994-09-24 02:59:15 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1996-08-23 20:52:53 +00:00
1994-09-13 14:52:45 +00:00
1994-09-13 14:52:45 +00:00
1994-09-13 14:52:45 +00:00
1994-09-13 14:52:45 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1996-09-20 06:06:28 +00:00
1994-09-24 02:59:15 +00:00
1995-12-08 08:47:41 +00:00
1995-05-30 05:51:47 +00:00
1994-05-27 05:00:24 +00:00
1996-04-05 08:53:38 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1996-03-19 13:53:00 +00:00
1995-05-30 05:51:47 +00:00
1996-07-12 18:57:58 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1996-08-23 00:26:01 +00:00
1996-07-12 18:57:58 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00