[Python-bugs-list] [Bug #133084] nis.match('username', 'aliases') does not work under Linux

noreply@sourceforge.net noreply@sourceforge.net
Mon, 19 Feb 2001 07:17:38 -0800


Bug #133084, was updated on 2001-Feb-19 07:17
Here is a current snapshot of the bug.

Project: Python
Category: Python Library
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: nobody
Assigned to : nobody
Summary: nis.match('username', 'aliases') does not work under Linux

Details: 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}
 };


For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=133084&group_id=5470