/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos.conf.xml

  • Committer: Teddy Hogeborn
  • Date: 2008-11-09 06:40:29 UTC
  • mto: (24.1.113 mandos)
  • mto: This revision was merged to the branch mainline in revision 238.
  • Revision ID: teddy@fukt.bsnet.se-20081109064029-df71jpoce308cq3v
First steps of a D-Bus interface to the server.

* mandos: Also import "dbus.service".
  (Client): Inherit from "dbus.service.Object", which is a new-style
            class, so inheriting from "object" is no longer necessary.
  (Client.interface): New temporary variable which only exists during
                     class definition.

  (Client.getName, Client.getFingerprint): New D-Bus getter methods.
  (Client.setSecret): New D-Bus setter method.
  (Client._set_timeout): Emit D-Bus signal "TimeoutChanged".
  (Client.getTimeout): New D-Bus getter method.
  (Client.TimeoutChanged): New D-Bus signal.
  (Client._set_interval): Emit D-Bus signal "IntervalChanged".
  (Client.getInterval): New D-Bus getter method.
  (Client.intervalChanged): New D-Bus signal.
  (Client.__init__): Also call "dbus.service.Object.__init__".
  (Client.started): New boolean attribute.
  (Client.start, Client.stop): Update "self.started", and emit D-Bus
                               signal "StateChanged".
  (Client.StateChanged): New D-Bus signal.
  (Client.stop): Use "self.started" instead of misusing "self.secret".
                 Also simplify code by using "getattr" instead of
                 "hasattr".
  (Client.checker_callback): Emit D-Bus signal "CheckerCompleted".
  (Client.CheckerCompleted): New D-Bus signal.
  (Client.bumpTimeout): D-Bus method name for "bump_timeout".
  (Client.start_checker): Emit D-Bus signal "CheckerStarted".
  (Client.CheckerStarted): New D-Bus signal.
  (Client.checkerIsRunning): New D-Bus method.
  (Client.StopChecker): D-Bus method name for "stop_checker".
  (Client.still_valid): First check "self.started".
  (Client.stillValid): D-Bus method name for "still_valid".

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0" encoding="UTF-8"?>
2
2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3
3
        "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4
 
<!ENTITY VERSION "1.0">
5
4
<!ENTITY CONFNAME "mandos.conf">
6
5
<!ENTITY CONFPATH "<filename>/etc/mandos/mandos.conf</filename>">
7
 
<!ENTITY TIMESTAMP "2008-09-04">
 
6
<!ENTITY TIMESTAMP "2008-09-30">
 
7
<!ENTITY % common SYSTEM "common.ent">
 
8
%common;
8
9
]>
9
10
 
10
11
<refentry xmlns:xi="http://www.w3.org/2001/XInclude">
12
13
    <title>Mandos Manual</title>
13
14
    <!-- NWalsh’s docbook scripts use this to generate the footer: -->
14
15
    <productname>Mandos</productname>
15
 
    <productnumber>&VERSION;</productnumber>
 
16
    <productnumber>&version;</productnumber>
16
17
    <date>&TIMESTAMP;</date>
17
18
    <authorgroup>
18
19
      <author>
37
38
    </copyright>
38
39
    <xi:include href="legalnotice.xml"/>
39
40
  </refentryinfo>
40
 
 
 
41
  
41
42
  <refmeta>
42
43
    <refentrytitle>&CONFNAME;</refentrytitle>
43
44
    <manvolnum>5</manvolnum>
49
50
      Configuration file for the Mandos server
50
51
    </refpurpose>
51
52
  </refnamediv>
52
 
 
 
53
  
53
54
  <refsynopsisdiv>
54
55
    <synopsis>&CONFPATH;</synopsis>
55
56
  </refsynopsisdiv>
56
 
 
 
57
  
57
58
  <refsect1 id="description">
58
59
    <title>DESCRIPTION</title>
59
60
    <para>
71
72
      <quote>#</quote> or <quote>;</quote> are ignored and may be used
72
73
      to provide comments.
73
74
    </para>
74
 
 
 
75
    
75
76
  </refsect1>
76
77
  <refsect1>
77
78
    <title>OPTIONS</title>
84
85
          <xi:include href="mandos-options.xml" xpointer="interface"/>
85
86
        </listitem>
86
87
      </varlistentry>
87
 
 
 
88
      
88
89
      <varlistentry>
89
90
        <term><option>address<literal> = </literal><replaceable
90
91
          >ADDRESS</replaceable></option></term>
92
93
          <xi:include href="mandos-options.xml" xpointer="address"/>
93
94
        </listitem>
94
95
      </varlistentry>
95
 
 
 
96
      
96
97
      <varlistentry>
97
98
        <term><option>port<literal> = </literal><replaceable
98
99
        >NUMBER</replaceable></option></term>
100
101
          <xi:include href="mandos-options.xml" xpointer="port"/>
101
102
        </listitem>
102
103
      </varlistentry>
103
 
 
 
104
      
104
105
      <varlistentry>
105
106
        <term><option>debug<literal> = </literal>{ <literal
106
107
          >1</literal> | <literal>yes</literal> | <literal
111
112
          <xi:include href="mandos-options.xml" xpointer="debug"/>
112
113
        </listitem>
113
114
      </varlistentry>
114
 
 
 
115
      
115
116
      <varlistentry>
116
117
        <term><option>priority<literal> = </literal><replaceable
117
118
        >STRING</replaceable></option></term>
119
120
          <xi:include href="mandos-options.xml" xpointer="priority"/>
120
121
        </listitem>
121
122
      </varlistentry>
122
 
 
 
123
      
123
124
      <varlistentry>
124
125
        <term><option>servicename<literal> = </literal
125
126
        ><replaceable>NAME</replaceable></option></term>
185
186
      <citerefentry><refentrytitle>mandos-clients.conf</refentrytitle>
186
187
      <manvolnum>5</manvolnum></citerefentry>
187
188
    </para>
188
 
 
 
189
    
189
190
    <variablelist>
190
191
      <varlistentry>
191
192
        <term>