Fred Drake | 7fefba5 | 1999-06-27 15:01:08 +0000 | [diff] [blame] | 1 | \section{\module{nis} --- |
Fred Drake | 0d6e6e0 | 1999-07-06 15:43:55 +0000 | [diff] [blame] | 2 | Interface to Sun's NIS (Yellow Pages)} |
Fred Drake | 7fefba5 | 1999-06-27 15:01:08 +0000 | [diff] [blame] | 3 | |
| 4 | \declaremodule{extension}{nis} |
| 5 | \platform{UNIX} |
| 6 | \moduleauthor{Fred Gansevles}{Fred.Gansevles@cs.utwente.nl} |
Fred Drake | 57657bc | 2000-12-01 15:25:23 +0000 | [diff] [blame] | 7 | \sectionauthor{Moshe Zadka}{moshez@zadka.site.co.il} |
Fred Drake | 91f2f26 | 2001-07-06 19:28:48 +0000 | [diff] [blame] | 8 | \modulesynopsis{Interface to Sun's NIS (Yellow Pages) library.} |
Fred Drake | 7fefba5 | 1999-06-27 15:01:08 +0000 | [diff] [blame] | 9 | |
| 10 | The \module{nis} module gives a thin wrapper around the NIS library, useful |
| 11 | for central administration of several hosts. |
| 12 | |
| 13 | Because NIS exists only on \UNIX{} systems, this module is |
Fred Drake | 91f2f26 | 2001-07-06 19:28:48 +0000 | [diff] [blame] | 14 | only available for \UNIX. |
Fred Drake | 7fefba5 | 1999-06-27 15:01:08 +0000 | [diff] [blame] | 15 | |
| 16 | The \module{nis} module defines the following functions: |
| 17 | |
| 18 | \begin{funcdesc}{match}{key, mapname} |
| 19 | Return the match for \var{key} in map \var{mapname}, or raise an |
| 20 | error (\exception{nis.error}) if there is none. |
| 21 | Both should be strings, \var{key} is 8-bit clean. |
Fred Drake | 91f2f26 | 2001-07-06 19:28:48 +0000 | [diff] [blame] | 22 | Return value is an arbitrary array of bytes (may contain \code{NULL} |
Fred Drake | 7fefba5 | 1999-06-27 15:01:08 +0000 | [diff] [blame] | 23 | and other joys). |
| 24 | |
Fred Drake | 91f2f26 | 2001-07-06 19:28:48 +0000 | [diff] [blame] | 25 | Note that \var{mapname} is first checked if it is an alias to another |
| 26 | name. |
Fred Drake | 7fefba5 | 1999-06-27 15:01:08 +0000 | [diff] [blame] | 27 | \end{funcdesc} |
| 28 | |
| 29 | \begin{funcdesc}{cat}{mapname} |
| 30 | Return a dictionary mapping \var{key} to \var{value} such that |
| 31 | \code{match(\var{key}, \var{mapname})==\var{value}}. |
Thomas Wouters | f831663 | 2000-07-16 19:01:10 +0000 | [diff] [blame] | 32 | Note that both keys and values of the dictionary are arbitrary |
Fred Drake | 7fefba5 | 1999-06-27 15:01:08 +0000 | [diff] [blame] | 33 | arrays of bytes. |
| 34 | |
Fred Drake | 91f2f26 | 2001-07-06 19:28:48 +0000 | [diff] [blame] | 35 | Note that \var{mapname} is first checked if it is an alias to another |
| 36 | name. |
Fred Drake | 7fefba5 | 1999-06-27 15:01:08 +0000 | [diff] [blame] | 37 | \end{funcdesc} |
| 38 | |
| 39 | \begin{funcdesc}{maps}{} |
| 40 | Return a list of all valid maps. |
| 41 | \end{funcdesc} |
| 42 | |
| 43 | |
| 44 | The \module{nis} module defines the following exception: |
| 45 | |
| 46 | \begin{excdesc}{error} |
| 47 | An error raised when a NIS function returns an error code. |
| 48 | \end{excdesc} |