[Python-bugs-list] [ python-Bugs-233084 ] nis.match('username', 'aliases') does not work under Linux

nobody nobody@sourceforge.net
Thu, 01 Mar 2001 21:44:20 -0800


Bugs #233084, was updated on 2001-02-19 07:17
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=233084&group_id=5470

Category: Python Library
Group: None
Status: Open
Priority: 5
Submitted By: Nobody/Anonymous
Assigned to: Fred L. Drake, Jr.
Summary: nis.match('username', 'aliases') does not work under Linux

Initial Comment:
The exception 'nis.error: No such key in map' is thrown
when issuing

>>> nis.match('username', 'aliases')

under SuSE-Linux 6.4 and 7.0 with both Python 2.0 and 
Python 2.1a2, even if 'username' is valid and 

$ ypmatch username aliases

works.

Fix: Apply the following patch to Modules/nismodule.c

--- nismodule.c.sv      Mon Feb 19 16:12:10 2001
+++ nismodule.c Mon Feb 19 16:15:28 2001
@@ -43,7 +43,7 @@
        {"hosts",       "hosts.byname",         0},
        {"protocols",   "protocols.bynumber",   0},
        {"services",    "services.byname",      0},
-       {"aliases",     "mail.aliases",         1}, /* created with 'makedbm -a' */
+       {"aliases",     "mail.aliases",         0}, /* created with 'makedbm -a' */
        {"ethers",      "ethers.byname",        0},
        {0L,            0L,                     0}
 };


----------------------------------------------------------------------

Comment By: Nobody/Anonymous
Date: 2001-02-23 11:52

Message:
You are all going down on this one

----------------------------------------------------------------------

Comment By: Fred L. Drake, Jr.
Date: 2001-02-19 13:33

Message:
Can anyone confirm this bug for other platforms?  How about the fix?  I don't have any access a network that uses NIS these days.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=233084&group_id=5470