"Fossies" - the Fresh Open Source Software Archive

Member "lib/kernel-6.5/doc/html/auth.html" (17 Sep 2019, 65066 Bytes) of package /linux/misc/otp_doc_html_22.1.tar.gz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the project site itself.

Kernel

Reference Manual

Version 6.5

Table of Contents

auth

Module

auth

Module Summary

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.

Data Types

cookie() = atom()

Exports

cookie() -> Cookie

Types

Cookie = cookie()

Use erlang:get_cookie() in ERTS instead.

cookie(TheCookie) -> true

Types

TheCookie = Cookie | [Cookie]
The cookie can also be specified as a list with a single atom element.
Cookie = cookie()
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).

Use net_adm:ping(Node) instead.

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).