/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 clients.conf

  • Committer: Teddy Hogeborn
  • Date: 2015-06-28 16:35:27 UTC
  • mto: This revision was merged to the branch mainline in revision 759.
  • Revision ID: teddy@recompile.se-20150628163527-cky0ec59zew7teua
Add a plugin helper directory, available to all plugins.

* Makefile (PLUGIN_HELPERS): New; list of plugin helpers.
  (CPROGS): Appended "$(PLUGIN_HELPERS)".
* initramfs-tools-hook: Create new plugin helper directory, and copy
                        plugin helpers provided by the system and/or
                        by the local administrator.
  (PLUGINHELPERDIR): New.
* plugin-runner.c: Take new --plugin-helper-dir option and provide
                   environment variable to all plugins.
  (PHDIR): New; set to "/lib/mandos/plugin-helpers".
  (main/pluginhelperdir): New.
  (main/options): New option "--plugin-helper-dir".
  (main/parse_opt, main/parse_opt_config_file): Accept new option.
  (main): Use new option to set MANDOSPLUGINHELPERDIR environment
          variable as if using --global-env MANDOSPLUGINHELPERDIR=...
* plugin-runner.xml: Document new --plugin-helper-dir option.
  (SYNOPSIS, OPTIONS): Add "--plugin-helper-dir" option.
  (PLUGINS/WRITING PLUGINS): Document new environment variable
                             available to plugins.
  (ENVIRONMENT): Document new environment variable
                 "MANDOSPLUGINHELPERDIR" affected by the new
                 --plugin-helper-dir option.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
# How long until a client is disabled and not be allowed to get the
6
6
# data this server holds.
7
 
;timeout = 5m
 
7
;timeout = PT5M
8
8
 
9
9
# How often to run the checker to confirm that a client is still up.
10
10
# Note: a new checker will not be started if an old one is still
11
11
# running.  The server will wait for a checker to complete until the
12
12
# above "timeout" occurs, at which time the client will be disabled,
13
13
# and any running checker killed.
14
 
;interval = 2m
 
14
;interval = PT2M
15
15
 
16
16
# Extended timeout is an added timeout that is given once after a
17
17
# password has been sent sucessfully to a client.  This allows for
18
18
# additional delays caused by file system checks and quota checks.
19
 
;extended_timeout = 15m
 
19
;extended_timeout = PT15M
20
20
 
21
21
# What command to run as "the checker".
22
22
;checker = fping -q -- %%(host)s
25
25
;approved_by_default = True
26
26
 
27
27
# How long to wait for approval.
28
 
;approval_delay = 0s
 
28
;approval_delay = PT0S
29
29
 
30
30
# How long one approval will last.
31
 
;approval_duration = 1s
 
31
;approval_duration = PT1S
32
32
 
33
33
# Whether this client is enabled by default
34
34
;enabled = True
78
78
;host = 192.0.2.3
79
79
;
80
80
;# Parameters from the [DEFAULT] section can be overridden per client.
81
 
;interval = 1m
 
81
;interval = PT1M
82
82
;
83
83
;# This client requires manual approval before it receives its secret.
84
84
;approved_by_default = False
85
85
;# Require approval within 30 seconds.
86
 
;approval_delay = 30s
 
86
;approval_delay = PT30S
87
87
;####