nis
— 接口到 Sun 的 NIS (黄页)
¶
Deprecated since version 3.11, will be removed in version 3.13:
nis
模块被弃用 (见
PEP 594
了解细节)。
nis
module gives a thin wrapper around the NIS library, useful for central administration of several hosts.
Because NIS exists only on Unix systems, this module is only available for Unix.
可用性 :非 Emscripten,非 WASI。
本模块不工作 (或不可用) 于 WebAssembly 平台
wasm32-emscripten
and
wasm32-wasi
。见
WebAssembly 平台
了解更多信息。
nis
模块定义了下列函数:
Return the match for
key
in map
mapname
, or raise an error (
nis.error
) if there is none. Both should be strings,
key
is 8-bit clean. Return value is an arbitrary array of bytes (may contain
NULL
and other joys).
注意, mapname is first checked if it is an alias to another name.
domain argument allows overriding the NIS domain used for the lookup. If unspecified, lookup is in the default NIS domain.
Return a dictionary mapping
key
to
value
这样
match(key,
mapname)==value
. Note that both keys and values of the dictionary are arbitrary arrays of bytes.
注意, mapname is first checked if it is an alias to another name.
domain argument allows overriding the NIS domain used for the lookup. If unspecified, lookup is in the default NIS domain.
Return a list of all valid maps.
domain argument allows overriding the NIS domain used for the lookup. If unspecified, lookup is in the default NIS domain.
引发的错误当 NIS 函数返回错误代码时。