aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/doc/src/auth.xml
blob: c735d02fede3961aa7d8f17f1b1f1007569b50c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">

<erlref>
  <header>
    <copyright>
      <year>1996</year><year>2016</year>
      <holder>Ericsson AB. All Rights Reserved.</holder>
    </copyright>
    <legalnotice>
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at
 
          http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
    
    </legalnotice>

    <title>auth</title>
    <prepared></prepared>
    <docno></docno>
    <date></date>
    <rev></rev>
  </header>
  <module since="">auth</module>
  <modulesummary>Erlang network authentication server.</modulesummary>
  <description>
    <p>This module is deprecated. For a description of the Magic
      Cookie system, refer to
      <seealso marker="doc/reference_manual:distributed">Distributed Erlang</seealso> in the Erlang Reference Manual.</p>
  </description>
  <datatypes>
    <datatype>
      <name name="cookie"/>
    </datatype>
  </datatypes>
  <funcs>
    <func>
      <name name="cookie" arity="0" since=""/>
      <fsummary>Magic cookie for local node (deprecated).</fsummary>
      <desc>
        <p>Use
          <seealso marker="erts:erlang#get_cookie/0"><c>erlang:get_cookie()</c></seealso>
          in ERTS instead.</p>
      </desc>
    </func>
    <func>
      <name name="cookie" arity="1" since=""/>
      <fsummary>Set the magic for the local node (deprecated).</fsummary>
      <type_desc variable="TheCookie">
        The cookie can also be specified as a list with a single atom element.
      </type_desc>
      <desc>
        <p>Use
          <seealso marker="erts:erlang#set_cookie/2"><c>erlang:set_cookie(node(), <anno>Cookie</anno>)</c>
	  in ERTS</seealso> instead.</p>
      </desc>
    </func>
    <func>
      <name name="is_auth" arity="1" since=""/>
      <fsummary>Status of communication authorization (deprecated).</fsummary>
      <desc>
        <p>Returns <c>yes</c> if communication with <c><anno>Node</anno></c> is
          authorized. Notice that a connection to <c><anno>Node</anno></c>
          is established in this case. Returns <c>no</c> if <c><anno>Node</anno></c>
          does not exist or communication is not authorized (it has
          another cookie than <c>auth</c> thinks it has).</p>
        <p>Use <seealso marker="net_adm#ping/1"><c>net_adm:ping(<anno>Node</anno>)</c></seealso>
          instead.</p>
      </desc>
    </func>
    <func>
      <name since="">node_cookie([Node, Cookie]) -> yes | no</name>
      <fsummary>Set the magic cookie for a node and verify authorization (deprecated).</fsummary>
      <type>
        <v>Node = node()</v>
        <v>Cookie = <seealso marker="#type-cookie"><c>cookie()</c></seealso></v>
      </type>
      <desc>
        <p>Equivalent to
          <seealso marker="#node_cookie/2"><c>node_cookie(Node, Cookie)</c></seealso>.</p>
      </desc>
    </func>
    <func>
      <name name="node_cookie" arity="2" since=""/>
      <fsummary>Set the magic cookie for a node and verify authorization (deprecated).</fsummary>
      <desc>
        <p>Sets the magic cookie of <c><anno>Node</anno></c> to
	<c><anno>Cookie</anno></c> and verifies the status of the authorization.
          Equivalent to calling
          <seealso marker="erts:erlang#set_cookie/2"><c>erlang:set_cookie(<anno>Node</anno>, <anno>Cookie</anno>)</c></seealso>, followed by
          <seealso marker="#is_auth/1"><c>auth:is_auth(<anno>Node</anno>)</c></seealso>.</p>
      </desc>
    </func>
  </funcs>
</erlref>