mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 07:11:05 +01:00
Add support for publickey.byname map (turned off by default since
we haven't imported the Secure RPC stuff yet).
This commit is contained in:
parent
d8ae52dc79
commit
da7408fc6d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11727
@ -1,7 +1,7 @@
|
||||
#
|
||||
# Makefile for the NIS databases
|
||||
#
|
||||
# $Id: Makefile.yp,v 1.9 1995/07/19 17:44:05 wpaul Exp $
|
||||
# $Id: Makefile.yp,v 1.7.4.1 1995/08/25 11:18:36 davidg Exp $
|
||||
#
|
||||
# This Makefile should only be run on the NIS master server of a domain.
|
||||
# All updated maps will be pushed to all NIS slave servers listed in the
|
||||
@ -85,6 +85,7 @@ MASTER = $(YPDIR)/master.passwd
|
||||
MASTER = $(MASTER_PASSWD)
|
||||
.endif
|
||||
YPSERVERS = $(YPDIR)/ypservers # List of all NIS servers for a domain
|
||||
PUBLICKEY = $(YPSRCDIR)/publickey
|
||||
|
||||
target:
|
||||
@if [ ! -d $(DOMAIN) ]; then mkdir $(DOMAIN); fi; \
|
||||
@ -99,7 +100,7 @@ target:
|
||||
#
|
||||
|
||||
all: master.passwd passwd hosts group networks protocols \
|
||||
rpc services servers netid # netgroup ethers bootparam
|
||||
rpc services servers netid # publickey netgroup ethers bootparam
|
||||
|
||||
ethers: ethers.byname ethers.byaddr
|
||||
bootparam: bootparams
|
||||
@ -113,6 +114,8 @@ group: group.byname group.bygid
|
||||
netgrp: netgroup
|
||||
netid: netid.byname
|
||||
servers: ypservers
|
||||
publickey: publickey.byname
|
||||
|
||||
master.passwd: master.passwd.byname master.passwd.byuid
|
||||
|
||||
|
||||
@ -275,6 +278,16 @@ services.byname: $(SERVICES)
|
||||
@if [ ! $(NOPUSH) ]; then echo "Pushed $@ map." ; fi
|
||||
|
||||
|
||||
publickey.byname: $(PUBLICKEY)
|
||||
@echo "Updating $@..."
|
||||
$(RM) $@
|
||||
$(CAT) $(PUBLICKEY) | \
|
||||
$(AWK) '$$1 !~ "#" { print $$1"\t"$$2 }' $^ \
|
||||
| $(DBLOAD) -i $(PUBLICKEY) -o $(YPMAPDIR)/$@ - $@
|
||||
@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) $@; fi
|
||||
@if [ ! $(NOPUSH) ]; then echo "Pushed $@ map." ; fi
|
||||
|
||||
|
||||
$(PASSWD): $(MASTER)
|
||||
@echo "Creating new $@ file from $(MASTER)..."
|
||||
$(RM) $@
|
||||
|
Loading…
Reference in New Issue
Block a user