auth(3erl)
auth(3erl) π
Okay bestie, welcome to the Erlang Module Definition for auth β the Erlang network authentication server. π«Ά This page is giving vintage, because the whole module is deprecated, but every detail is still right here. No cap.
NAME πΈ
auth β Erlang network authentication server.
DESCRIPTION π¦
This module is deprecated. π For a description of the Magic Cookie system, refer to Distributed Erlang in the Erlang Reference Manual. That's the official tea, fr fr.
DATA TYPES π
cookie() = atom()
EXPORTS β¨
cookie() -> Cookie
Types:
Cookie = cookie()
Use erlang:get_cookie() in ERTS instead. That's the replacement, bestie. π
cookie(TheCookie) -> true
Types:
TheCookie = Cookie | [Cookie]
The cookie can also be specified as a list with a single atom element. Cute little list moment. π
Cookie = cookie()
Use erlang:set_cookie(node(), Cookie) in ERTS instead. Iconic swap. β¨
is_auth(Node) -> yes | no
Types:
Node = node()
Returns yes if communication with Node is authorized. 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). So dramatic, but that's the rule. π
Use net_adm:ping(Node) instead.
node_cookie([Node, Cookie]) -> yes | no
Types:
Node = node()
Cookie = cookie()
Equivalent to node_cookie(Node, Cookie).
node_cookie(Node, Cookie) -> yes | no
Types:
Node = node()
Cookie = 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).
Signed off with main-character footer energy: Ericsson AB, kernel 8.5.4.2, page auth(3erl). No date line in the footer, bestie β not inventing one. π
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms