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>
176
<term><option>--env-for
177
<replaceable>PLUGIN</replaceable><literal>:</literal
178
><replaceable>ENV</replaceable><literal>=</literal
179
><replaceable>value</replaceable></option></term>
181
<replaceable>PLUGIN</replaceable><literal>:</literal
182
><replaceable>ENV</replaceable><literal>=</literal
183
><replaceable>value</replaceable></option></term>
162
191
<term><option>--global-options
163
192
<replaceable>OPTIONS</replaceable></option></term>
326
355
<filename>/lib/mandos/plugins.d</filename>, but this can be
327
356
changed with the <option>--plugin-dir</option> option. The
328
357
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
358
a password <emphasis>and</emphasis> exit with a successful exit
359
code will make this plugin-runner output the password from that
360
plugin, stop any other plugins, and exit.
364
<refsect1 id="fallback">
336
365
<title>FALLBACK</title>
367
If no plugins succeed, this program will, as a fallback, ask for
368
a password on the console using <citerefentry><refentrytitle
369
>getpass</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
370
and output it. This is not meant to be the normal mode of
371
operation, as there is a separate plugin for getting a password
340
376
<refsect1 id="exit_status">
341
377
<title>EXIT STATUS</title>
379
Exit status of this program is zero if no errors were
380
encountered, and otherwise not. The fallback (see <xref
381
linkend="fallback"/>) may or may not have succeeded in either
386
<refsect1 id="environment">
387
<title>ENVIRONMENT</title>
346
393
<refsect1 id="file">
347
394
<title>FILES</title>
352
<refsect1 id="notes">
399
>/conf/conf.d/mandos/plugin-runner.conf</filename></term>
402
Since this program will be run as a keyscript, there is
403
little to no opportunity to pass command line arguments
404
to it. Therefore, it will <emphasis>also</emphasis>
405
read this file and use its contents as
406
whitespace-separated command line options. Also,
407
everything from a <quote>#</quote> character to the end
408
of a line is ignored.