~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/kernel/doc/src/auth.xml

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20090215164252-dxpjjuq108nz4noa
Tags: 1:12.b.5-dfsg-2
Upload to unstable after lenny is released.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="latin1" ?>
 
2
<!DOCTYPE erlref SYSTEM "erlref.dtd">
 
3
 
 
4
<erlref>
 
5
  <header>
 
6
    <copyright>
 
7
      <year>1996</year>
 
8
      <year>2007</year>
 
9
      <holder>Ericsson AB, All Rights Reserved</holder>
 
10
    </copyright>
 
11
    <legalnotice>
 
12
  The contents of this file are subject to the Erlang Public License,
 
13
  Version 1.1, (the "License"); you may not use this file except in
 
14
  compliance with the License. You should have received a copy of the
 
15
  Erlang Public License along with this software. If not, it can be
 
16
  retrieved online at http://www.erlang.org/.
 
17
 
 
18
  Software distributed under the License is distributed on an "AS IS"
 
19
  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
20
  the License for the specific language governing rights and limitations
 
21
  under the License.
 
22
 
 
23
  The Initial Developer of the Original Code is Ericsson AB.
 
24
    </legalnotice>
 
25
 
 
26
    <title>auth</title>
 
27
    <prepared></prepared>
 
28
    <docno></docno>
 
29
    <date></date>
 
30
    <rev></rev>
 
31
  </header>
 
32
  <module>auth</module>
 
33
  <modulesummary>Erlang Network Authentication Server</modulesummary>
 
34
  <description>
 
35
    <p>This module is deprecated. For a description of the Magic
 
36
      Cookie system, refer to
 
37
      <seealso marker="doc/reference_manual:distributed">Distributed Erlang</seealso> in the Erlang Reference Manual.</p>
 
38
  </description>
 
39
  <funcs>
 
40
    <func>
 
41
      <name>is_auth(Node) -> yes | no</name>
 
42
      <fsummary>Status of communication authorization (deprecated)</fsummary>
 
43
      <type>
 
44
        <v>Node = node()</v>
 
45
      </type>
 
46
      <desc>
 
47
        <p>Returns <c>yes</c> if communication with <c>Node</c> is
 
48
          authorized. Note that a connection to <c>Node</c> will
 
49
          be established in this case. Returns <c>no</c> if <c>Node</c>
 
50
          does not exist or communication is not authorized (it has
 
51
          another cookie than <c>auth</c> thinks it has).</p>
 
52
        <p>Use <seealso marker="net_adm#ping/1">net_adm:ping(Node)</seealso>
 
53
          instead.</p>
 
54
      </desc>
 
55
    </func>
 
56
    <func>
 
57
      <name>cookie() -> Cookie</name>
 
58
      <fsummary>Magic cookie for local node (deprecated)</fsummary>
 
59
      <type>
 
60
        <v>Cookie = atom()</v>
 
61
      </type>
 
62
      <desc>
 
63
        <p>Use
 
64
          <seealso marker="erlang#erlang:get_cookie/0">erlang:get_cookie()</seealso>
 
65
          instead.</p>
 
66
      </desc>
 
67
    </func>
 
68
    <func>
 
69
      <name>cookie(TheCookie) -> true</name>
 
70
      <fsummary>Set the magic for the local node (deprecated)</fsummary>
 
71
      <type>
 
72
        <v>TheCookie = Cookie | [Cookie]</v>
 
73
        <d>The cookie may also be given as a list with a single atom element</d>
 
74
        <v>&nbsp;Cookie = atom()</v>
 
75
      </type>
 
76
      <desc>
 
77
        <p>Use
 
78
          <seealso marker="erlang#erlang:set_cookie/2">erlang:set_cookie(node(), Cookie)</seealso>
 
79
          instead.</p>
 
80
      </desc>
 
81
    </func>
 
82
    <func>
 
83
      <name>node_cookie([Node, Cookie]) -> yes | no</name>
 
84
      <fsummary>Set the magic cookie for a node and verify authorization (deprecated)</fsummary>
 
85
      <type>
 
86
        <v>Node = node()</v>
 
87
        <v>Cookie = atom()</v>
 
88
      </type>
 
89
      <desc>
 
90
        <p>Equivalent to
 
91
          <seealso marker="#node_cookie/2">node_cookie(Node, Cookie)</seealso>.</p>
 
92
      </desc>
 
93
    </func>
 
94
    <func>
 
95
      <name>node_cookie(Node, Cookie) -> yes | no</name>
 
96
      <fsummary>Set the magic cookie for a node and verify authorization (deprecated)</fsummary>
 
97
      <type>
 
98
        <v>Node = node()</v>
 
99
        <v>Cookie = atom()</v>
 
100
      </type>
 
101
      <desc>
 
102
        <p>Sets the magic cookie of <c>Node</c> to <c>Cookie</c>, and
 
103
          verifies the status of the authorization.
 
104
          Equivalent to calling
 
105
          <seealso marker="erlang#erlang:set_cookie/2">erlang:set_cookie(Node, Cookie)</seealso>, followed by
 
106
          <seealso marker="#is_auth/1">auth:is_auth(Node)</seealso>.</p>
 
107
      </desc>
 
108
    </func>
 
109
  </funcs>
 
110
</erlref>
 
111