Bug 41851 - ypmatch not handling services correctly
ypmatch not handling services correctly
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: yp-tools (Show other bugs)
7.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Alexander Larsson
Aaron Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-05-22 12:02 EDT by Mike Sklar
Modified: 2007-04-18 12:33 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-03-19 10:44:26 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Mike Sklar 2001-05-22 12:02:41 EDT
Description of Problem:

ypmatch does not work properly for checking services. Even though the /var/yp/nicknames is setup to to lookup byname and not bynumber.



How Reproducible:



asdfjkl$ ypmatch nntp hosts

Can't match key nntp in map hosts.byname. Reason: No such key in map



asdfjkl$ grep services /etc/nsswitch.conf /var/yp/nicknames

/etc/nsswitch.conf:services:   nis files

/var/yp/nicknames:services      services.byname



Steps to Reproduce:

1. bind to a yp server

2. make sure you /etc/nsswitch.conf and /var/yp/nicknames looks like mine.

3. ypmatch <servicename> services



Actual Results:





Expected Results:



Fix ypmatch code to do correct lookups for byname, not just bynumber.



Additional Information:
Comment 1 Alexander Larsson 2002-03-25 18:47:01 EST
Fixed in ypserv 2.2-5.

Note You need to log in before you can comment on or make changes to this bug.