View Source auth (kernel v10.2)
Erlang network authentication server.
For a description of the Magic Cookie system, refer to Distributed Erlang in the Erlang Reference Manual.
Summary
Functions
Use erlang:get_cookie()
in ERTS instead.
Use erlang:set_cookie(node(), Cookie)
in ERTS
instead.
Returns yes
if communication with Node
is authorized.
Equivalent to node_cookie(Node, Cookie)
.
Sets the magic cookie of Node
to Cookie
and verifies the status of the
authorization.
Types
-type cookie() :: atom().
Functions
-spec cookie() -> Cookie when Cookie :: cookie().
Use erlang:get_cookie()
in ERTS instead.
-spec cookie(TheCookie) -> true when TheCookie :: Cookie | [Cookie], Cookie :: cookie().
Use erlang:set_cookie(node(), Cookie)
in ERTS
instead.
-spec is_auth(Node) -> yes | no when Node :: node().
Returns yes
if communication with Node
is authorized.
Use net_adm:ping(Node)
instead.
Notice that a connection to Node
is established in this case. Returns no
if
Node
does not exist or communication is not authorized (it has another cookie
than auth
thinks it has).
Equivalent to node_cookie(Node, Cookie)
.
Sets the magic cookie of Node
to Cookie
and verifies the status of the
authorization.
Equivalent to calling erlang:set_cookie(Node, Cookie)
,
followed by auth:is_auth(Node)
.