freebsd-nq/lib
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
..
csu/i386 Fixed prototyping of dlopen/dlsym in dlfcn.h, to match how crt0.c defines 1996-10-08 01:41:51 +00:00
libc Add support for detecting and hopefully using the passwd.adjunct.byname 1996-12-03 17:55:49 +00:00
libc_r Add pthread_mutexattr_init() and pthread_mutexattr_setkind_np(). 1996-11-11 09:09:30 +00:00
libcom_err Removed unused `-I.'s from CFLAGS. 1996-09-04 22:25:35 +00:00
libcompat Replace collate_range_cmp call with its code 1996-10-31 04:55:47 +00:00
libcrypt A couple of minor nits. 1996-10-14 08:34:02 +00:00
libcurses Fixed DPADD. 1996-09-05 17:16:10 +00:00
libdisk Improve the Dangerously Dedidcated mode a bit. Not much, but a bit better. 1996-11-27 22:44:43 +00:00
libedit Add missing DPADD, remove duplicate -ltermcap 1996-08-30 01:50:07 +00:00
libf2c Update to the 1995/09/20 version. Previous version was 1993/12/17. 1995-09-28 20:49:15 +00:00
libF77 General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
libftpio Oops, back out previous optimization, don't work as I expect 1996-11-14 09:51:47 +00:00
libgnumalloc Yet another attempt to remove the old libraries correctly. libfoo.* 1996-10-08 20:06:41 +00:00
libI77 General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
libipx General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
libkse Add pthread_mutexattr_init() and pthread_mutexattr_setkind_np(). 1996-11-11 09:09:30 +00:00
libkvm kvm_malloc: 1996-11-11 08:28:47 +00:00
libm Improve some poor wording. 1996-08-21 21:30:02 +00:00
libmd Moved #include of <sys/types.h> earlier so that this compiles when 1996-10-25 06:48:29 +00:00
libmytinfo cmp -s || install -c ==> install -C 1996-08-30 02:12:07 +00:00
libncurses delete doubled words, e.g.: "the the" -> "the" 1996-10-05 22:27:30 +00:00
libpam/modules Fix some compilation warnings. 1996-09-21 18:01:23 +00:00
libpcap cmp -s || install -c ==> install -C, use .for loop for includes 1996-08-30 01:59:46 +00:00
libpthread Add pthread_mutexattr_init() and pthread_mutexattr_setkind_np(). 1996-11-11 09:09:30 +00:00
libresolv Yet another attempt to remove the old libraries correctly. libfoo.* 1996-10-08 20:06:41 +00:00
librpcsvc Replace some bizzare AT&T(?) make macros (``${*F}'' ??!?!?!?) 1996-08-30 02:02:09 +00:00
libscsi cmp -s || install -c ==> install -C 1996-08-30 02:12:07 +00:00
libskey After some thinking implement alternative way:if it is impossible 1996-10-18 16:52:33 +00:00
libss Eliminated includes of the "temporary" backwards compatibility header 1996-09-24 08:08:11 +00:00
libtcl Regenerate. This backs out my previous change to TCL_SHLIB_SUFFIX, since 1996-10-31 16:09:04 +00:00
libtelnet General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
libtermcap Change the last -Wall cleanup so that the tputs declaration doesn't 1996-09-10 12:42:10 +00:00
libutil Some minor man page cleanup. 1996-08-23 20:52:53 +00:00
libxpg4 Add more stuff moved out from XPG3 1995-11-03 09:03:00 +00:00
liby Oops, we still want to build/install the static libraries. 1996-11-20 20:55:11 +00:00
libz Clean up the beforeinstall target a bit more, bde pointed out that the old 1996-08-19 01:21:46 +00:00
msun consistancy fixup 1996-08-30 21:21:52 +00:00
ncurses/ncurses Fixed DPADD. 1996-09-05 17:16:10 +00:00
Makefile Compile libtelnet from eBones, not secure. 1996-11-03 16:59:04 +00:00
Makefile.inc From 1.1.5: define default shared library versions. For 2.0, use version 1994-08-04 22:44:00 +00:00