1. 11 Dec, 1996 5 commits
    • Barry Warsaw's avatar
      test of the nis module · 3236b334
      Barry Warsaw authored
      3236b334
    • Barry Warsaw's avatar
      added test_nis · 78226819
      Barry Warsaw authored
      78226819
    • Barry Warsaw's avatar
      cat and puste errors · 1abda0fb
      Barry Warsaw authored
      1abda0fb
    • Barry Warsaw's avatar
      nis_maplist(): Use check of yp_get_default_domain() return value · 3696c524
      Barry Warsaw authored
      that's used in other parts of this module.
      
      nis_maps(): use PyArg_NoArgs().
      3696c524
    • Barry Warsaw's avatar
      Renamed, and bug fixed: · adbf4e66
      Barry Warsaw authored
      Two interesting problems in nis_maplist().  First, it is possible that
      clnt_create() will return NULL.  This was being caught, but no Python
      error was being set.  I use clnt_spcreateerror() to generate the value
      of the exception.
      
      But why would clnt_create() fail?  It's because no server was being
      found.  And why was this?  It was because nis_maplist() tried only to
      get the NIS master for the first map in the aliases list, which is
      passwd.byname, and guess what?  That's the one NIS map CNRI does *not*
      export!  So the yp_master() call was failing to return a valid
      server.  I now cycle through all the map aliases until I find a valid
      master.  If not, a different exception is set.
      
      I'm not sure this is the completely correct way to do all this, but
      short of rewriting the entire nismodule.c (to expose the proper API to
      Python), it should do the trick.
      adbf4e66
  2. 10 Dec, 1996 28 commits
  3. 09 Dec, 1996 7 commits