Bug 1981 - ypserv handles null key incorrectly
Summary: ypserv handles null key incorrectly
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: gnu (show other bugs)
Version: 2.1.5-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Bill Paul
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1996-11-08 11:50 UTC by hino
Modified: 2002-01-24 22:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hino 1996-11-08 11:50:02 UTC
While ypserv on FreeBSD works as slave NIS server, this ypserv incorrectly
handles null key entry in a specific (buggy) NIS-map. (compared with
SunOS 4 ypserv).

My master NIS server runs on Sun3, SunOS 4.1.1_U1. When I insert a
blank line to /etc/protocols, Sun's NIS system makes BAD protocols.bynumber
map which contains entry: key="".

Other slave NIS servers on Sun, handle this bad map without any problem.
But FreeBSD's NIS server can not handle the map like Sun's in following case:

* NIS client asks NIS server to get next entry of the bad entry (key="").

Sun returns correct entry, which is a just next of (key="").
FreeBSD returns first entry in the map. This results NIS clients to go loop!

I believe that most incorrect player of this problem is Sun's NIS master server
environment, but I wish that FreeBSD could treat this buggy map correctly
with some proper fixes...

Fix: 

/usr/src/gnu/usr.sbin/ypserv/server.c line 346 will be fixed..
How-To-Repeat: 
I do not know whether FreeBSD's NIS master server environment (Makefile,
tools) will make these bad map or not, so I can not answer...
Of caurse, I can repeat the problem in my environment easily :-)
Comment 1 Poul-Henning Kamp freebsd_committer freebsd_triage 1998-05-25 08:55:23 UTC
State Changed
From-To: open->suspended

Awaiting committer 
Comment 2 Sheldon Hearn freebsd_committer freebsd_triage 2002-01-24 12:02:40 UTC
State Changed
From-To: suspended->open

FreeBSD's non-GPL YP seems to have a maintainer these days. 


Comment 3 Sheldon Hearn freebsd_committer freebsd_triage 2002-01-24 12:02:40 UTC
Responsible Changed
From-To: freebsd-bugs->wpaul

Bill, if this is no longer an issue, let me know and I'll close the 
PR for you.
Comment 4 dwmalone freebsd_committer freebsd_triage 2002-01-24 22:19:23 UTC
State Changed
From-To: open->closed

Original submitter says it's OK to close this PR.