/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: Björn Påhlsson
  • Date: 2011-09-18 14:28:47 UTC
  • mto: This revision was merged to the branch mainline in revision 497.
  • Revision ID: belorn@fukt.bsnet.se-20110918142847-wx9ru8lxxsc4timi
New feature:
extended timeout given once when password is sent to client

New dbus-API property (Expire):
Time and date when a client will be disabled

New dbus-API property (ExtendedTimeout):
The duration of extended timeout

Changed default values:
Timeout: Changed from 1 hour to 5 minutes
Interval: Changed from 5 minutes to 2 minutes

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
   | CheckerRunning (c)      | b    | Read/Write | N/A                 |
87
87
   | Created (d)             | s    | Read       | N/A                 |
88
88
   | Enabled (e)             | b    | Read/Write | N/A                 |
 
89
   | Expires (f)             | s    | Read       | N/A                 |
89
90
   | Fingerprint             | s    | Read       | fingerprint         |
90
91
   | Host                    | s    | Read/Write | host                |
91
92
   | Interval (a)            | t    | Read/Write | interval            |
92
 
   | LastApprovalRequest (f) | s    | Read       | N/A                 |
93
 
   | LastCheckedOK (g)       | s    | Read/Write | N/A                 |
94
 
   | LastEnabled (h)         | s    | Read       | N/A                 |
 
93
   | LastApprovalRequest (g) | s    | Read       | N/A                 |
 
94
   | LastCheckedOK (h)       | s    | Read/Write | N/A                 |
 
95
   | LastEnabled (i)         | s    | Read       | N/A                 |
95
96
   | Name                    | s    | Read       | (Section name)      |
96
97
   | ObjectPath              | o    | Read       | N/A                 |
97
 
   | Secret (i)              | ay   | Write      | secret (or secfile) |
 
98
   | Secret (j)              | ay   | Write      | secret (or secfile) |
98
99
   | Timeout (a)             | t    | Read/Write | timeout             |
99
100
   
100
101
   a) Represented as milliseconds.
104
105
   c) Setting this property is equivalent to calling StartChecker() or
105
106
      StopChecker().
106
107
   
107
 
   d) The creation time of this client object, as a RFC 3339 string.
 
108
   d) The creation time of this client object, as an RFC 3339 string.
108
109
   
109
110
   e) Setting this property is equivalent to calling Enable() or
110
111
      Disable().
111
112
   
112
 
   f) The time of the last approval request, as a RFC 3339 string, or
113
 
      an empty string if this has not happened.
114
 
   
115
 
   g) The last time a checker was successful, as a RFC 3339 string, or
116
 
      an empty string if this has not happened.  Setting this property
117
 
      is equivalent to calling CheckedOK(), i.e. the current time is
118
 
      set, regardless of the string sent.  Please always use an empty
119
 
      string when setting this property, to allow for possible future
120
 
      expansion.
121
 
   
122
 
   h) The last time this client was enabled, as a RFC 3339 string, or
123
 
      an empty string if this has not happened.
124
 
   
125
 
   i) A raw byte array, not hexadecimal digits.
 
113
   f) The date and time this client will be disabled, as an RFC 3339
 
114
      string, or an empty string if this has not happened.
 
115
   
 
116
   g) The time of the last approval request, as an RFC 3339 string, or
 
117
      an empty string if this has not happened.
 
118
   
 
119
   h) The last time a checker was successful, as an RFC 3339 string,
 
120
      or an empty string if this has not happened.  Setting this
 
121
      property is equivalent to calling CheckedOK(), i.e. the current
 
122
      time is set, regardless of the string sent.  Please always use
 
123
      an empty string when setting this property, to allow for
 
124
      possible future expansion.
 
125
   
 
126
   i) The last time this client was enabled, as an RFC 3339 string, or
 
127
      an empty string if this has not happened.
 
128
   
 
129
   j) A raw byte array, not hexadecimal digits.
126
130
 
127
131
** Signals
128
132
*** CheckerCompleted(n: Exitcode, x: Waitstatus, s: Command)
140
144
    This client will be approved or denied in exactly Timeout
141
145
    milliseconds, depending on ApprovedByDefault.  Approve() can now
142
146
    usefully be called on this client object.
143
 
 
 
147
    
144
148
*** PropertyChanged(s: Property, v: Value)
145
149
    The Property on this client has changed to Value.
146
 
 
 
150
    
147
151
*** Rejected(s: Reason)
148
152
    This client was not given its secret for a specified Reason.
149
153
 
150
154
* Copyright
151
155
 
152
 
    Copyright © 2010 Teddy Hogeborn
153
 
    Copyright © 2010 Björn Påhlsson
 
156
    Copyright © 2010-2011 Teddy Hogeborn
 
157
    Copyright © 2010-2011 Björn Påhlsson
154
158
  
155
159
** License:
156
160