diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-04 19:12:37 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-04 19:12:37 (GMT) |
commit | 57a34e802638d51fc4b1dfba5ee9d8231ab52afe (patch) | |
tree | 21c5ccae82eff467e548abea9fe59435be650205 /Doc | |
parent | faa26dfdd818544b1d1b0de4fa0a9e87cc81d510 (diff) | |
download | cpython-57a34e802638d51fc4b1dfba5ee9d8231ab52afe.zip cpython-57a34e802638d51fc4b1dfba5ee9d8231ab52afe.tar.gz cpython-57a34e802638d51fc4b1dfba5ee9d8231ab52afe.tar.bz2 |
Patch #1422385: Changes to nis module to support multiple NIS domains
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libnis.tex | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/Doc/lib/libnis.tex b/Doc/lib/libnis.tex index 1d52868..cc1482d 100644 --- a/Doc/lib/libnis.tex +++ b/Doc/lib/libnis.tex @@ -15,7 +15,7 @@ only available for \UNIX. The \module{nis} module defines the following functions: -\begin{funcdesc}{match}{key, mapname} +\begin{funcdesc}{match}{key, mapname[, domain=default_domain]} Return the match for \var{key} in map \var{mapname}, or raise an error (\exception{nis.error}) if there is none. Both should be strings, \var{key} is 8-bit clean. @@ -24,9 +24,13 @@ and other joys). Note that \var{mapname} is first checked if it is an alias to another name. + +\versionchanged[The \var{domain} argument allows to override +the NIS domain used for the lookup. If unspecified, lookup is in the +default NIS domain]{2.5} \end{funcdesc} -\begin{funcdesc}{cat}{mapname} +\begin{funcdesc}{cat}{mapname[, domain=default_domain]} Return a dictionary mapping \var{key} to \var{value} such that \code{match(\var{key}, \var{mapname})==\var{value}}. Note that both keys and values of the dictionary are arbitrary @@ -34,12 +38,23 @@ arrays of bytes. Note that \var{mapname} is first checked if it is an alias to another name. + +\versionchanged[The \var{domain} argument allows to override +the NIS domain used for the lookup. If unspecified, lookup is in the +default NIS domain]{2.5} \end{funcdesc} -\begin{funcdesc}{maps}{} + \begin{funcdesc}{maps}{[domain=default_domain]} Return a list of all valid maps. + +\versionchanged[The \var{domain} argument allows to override +the NIS domain used for the lookup. If unspecified, lookup is in the +default NIS domain]{2.5} \end{funcdesc} + \begin{funcdesc}{get_default_domain}{} +Return the system default NIS domain. \versionadded{2.5} +\end{funcdesc} The \module{nis} module defines the following exception: |