freebsd-skq/lib/libc/gen
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
..
__xuname.c Null terminate all strings returned by the dummy uname() routine, 1995-07-31 10:10:02 +00:00
_rand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
_thread_init.c Obtained from: uthreads package 1996-01-22 00:32:08 +00:00
alarm.3 Don't claim to be POSIX compliant, since our alarm function isn't. 1996-08-15 21:12:49 +00:00
alarm.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
assert.c Don't include <sys/types.h> when it isn't used. 1996-04-19 18:40:25 +00:00
clock.3 Removed bogus includes of <sys/types.h> from synopses. 1996-04-19 19:00:26 +00:00
clock.c Change CLK_TCK to CLOCKS_PER_SEC. (CLK_TCK is a deprecated POSIX feature 1995-02-03 21:59:45 +00:00
closedir.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
config_open.3 Fix even more spelling errors in some more man pages. 1996-01-30 16:34:52 +00:00
config.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
confstr.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
confstr.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
crypt.3 Added missing section numbers to a bunch of .Xr macros, or 1996-03-27 20:49:07 +00:00
crypt.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
ctermid.3 Added missing section numbers to a bunch of .Xr macros, or 1996-03-27 20:49:07 +00:00
ctermid.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
daemon.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
daemon.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
devname.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
devname.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
directory.3 Fix even more spelling errors in some more man pages. 1996-01-30 16:34:52 +00:00
disklabel.c Updated a type to match Lite2's fixed-width type changes. 1996-03-19 13:44:57 +00:00
drand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
erand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
err.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
err.c Don't use __dead or __pure in user code. They were obfuscations 1996-09-14 03:00:32 +00:00
errlst.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
exec.3 Fixed various problems: typos, grammer, missing include files 1996-05-23 01:05:25 +00:00
exec.c Fixed execvp() of an empty pathname to fail POSIXly. Previously it 1996-11-18 19:24:47 +00:00
fnmatch.3 GNU-style changes: 1996-10-23 16:40:20 +00:00
fnmatch.c collate_range_cmp -> __collate_range_cmp 1996-10-31 04:32:27 +00:00
frexp.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
fstab.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
ftok.3 delete doubled words, e.g.: "the the" -> "the" 1996-10-05 22:27:30 +00:00
ftok.c Added function and man page for ftok(3), used in conjunction with 1995-05-01 08:53:21 +00:00
fts-compat.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
fts-compat.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
fts.3 Corrected a couple of errors in the fts(3) manual page. The prototype 1996-02-15 21:48:54 +00:00
fts.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
getbootfile.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
getbootfile.c If sysctl() fails, return "/kernel" so as not to screw people who haven't 1994-09-24 00:10:13 +00:00
getbsize.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
getbsize.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getcap.3 fix .Xr macro 1996-09-21 15:08:10 +00:00
getcap.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
getcwd.3 Fixed various problems: typos, grammer, missing include files 1996-05-23 01:05:25 +00:00
getcwd.c Corrently null-terminate the path being passed to the opendir() calls, 1996-10-17 00:40:04 +00:00
getdiskbyname.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getdomainname.3 Update getdomainname(3) to reflect that it operates on 1996-12-01 00:10:28 +00:00
getdomainname.c Finish rename of KERN_DOMAINNAME to KERN_NISDOMAINNAME. 1996-07-25 18:03:53 +00:00
getfsent.3 Fixed various problems: typos, grammer, missing include files 1996-05-23 01:05:25 +00:00
getgrent.3 I hate to read a man page that almost has useful information 1996-06-20 14:13:15 +00:00
getgrent.c Apply patch to fix +group YP overrides and prevent SEGV on badly 1996-09-05 12:27:24 +00:00
getgrouplist.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
getgrouplist.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
gethostname.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
gethostname.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getloadavg.3 Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
getloadavg.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getlogin.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getmntinfo.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
getmntinfo.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getnetgrent.3 Added some missing MLINKS for section 3 man pages. 1996-02-09 00:45:45 +00:00
getnetgrent.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
getosreldate.c Oops, forgot to cvs add this file. 1994-08-10 06:27:35 +00:00
getpagesize.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
getpagesize.c Cache the result of getpagesize() so we only make one syscall. 1996-05-02 08:43:05 +00:00
getpass.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
getpass.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
getpwent.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
getpwent.c Add support for detecting and hopefully using the passwd.adjunct.byname 1996-12-03 17:55:49 +00:00
getttyent.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getttyent.c Fix a potential memory leak i've introduced with my recent patch. 1996-10-21 23:56:23 +00:00
getusershell.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getusershell.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
getvfsent.3 Update some more man pages to use the .Fx macro. 1996-08-21 22:10:36 +00:00
getvfsent.c Fix an off-by-one error in getvfsent(). 1996-10-26 21:53:21 +00:00
glob.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
glob.c collate_range_cmp -> __collate_range_cmp 1996-10-31 04:32:27 +00:00
initgroups.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
initgroups.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
isatty.c Reviewed by: julian and (hsu?) 1996-01-22 00:02:33 +00:00
isinf.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
jrand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
lcong48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
ldexp.3 Fixed various problems: typos, grammer, missing include files 1996-05-23 01:05:25 +00:00
lrand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
Makefile.inc add manpage links: 1996-05-29 00:57:19 +00:00
modf.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
mrand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
msgctl.3 .Os NetBSD -> .Os FreeBSD. 1996-09-28 22:46:35 +00:00
msgctl.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
msgget.3 .Os NetBSD -> .Os FreeBSD. 1996-09-28 22:46:35 +00:00
msgget.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
msgrcv.3 .Os NetBSD -> .Os FreeBSD. 1996-09-28 22:46:35 +00:00
msgrcv.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
msgsnd.3 .Os NetBSD -> .Os FreeBSD. 1996-09-28 22:46:35 +00:00
msgsnd.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
nice.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
nice.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
nlist.3 Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +00:00
nlist.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
nrand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
ntp_gettime.c Function in this module bloodly called 'gethostname' and linked 1994-09-19 22:04:28 +00:00
opendir.c Cache the result of getpagesize() so we only make one syscall. 1996-05-02 08:43:05 +00:00
pause.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
pause.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
popen.3 Added missing section numbers to a bunch of .Xr macros, or 1996-03-27 20:49:07 +00:00
popen.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
psignal.3 Fixed various problems: typos, grammer, missing include files 1996-05-23 01:05:25 +00:00
psignal.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
pw_scan.c Submitted by: archie@whistle.com 1996-06-20 19:19:29 +00:00
pw_scan.h BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00
pwcache.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
pwcache.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
raise.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
raise.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
rand48.3 Fix even more spelling errors in some more man pages. 1996-01-30 16:34:52 +00:00
rand48.h Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
readdir.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
rewinddir.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
scandir.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
scandir.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
seed48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
seekdir.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
semconfig.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
semctl.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
semget.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
semop.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
setdomainname.c Finish rename of KERN_DOMAINNAME to KERN_NISDOMAINNAME. 1996-07-25 18:03:53 +00:00
setflags.c Added $Id$ 1994-09-24 02:59:15 +00:00
setflagsbyname.c Added $Id$ 1994-09-24 02:59:15 +00:00
sethostname.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
setjmp.3 Fixed a bunch of man page cross references that were 1996-02-15 20:07:05 +00:00
setjmperr.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
setmode.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
setmode.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
setproctitle.3 Some minor man page cleanup. 1996-08-23 20:52:53 +00:00
setproctitle.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
shmat.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
shmctl.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
shmdt.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
shmget.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
siginterrupt.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
siginterrupt.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
siglist.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
signal.3 Document the "sig" function parameter. 1996-07-03 02:44:04 +00:00
signal.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
sigsetops.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
sigsetops.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
sleep.3 Added a note about the return value. Its been so long I can't 1996-04-05 05:35:57 +00:00
sleep.c ts_sec -> tv_sec 1996-09-20 06:06:28 +00:00
srand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
strtofflags.c Added $Id$ 1994-09-24 02:59:15 +00:00
sysconf.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
sysconf.c Include sys/time.h, not sys/user.h. 1995-12-08 08:47:41 +00:00
sysctl.3 Document that the `old' count is returned for the ENOMEM case. 1996-11-04 17:03:34 +00:00
sysctl.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
syslog.3 Fixed various problems: typos, grammer, missing include files 1996-05-23 01:05:25 +00:00
syslog.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
tcgetpgrp.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
tcsendbreak.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
tcsetattr.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
tcsetpgrp.3 Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
telldir.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
termios.c Back out one of my previous changes: don't clear PARODD, 1996-03-28 13:33:18 +00:00
time.3 Removed bogus includes of <sys/types.h> from synopses. 1996-04-19 19:00:26 +00:00
time.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
times.3 Xref clocks(7). 1996-04-05 08:53:38 +00:00
times.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
timezone.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
timezone.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
ttyname.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
ttyname.c Parameters pthread_getspecific() changed. 1996-11-11 09:11:59 +00:00
ttyslot.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
tzset.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
ualarm.3 alarm -> ualarm. 1996-03-19 13:53:00 +00:00
ualarm.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
uname.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
uname.c Null terminate all strings returned by the dummy uname() routine, 1995-07-31 10:10:02 +00:00
unvis.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
unvis.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
usleep.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
usleep.c Fix typo from previous commit (tsvsec --> tv_sec). 1996-09-23 03:54:53 +00:00
utime.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
utime.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
valloc.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
valloc.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
vis.3 Typo police. 1996-08-23 00:26:01 +00:00
vis.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
wait3.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
wait.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
waitpid.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00