xref: /netbsd-src/crypto/external/bsd/heimdal/dist/lib/kadm5/iprop-commands.in (revision b9d004c6cc8d38329417ae29768c81e5f2a296cf)
1/*
2 * Copyright (c) 2005 Kungliga Tekniska Högskolan
3 * (Royal Institute of Technology, Stockholm, Sweden).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * 1. Redistributions of source code must retain the above copyright
11 *    notice, this list of conditions and the following disclaimer.
12 *
13 * 2. Redistributions in binary form must reproduce the above copyright
14 *    notice, this list of conditions and the following disclaimer in the
15 *    documentation and/or other materials provided with the distribution.
16 *
17 * 3. Neither the name of the Institute nor the names of its contributors
18 *    may be used to endorse or promote products derived from this software
19 *    without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33/* Id */
34
35command = {
36	name = "dump"
37	option = {
38		long = "config-file"
39		short = "c"
40		type = "string"
41		help = "configuration file"
42		argument = "file"
43	}
44	option = {
45		long = "no-lock"
46		short = "n"
47		type = "flag"
48		help = "don't lock iprop log"
49	}
50	option = {
51		long = "reverse"
52		short = "R"
53		type = "flag"
54		help = "dump the log in reverse order"
55	}
56	option = {
57		long = "realm"
58		short = "r"
59		type = "string"
60		help = "realm"
61	}
62	function = "iprop_dump"
63	help = "Prints the iprop transaction log in text."
64	max_args = "1"
65}
66command = {
67	name = "truncate"
68	option = {
69		long = "config-file"
70		short = "c"
71		type = "string"
72		help = "configuration file"
73		argument = "file"
74	}
75	option = {
76		long = "realm"
77		short = "r"
78		type = "string"
79		help = "realm"
80	}
81	option = {
82		long = "keep-entries"
83		short = "K"
84		type = "integer"
85		help = "number of entries to keep"
86                default = "-1"
87	}
88	option = {
89		long = "max-bytes"
90		short = "B"
91		type = "integer"
92		help = "keep entries that fit in the given number of bytes"
93                default = "-1"
94	}
95        option = {
96                long = "reset"
97                short = "R"
98                type = "flag"
99                help = "reset the log to version 1; forces full propagation"
100                default = "0";
101        }
102	function = "iprop_truncate"
103	help = "Truncate the log, preserve the version number.  Keeps 100 entries by default."
104	max_args = "1"
105}
106command = {
107	name = "replay"
108	option = {
109		long = "start-version"
110		type = "integer"
111		help = "start replay with this version"
112		argument = "version-number"
113		default = "-1"
114	}
115	option = {
116		long = "end-version"
117		type = "integer"
118		help = "end replay with this version"
119		argument = "version-number"
120		default = "-1"
121	}
122	option = {
123		long = "config-file"
124		short = "c"
125		type = "string"
126		help = "configuration file"
127		argument = "file"
128	}
129	option = {
130		long = "realm"
131		short = "r"
132		type = "string"
133		help = "realm"
134	}
135	function = "iprop_replay"
136	help = "Replay the log on the database."
137	max_args = "1"
138}
139command = {
140	name = "last-version"
141	option = {
142		long = "config-file"
143		short = "c"
144		type = "string"
145		help = "configuration file"
146		argument = "file"
147	}
148	option = {
149		long = "no-lock"
150		short = "n"
151		type = "flag"
152		help = "don't lock iprop log"
153	}
154	option = {
155		long = "realm"
156		short = "r"
157		type = "string"
158		help = "realm"
159	}
160	function = "last_version"
161	help = "Print the last version of the log-file."
162}
163command = {
164	name = "signal"
165	option = {
166		long = "config-file"
167		short = "c"
168		type = "string"
169		help = "configuration file"
170		argument = "file"
171	}
172	option = {
173		long = "realm"
174		short = "r"
175		type = "string"
176		help = "realm"
177	}
178	function = "signal_master"
179	help = "Print the last version of the log-file."
180	max_args = "0"
181}
182command = {
183	name = "help"
184	argument = "command"
185	max_args = "1"
186	function = "help"
187}
188