summaryrefslogtreecommitdiffstats
path: root/usr.bin/passwd/Makefile
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1995-01-31 08:34:16 +0000
committerwpaul <wpaul@FreeBSD.org>1995-01-31 08:34:16 +0000
commit005b0f04d82d540ddfa6f8d57b3994fbbfee299e (patch)
tree83e21e5424bd0abad2e7cdf002e21239fcf9cd3d /usr.bin/passwd/Makefile
parentc2417479c704f1853260e0866f5ca670aa541f06 (diff)
downloadFreeBSD-src-005b0f04d82d540ddfa6f8d57b3994fbbfee299e.zip
FreeBSD-src-005b0f04d82d540ddfa6f8d57b3994fbbfee299e.tar.gz
Obtained from: The NYS project
This is the first round of changes to incorporate YP server functionality into FreeBSD. This particular change allows passwd to change either the local or NIS password, as well as the NIS GECOS and shell information. Essentially, I've taken passwd(1) and yppasswd from the yppasswd-0.5 distribution (which is part of the NYS project -- a project to provide a GNU GPL'ed suite of NIS tools) and rammed them into each other at high speed. I've tried my best to make this co-exist with the Kerberos stuff, but since I don't run Kerberos I don't have an easy way to verify that it all works. If you choose any Kerberos flags then the YP checks should be bypassed, but that may not be enough. I'll modify it some more if it turns out I broke something. For now, support for localand NIS passwords is pretty solid: - If you simply type 'passwd,' the program checks to see if you exist in the local pwd.db database. If not, you get bounced to YP. - If you try to force local functionality with the -l flag and you don't exist locally, you get an error. The -y flag can be used to force YP functionality. -f and -s let you change your full name and shell (respectively). -f *and* -s let you change all of your 'account information.' ypchfn, ypchsh, yppasswd and ypchpass are all links to passwd.
Diffstat (limited to 'usr.bin/passwd/Makefile')
-rw-r--r--usr.bin/passwd/Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile
index 2059adb..13b5188 100644
--- a/usr.bin/passwd/Makefile
+++ b/usr.bin/passwd/Makefile
@@ -1,13 +1,20 @@
# From: @(#)Makefile 8.3 (Berkeley) 4/2/94
-# $Id: Makefile,v 1.5 1994/11/20 23:21:06 wollman Exp $
+# $Id: Makefile,v 1.6 1995/01/19 21:03:48 wollman Exp $
PROG= passwd
-SRCS= local_passwd.c passwd.c pw_copy.c pw_util.c
+SRCS= local_passwd.c yp_passwd.c yppasswd_xdr.c passwd.c pw_copy.c pw_util.c
LDADD= -lcrypt
.PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \
- ${.CURDIR}/../rlogin
-CFLAGS+=-DCRYPT -I${.CURDIR} -I${.CURDIR}/../../usr.sbin/vipw \
- -I${.CURDIR}/../../usr.bin/chpass
+ ${.CURDIR}/../rlogin ${.CURDIR}/../../gnu/usr.sbin/yppasswdd
+
+CFLAGS+=-DCRYPT -DYP -I${.CURDIR} -I${.CURDIR}/../../usr.sbin/vipw \
+ -I${.CURDIR}/../../usr.bin/chpass \
+ -I${.CURDIR}/../../gnu/usr.sbin/yppasswdd
+
+LINKS= ${BINDIR}/passwd ${BINDIR}/yppasswd
+LINKS+= ${BINDIR}/passwd ${BINDIR}/ypchfn
+LINKS+= ${BINDIR}/passwd ${BINDIR}/ypchsh
+LINKS+= ${BINDIR}/passwd ${BINDIR}/ypchpass
BINOWN= root
BINMODE=4555
OpenPOWER on IntegriCloud