54
54
<command>&COMMANDNAME;</command>
55
55
<group rep="repeat">
56
<arg choice="plain"><option>--global-envs=<replaceable
56
<arg choice="plain"><option>--global-env=<replaceable
57
57
>VAR</replaceable><literal>=</literal><replaceable
58
58
>value</replaceable></option></arg>
59
59
<arg choice="plain"><option>-e
64
64
<group rep="repeat">
65
<arg choice="plain"><option>--envs-for=<replaceable
65
<arg choice="plain"><option>--env-for=<replaceable
66
66
>PLUGIN</replaceable><literal>:</literal><replaceable
67
67
>ENV</replaceable><literal>=</literal><replaceable
68
68
>value</replaceable></option></arg>
159
159
<title>OPTIONS</title>
162
<term><option>--global-env
163
<replaceable>VAR</replaceable><literal>=</literal><replaceable
164
>value</replaceable></option></term>
166
<replaceable>VAR</replaceable><literal>=</literal><replaceable
167
>value</replaceable></option></term>
170
This option will add an environment variable setting to
171
all plugins. This will override any inherited environment
178
<term><option>--env-for
179
<replaceable>PLUGIN</replaceable><literal>:</literal
180
><replaceable>ENV</replaceable><literal>=</literal
181
><replaceable>value</replaceable></option></term>
183
<replaceable>PLUGIN</replaceable><literal>:</literal
184
><replaceable>ENV</replaceable><literal>=</literal
185
><replaceable>value</replaceable></option></term>
188
This option will add an environment variable setting to
189
the <replaceable>PLUGIN</replaceable> plugin. This will
190
override any inherited environment variables or
191
environment variables specified using
192
<option>--global-env</option>.
162
198
<term><option>--global-options
163
199
<replaceable>OPTIONS</replaceable></option></term>
326
362
<filename>/lib/mandos/plugins.d</filename>, but this can be
327
363
changed with the <option>--plugin-dir</option> option. The
328
364
plugins are started in parallel, and the first plugin to output
329
a password and exit with a successful exit code will make this
330
plugin-runner output that password, stop any other plugins, and
365
a password <emphasis>and</emphasis> exit with a successful exit
366
code will make this plugin-runner output the password from that
367
plugin, stop any other plugins, and exit.
371
<refsect1 id="fallback">
336
372
<title>FALLBACK</title>
374
If no plugins succeed, this program will, as a fallback, ask for
375
a password on the console using <citerefentry><refentrytitle
376
>getpass</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
377
and output it. This is not meant to be the normal mode of
378
operation, as there is a separate plugin for getting a password
340
383
<refsect1 id="exit_status">
341
384
<title>EXIT STATUS</title>
386
Exit status of this program is zero if no errors were
387
encountered, and otherwise not. The fallback (see <xref
388
linkend="fallback"/>) may or may not have succeeded in either
393
<refsect1 id="environment">
394
<title>ENVIRONMENT</title>
346
400
<refsect1 id="file">
347
401
<title>FILES</title>
352
<refsect1 id="notes">
406
>/conf/conf.d/mandos/plugin-runner.conf</filename></term>
409
Since this program will be run as a keyscript, there is
410
little to no opportunity to pass command line arguments
411
to it. Therefore, it will <emphasis>also</emphasis>
412
read this file and use its contents as
413
whitespace-separated command line options. Also,
414
everything from a <quote>#</quote> character to the end
415
of a line is ignored.
418
This file will be processed <emphasis>before</emphasis>
419
the normal command line options, so the latter can
420
override the former, if need be.
358
428
<refsect1 id="bugs">
359
429
<title>BUGS</title>
431
There is no <option>--enable</option> option to enable disabled
364
436
<refsect1 id="examples">
365
437
<title>EXAMPLE</title>
370
442
<refsect1 id="security">
371
443
<title>SECURITY</title>
376
448
<refsect1 id="see_also">
377
449
<title>SEE ALSO</title>