FreeBSD Bugzilla – Attachment 42989 Details for
Bug 66893
[patch] [nis] rpc.yppasswdd(8): Linux NIS clients connecting to FreeBSD NIS servers get authentication failure
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Yp.Makefile.patch
Yp.Makefile.patch (text/plain), 2.29 KB, created by
tuliogs
on 2008-01-24 17:04:52 UTC
(
hide
)
Description:
Yp.Makefile.patch
Filename:
MIME Type:
Creator:
tuliogs
Created:
2008-01-24 17:04:52 UTC
Size:
2.29 KB
patch
obsolete
>+++ Makefile Tue Jan 22 21:45:02 2008 >@@ -40,6 +40,10 @@ > # key will be removed from these maps, allowing anyone to access them. > S=-s > >+# If you want to have linux NIS clients you must enable this: >+# Comment the line if you have no linux NIS clients >+LINUXCOMPMODE=1 >+ > # These are commands which this Makefile needs to properly rebuild the > # NIS databases. Don't change these unless you have a good reason. Also > # be sure not to place an @ in front of /usr/bin/awk: it isn't necessary >@@ -187,7 +191,7 @@ > publickey: publickey.byname > aliases: mail.aliases > >-master.passwd: master.passwd.byname master.passwd.byuid >+master.passwd: master.passwd.byname master.passwd.byuid shadow.byname > > # > # This is a special target used only when doing in-place updates with >@@ -460,6 +464,16 @@ > > $(PASSWD): $(MASTER) > @echo "Creating new $@ file from $(MASTER)..." >+.if defined(LINUXCOMPMODE) >+ @if [ ! $(UNSECURE) ]; then \ >+ $(AWK) -F: '{if ($$1 != "" && $$1 !~ "^#.*" && $$1 != "+") \ >+ print $$1":x:"$$3":"$$4":"$$8":"$$9":"$$10}' $(MASTER) \ >+ > $(PASSWD) ; \ >+ else \ >+ $(AWK) -F: '{if ($$1 != "" && $$1 !~ "^#.*" && $$1 != "+") \ >+ print $$1":"$$2":"$$3":"$$4":"$$8":"$$9":"$$10}' $(MASTER) \ >+ > $(PASSWD) ; fi >+.else > @if [ ! $(UNSECURE) ]; then \ > $(AWK) -F: '{if ($$1 != "" && $$1 !~ "^#.*" && $$1 != "+") \ > print $$1":*:"$$3":"$$4":"$$8":"$$9":"$$10}' $(MASTER) \ >@@ -468,6 +482,7 @@ > $(AWK) -F: '{if ($$1 != "" && $$1 !~ "^#.*" && $$1 != "+") \ > print $$1":"$$2":"$$3":"$$4":"$$8":"$$9":"$$10}' $(MASTER) \ > > $(PASSWD) ; fi >+.endif > > > passwd.byname: $(PASSWD) >@@ -574,4 +589,22 @@ > @$(DBLOAD) -c > @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) $@; fi > @if [ ! $(NOPUSH) ]; then echo "Pushed $@ map." ; fi >+ >+ >+shadow.byname: $(MASTER) >+.if defined(LINUXCOMPMODE) >+ @echo "Updating $@..." >+.if ${MASTER} == "/dev/null" >+ @echo "Master.passwd source file not found -- skipping" >+.else >+ @cat $(MASTER) | \ >+ $(AWK) -F: '{ if ($$1 != "" && $$1 !~ "^#.*" && $$1 != "+") \ >+ print $$1"\t"$$1":"$$2":::::::" }' $^ \ >+ | $(DBLOAD) ${S} -f -i $(MASTER) -o $(YPMAPDIR)/$@ - $(TMP); \ >+ $(RMV) $(TMP) $@ >+ @$(DBLOAD) -c >+ @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) $@; fi >+ @if [ ! $(NOPUSH) ]; then echo "Pushed $@ map." ; fi >+.endif >+.endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 66893
: 42989