/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 DBUS-API

  • Committer: Teddy Hogeborn
  • Date: 2013-05-22 20:00:18 UTC
  • Revision ID: teddy@recompile.se-20130522200018-xtbddz21pl7c69kw
* mandos: Bug fix: Don't print output from checkers when running in
          foreground.
          Bug fix: Do not fail when client is removed from
          clients.conf but saved settings remain.
  (Client.server_settings): New attribute.
  (Client.__init__): Take new "server_settings" keyword argument.  All
                     callers changed.
  (Client.start_checker): Redirect stdout and stderr for checkers when
                          running in foreground.
  (main): New "wnull" global variable for a writable /dev/null file.
          Do not restore settings for clients no longer in config file.
  (main/cleanup): Close wnull file object.  Do not save client
                  attribute "server_settings"
* mandos-monitor: Update to work in Urwid 1.0.1.
                  Adapt to work in both Python 3 and Python 2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
    Assert that this client has been checked and found to be alive.
56
56
    This will restart the timeout before disabling this client.  See
57
57
    also the "LastCheckedOK" property.
 
58
    
 
59
*** Disable() → nothing
 
60
    Disable this client.  See also the "Enabled" property.
 
61
    
 
62
*** Enable() → nothing
 
63
    Enable this client.  See also the "Enabled" property.
 
64
    
 
65
*** StartChecker() → nothing
 
66
    Start a new checker for this client, if none is currently
 
67
    running.  See also the "CheckerRunning" property.
 
68
    
 
69
*** StopChecker() → nothing
 
70
    Abort a running checker process for this client, if any.  See also
 
71
    the "CheckerRunning" property.
58
72
 
59
73
** Properties
60
74
   
82
96
   | LastCheckerStatus (i)   | n    | Read       | N/A                 |
83
97
   | LastEnabled (j)         | s    | Read       | N/A                 |
84
98
   | Name                    | s    | Read       | (Section name)      |
 
99
   | ObjectPath              | o    | Read       | N/A                 |
85
100
   | Secret (k)              | ay   | Write      | secret (or secfile) |
86
101
   | Timeout (a)             | t    | Read/Write | timeout             |
87
102
   
89
104
   
90
105
   b) An approval is currently pending.
91
106
   
92
 
   c) Changing this property can either start a new checker or abort a
93
 
      running one.
 
107
   c) Setting this property is equivalent to calling StartChecker() or
 
108
      StopChecker().
94
109
   
95
110
   d) The creation time of this client object, as an RFC 3339 string.
96
111
   
97
 
   e) Changing this property enables or disables a client.
 
112
   e) Setting this property is equivalent to calling Enable() or
 
113
      Disable().
98
114
   
99
115
   f) The date and time this client will be disabled, as an RFC 3339
100
116
      string, or an empty string if this is not scheduled.
134
150
    milliseconds, depending on ApprovedByDefault.  Approve() can now
135
151
    usefully be called on this client object.
136
152
    
 
153
*** PropertyChanged(s: Property, v: Value)
 
154
    The Property on this client has changed to Value.
 
155
    
137
156
*** Rejected(s: Reason)
138
157
    This client was not given its secret for a specified Reason.
139
158
 
140
159
* Copyright
141
160
 
142
 
    Copyright © 2010-2015 Teddy Hogeborn
143
 
    Copyright © 2010-2015 Björn Påhlsson
 
161
    Copyright © 2010-2012 Teddy Hogeborn
 
162
    Copyright © 2010-2012 Björn Påhlsson
144
163
  
145
164
** License:
146
165