diff options
author | wpaul <wpaul@FreeBSD.org> | 1995-09-02 03:56:21 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1995-09-02 03:56:21 +0000 |
commit | 625b98becbce4bcaf57da39042e6307b750eaf2c (patch) | |
tree | dd074e15d0a8ebc9755967c60a45159bf976c94c /usr.bin/chpass/pw_yp.h | |
parent | f7e27900afc3bbf3997939ce5eaf0f9be2e4837d (diff) | |
download | FreeBSD-src-625b98becbce4bcaf57da39042e6307b750eaf2c.zip FreeBSD-src-625b98becbce4bcaf57da39042e6307b750eaf2c.tar.gz |
Make use_yp() smarter about figuring out whether a user is local or
NIS (or both, or neither). Also add support for -l and -y flags to
force behavior to local or NIS. use_yp() also goes out of its way to
retrieve the correct password database information (local or NIS)
depending on what the situation since getpwent() & co. can't
necessarily be trusted in some cases.
Also document new flags in man page.
Diffstat (limited to 'usr.bin/chpass/pw_yp.h')
-rw-r--r-- | usr.bin/chpass/pw_yp.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/chpass/pw_yp.h b/usr.bin/chpass/pw_yp.h index 94c7a74..9d98a43 100644 --- a/usr.bin/chpass/pw_yp.h +++ b/usr.bin/chpass/pw_yp.h @@ -35,11 +35,18 @@ * Center for Telecommunications Research * Columbia University, New York City * - * $Id$ + * $Id: pw_yp.h,v 1.1 1995/08/13 16:12:28 wpaul Exp $ */ #ifdef YP +/* Four possible return codes from use_yp() */ +#define USER_UNKNOWN 0 +#define USER_YP_ONLY 1 +#define USER_LOCAL_ONLY 2 +#define USER_YP_AND_LOCAL 3 extern int _use_yp; +extern struct passwd local_password; +extern struct passwd yp_password; void yp_submit __P(( struct passwd * )); int use_yp __P(( char * )); #endif /* YP */ |