The nis module currently has no way to access nis domains other than the default NIS domain. This is fairly easy to achieve via the C API and so I've patched it. Summary of changes: I've added a new get_default_domain() function and exposed it to python. I've added an optional "domain" keyword arg to the cat, maps and match arguments but defaulted it to the default domain to ensure backwards compatibility.
Logged In: YES user_id=145982 The previous patch was a little lazy. I've now taken the opportunity to add module doc and fix the two compile time warnings as well. New diff attached.
Logged In: YES user_id=21627 Thanks for the patch, committed as revision 42235. In the future, please remember the following details: - use PyDoc_STRVAR for documentation variables - add changes to the tex documentation as well