blob: 14f47f0af83499a925780903f8193c106a45a173 [file] [log] [blame]
Fred Drake7fefba51999-06-27 15:01:08 +00001\section{\module{nis} ---
Fred Drake0d6e6e01999-07-06 15:43:55 +00002 Interface to Sun's NIS (Yellow Pages)}
Fred Drake7fefba51999-06-27 15:01:08 +00003
4\declaremodule{extension}{nis}
5 \platform{UNIX}
6\moduleauthor{Fred Gansevles}{Fred.Gansevles@cs.utwente.nl}
Fred Drake57657bc2000-12-01 15:25:23 +00007\sectionauthor{Moshe Zadka}{moshez@zadka.site.co.il}
Fred Drake38e5d272000-04-03 20:13:55 +00008\modulesynopsis{Interface to Sun's NIS (a.k.a. Yellow Pages) library.}
Fred Drake7fefba51999-06-27 15:01:08 +00009
10The \module{nis} module gives a thin wrapper around the NIS library, useful
11for central administration of several hosts.
12
13Because NIS exists only on \UNIX{} systems, this module is
14only available for \UNIX{}.
15
16The \module{nis} module defines the following functions:
17
18\begin{funcdesc}{match}{key, mapname}
19Return the match for \var{key} in map \var{mapname}, or raise an
20error (\exception{nis.error}) if there is none.
21Both should be strings, \var{key} is 8-bit clean.
Thomas Woutersf8316632000-07-16 19:01:10 +000022Return value is an arbitrary array of bytes (i.e., may contain \code{NULL}
Fred Drake7fefba51999-06-27 15:01:08 +000023and other joys).
24
25Note that \var{mapname} is first checked if it is an alias to another name.
Fred Drake7fefba51999-06-27 15:01:08 +000026\end{funcdesc}
27
28\begin{funcdesc}{cat}{mapname}
29Return a dictionary mapping \var{key} to \var{value} such that
30\code{match(\var{key}, \var{mapname})==\var{value}}.
Thomas Woutersf8316632000-07-16 19:01:10 +000031Note that both keys and values of the dictionary are arbitrary
Fred Drake7fefba51999-06-27 15:01:08 +000032arrays of bytes.
33
34Note that \var{mapname} is first checked if it is an alias to another name.
35\end{funcdesc}
36
37\begin{funcdesc}{maps}{}
38Return a list of all valid maps.
39\end{funcdesc}
40
41
42The \module{nis} module defines the following exception:
43
44\begin{excdesc}{error}
45An error raised when a NIS function returns an error code.
46\end{excdesc}