xref: /freebsd/crypto/heimdal/lib/kadm5/iprop-log.8 (revision 6a068746777241722b2b32c5d0bc443a2a64d80b)
1*ae771770SStanislav Sedov.\" $Id$
2c19800e8SDoug Rabson.\"
3*ae771770SStanislav Sedov.\" Copyright (c) 2005 - 2007 Kungliga Tekniska Högskolan
4c19800e8SDoug Rabson.\" (Royal Institute of Technology, Stockholm, Sweden).
5c19800e8SDoug Rabson.\" All rights reserved.
6c19800e8SDoug Rabson.\"
7c19800e8SDoug Rabson.\" Redistribution and use in source and binary forms, with or without
8c19800e8SDoug Rabson.\" modification, are permitted provided that the following conditions
9c19800e8SDoug Rabson.\" are met:
10c19800e8SDoug Rabson.\"
11c19800e8SDoug Rabson.\" 1. Redistributions of source code must retain the above copyright
12c19800e8SDoug Rabson.\"    notice, this list of conditions and the following disclaimer.
13c19800e8SDoug Rabson.\"
14c19800e8SDoug Rabson.\" 2. Redistributions in binary form must reproduce the above copyright
15c19800e8SDoug Rabson.\"    notice, this list of conditions and the following disclaimer in the
16c19800e8SDoug Rabson.\"    documentation and/or other materials provided with the distribution.
17c19800e8SDoug Rabson.\"
18c19800e8SDoug Rabson.\" 3. Neither the name of the Institute nor the names of its contributors
19c19800e8SDoug Rabson.\"    may be used to endorse or promote products derived from this software
20c19800e8SDoug Rabson.\"    without specific prior written permission.
21c19800e8SDoug Rabson.\"
22c19800e8SDoug Rabson.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
23c19800e8SDoug Rabson.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24c19800e8SDoug Rabson.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25c19800e8SDoug Rabson.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
26c19800e8SDoug Rabson.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27c19800e8SDoug Rabson.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28c19800e8SDoug Rabson.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29c19800e8SDoug Rabson.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30c19800e8SDoug Rabson.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31c19800e8SDoug Rabson.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32c19800e8SDoug Rabson.\" SUCH DAMAGE.
33c19800e8SDoug Rabson.\"
34*ae771770SStanislav Sedov.\"	$Id$
35c19800e8SDoug Rabson.\"
36c19800e8SDoug Rabson.Dd February 18, 2007
37c19800e8SDoug Rabson.Dt IPROP-LOG 8
38c19800e8SDoug Rabson.Os Heimdal
39c19800e8SDoug Rabson.Sh NAME
40c19800e8SDoug Rabson.Nm iprop-log
41*ae771770SStanislav Sedov.Nd maintain the iprop log file
42c19800e8SDoug Rabson.Sh SYNOPSIS
43c19800e8SDoug Rabson.Nm
44*ae771770SStanislav Sedov.Op Fl Fl version
45*ae771770SStanislav Sedov.Op Fl h | Fl Fl help
46c19800e8SDoug Rabson.Ar command
47c19800e8SDoug Rabson.Pp
48c19800e8SDoug Rabson.Nm iprop-log truncate
49c19800e8SDoug Rabson.Oo Fl c Ar file \*(Ba Xo
50*ae771770SStanislav Sedov.Fl Fl config-file= Ns Ar file
51c19800e8SDoug Rabson.Xc
52c19800e8SDoug Rabson.Oc
53c19800e8SDoug Rabson.Oo Fl r Ar string \*(Ba Xo
54*ae771770SStanislav Sedov.Fl Fl realm= Ns Ar string
55c19800e8SDoug Rabson.Xc
56c19800e8SDoug Rabson.Oc
57*ae771770SStanislav Sedov.Op Fl h | Fl Fl help
58c19800e8SDoug Rabson.Pp
59c19800e8SDoug Rabson.Nm iprop-log dump
60c19800e8SDoug Rabson.Oo Fl c Ar file \*(Ba Xo
61*ae771770SStanislav Sedov.Fl Fl config-file= Ns Ar file
62c19800e8SDoug Rabson.Xc
63c19800e8SDoug Rabson.Oc
64c19800e8SDoug Rabson.Oo Fl r Ar string \*(Ba Xo
65*ae771770SStanislav Sedov.Fl Fl realm= Ns Ar string
66c19800e8SDoug Rabson.Xc
67c19800e8SDoug Rabson.Oc
68*ae771770SStanislav Sedov.Op Fl h | Fl Fl help
69c19800e8SDoug Rabson.Pp
70c19800e8SDoug Rabson.Nm iprop-log replay
71*ae771770SStanislav Sedov.Op Fl Fl start-version= Ns Ar version-number
72*ae771770SStanislav Sedov.Op Fl Fl end-version= Ns Ar version-number
73c19800e8SDoug Rabson.Oo Fl c Ar file \*(Ba Xo
74*ae771770SStanislav Sedov.Fl Fl config-file= Ns Ar file
75c19800e8SDoug Rabson.Xc
76c19800e8SDoug Rabson.Oc
77c19800e8SDoug Rabson.Oo Fl r Ar string \*(Ba Xo
78*ae771770SStanislav Sedov.Fl Fl realm= Ns Ar string
79c19800e8SDoug Rabson.Xc
80c19800e8SDoug Rabson.Oc
81*ae771770SStanislav Sedov.Op Fl h | Fl Fl help
82c19800e8SDoug Rabson.Sh DESCRIPTION
83c19800e8SDoug RabsonSupported options:
84c19800e8SDoug Rabson.Bl -tag -width Ds
85*ae771770SStanislav Sedov.It Fl Fl version
86*ae771770SStanislav Sedov.It Fl h , Fl Fl help
87c19800e8SDoug Rabson.El
88c19800e8SDoug Rabson.Pp
89c19800e8SDoug Rabsoncommand can be one of the following:
90c19800e8SDoug Rabson.Bl -tag -width truncate
91c19800e8SDoug Rabson.It truncate
92c19800e8SDoug Rabson.Bl -tag -width Ds
93*ae771770SStanislav Sedov.It Fl c Ar file , Fl Fl config-file= Ns Ar file
94c19800e8SDoug Rabsonconfiguration file
95*ae771770SStanislav Sedov.It Fl r Ar string , Fl Fl realm= Ns Ar string
96c19800e8SDoug Rabsonrealm
97c19800e8SDoug Rabson.El
98c19800e8SDoug Rabson.Pp
99c19800e8SDoug RabsonTruncates the log. Sets the new logs version number for the to the
100c19800e8SDoug Rabsonlast entry of the old log.  If the log is truncted by emptying the
101c19800e8SDoug Rabsonfile, the log will start over at the first version (0).
102c19800e8SDoug Rabson.It dump
103c19800e8SDoug Rabson.Bl -tag -width Ds
104*ae771770SStanislav Sedov.It Fl c Ar file , Fl Fl config-file= Ns Ar file
105c19800e8SDoug Rabsonconfiguration file
106c19800e8SDoug Rabson.It Xo
107c19800e8SDoug Rabson.Fl r Ar string ,
108*ae771770SStanislav Sedov.Fl Fl realm= Ns Ar string
109c19800e8SDoug Rabson.Xc
110c19800e8SDoug Rabsonrealm
111c19800e8SDoug Rabson.El
112c19800e8SDoug Rabson.Pp
113*ae771770SStanislav SedovPrint out all entries in the log to standard output.
114c19800e8SDoug Rabson.It replay
115c19800e8SDoug Rabson.Bl -tag -width Ds
116*ae771770SStanislav Sedov.It Fl Fl start-version= Ns Ar version-number
117c19800e8SDoug Rabsonstart replay with this version
118c19800e8SDoug Rabson.It Xo
119*ae771770SStanislav Sedov.Fl Fl end-version= Ns Ar version-number
120c19800e8SDoug Rabson.Xc
121c19800e8SDoug Rabsonend replay with this version
122*ae771770SStanislav Sedov.It Fl c Ar file , Fl Fl config-file= Ns Ar file
123c19800e8SDoug Rabsonconfiguration file
124*ae771770SStanislav Sedov.It Fl r Ar string , Fl Fl realm= Ns Ar string
125c19800e8SDoug Rabsonrealm
126c19800e8SDoug Rabson.El
127c19800e8SDoug Rabson.Pp
128c19800e8SDoug RabsonReplay the changes from specified entries (or all if none is
129c19800e8SDoug Rabsonspecified) in the transaction log to the database.
130c19800e8SDoug Rabson.It last-version
131c19800e8SDoug Rabson.Bl -tag -width Ds
132*ae771770SStanislav Sedov.It Fl c Ar file , Fl Fl config-file= Ns Ar file
133c19800e8SDoug Rabsonconfiguration file
134*ae771770SStanislav Sedov.It Fl r Ar string , Fl Fl realm= Ns Ar string
135c19800e8SDoug Rabsonrealm
136c19800e8SDoug Rabson.El
137c19800e8SDoug Rabson.Pp
138c19800e8SDoug Rabsonprints the version of the last log entry.
139c19800e8SDoug Rabson.El
140c19800e8SDoug Rabson.Sh SEE ALSO
141c19800e8SDoug Rabson.Xr iprop 8
142