mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Mark Craig
18.26.2011 d215744411e8d7a9bf60d21008fee49d78215c5d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
'\" t
.\"     Title: manage-account
.\"    Author: Mark Craig
.\" Generator: DocBook XSL-NS Stylesheets v1.76.1 <http://docbook.sf.net/>
.\"      Date: November\ \&18,\ \&2011
.\"    Manual: Tools Reference
.\"    Source: OpenDJ 2.5.0
.\"  Language: English
.\"
.TH "MANAGE\-ACCOUNT" "1" "November\ \&18,\ \&2011" "OpenDJ 2.5.0" "Tools Reference"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
manage-account \- manage state of directory server accounts
.SH "SYNOPSIS"
.HP \w'\fBmanage\-account\fR\fB\fIsubcommand\fR\fR\ 'u
\fBmanage\-account\fR\fB\fIsubcommand\fR\fR {options}
.SH "DESCRIPTION"
.PP
This utility can be used to retrieve and manipulate the values of password policy state variables\&.
.SH "SUBCOMMANDS"
.PP
The following subcommands are supported\&.
.PP
\fBmanage\-account clear\-account\-is\-disabled\fR
.RS 4
Clear account disabled state information from the user account
.RE
.PP
\fBmanage\-account get\-account\-expiration\-time\fR
.RS 4
Display when the user account will expire
.RE
.PP
\fBmanage\-account get\-account\-is\-disabled\fR
.RS 4
Display information about whether the user account has been administratively disabled
.RE
.PP
\fBmanage\-account get\-all\fR
.RS 4
Display all password policy state information for the user
.RE
.PP
\fBmanage\-account get\-authentication\-failure\-times\fR
.RS 4
Display the authentication failure times for the user
.RE
.PP
\fBmanage\-account get\-grace\-login\-use\-times\fR
.RS 4
Display the grace login use times for the user
.RE
.PP
\fBmanage\-account get\-last\-login\-time\fR
.RS 4
Display the time that the user last authenticated to the server
.RE
.PP
\fBmanage\-account get\-password\-changed\-by\-required\-time\fR
.RS 4
Display the required password change time with which the user last complied
.RE
.PP
\fBmanage\-account get\-password\-changed\-time\fR
.RS 4
Display the time that the user\*(Aqs password was last changed
.RE
.PP
\fBmanage\-account get\-password\-expiration\-warned\-time\fR
.RS 4
Display the time that the user first received an expiration warning notice
.RE
.PP
\fBmanage\-account get\-password\-history\fR
.RS 4
Display password history state values for the user
.RE
.PP
\fBmanage\-account get\-password\-is\-reset\fR
.RS 4
Display information about whether the user will be required to change his or her password on the next successful authentication
.RE
.PP
\fBmanage\-account get\-password\-policy\-dn\fR
.RS 4
Display the DN of the password policy for the user
.RE
.PP
\fBmanage\-account get\-remaining\-authentication\-failure\-count\fR
.RS 4
Display the number of remaining authentication failures until the user\*(Aqs account is locked
.RE
.PP
\fBmanage\-account get\-remaining\-grace\-login\-count\fR
.RS 4
Display the number of grace logins remaining for the user
.RE
.PP
\fBmanage\-account get\-seconds\-until\-account\-expiration\fR
.RS 4
Display the length of time in seconds until the user account expires
.RE
.PP
\fBmanage\-account get\-seconds\-until\-authentication\-failure\-unlock\fR
.RS 4
Display the length of time in seconds until the authentication failure lockout expires
.RE
.PP
\fBmanage\-account get\-seconds\-until\-idle\-lockout\fR
.RS 4
Display the length of time in seconds until user\*(Aqs account is locked because it has remained idle for too long
.RE
.PP
\fBmanage\-account get\-seconds\-until\-password\-expiration\fR
.RS 4
Display length of time in seconds until the user\*(Aqs password expires
.RE
.PP
\fBmanage\-account get\-seconds\-until\-password\-expiration\-warning\fR
.RS 4
Display the length of time in seconds until the user should start receiving password expiration warning notices
.RE
.PP
\fBmanage\-account get\-seconds\-until\-password\-reset\-lockout\fR
.RS 4
Display the length of time in seconds until user\*(Aqs account is locked because the user failed to change the password in a timely manner after an administrative reset
.RE
.PP
\fBmanage\-account get\-seconds\-until\-required\-change\-time\fR
.RS 4
Display the length of time in seconds that the user has remaining to change his or her password before the account becomes locked due to the required change time
.RE
.PP
\fBmanage\-account set\-account\-is\-disabled\fR
.RS 4
Specify whether the user account has been administratively disabled
.RE
.SH "GLOBAL OPTIONS"
.PP
The following global options are supported\&.
.PP
\fB\-b, \-\-targetDN {targetDN}\fR
.RS 4
The DN of the user entry for which to get and set password policy state information
.RE
.SS "LDAP Connection Options"
.PP
\fB\-D, \-\-bindDN {bindDN}\fR
.RS 4
DN to use to bind to the server
.sp
Default value: cn=Directory Manager
.RE
.PP
\fB\-h, \-\-hostname {host}\fR
.RS 4
Directory server hostname or IP address
.sp
Default value: localhost\&.localdomain
.RE
.PP
\fB\-j, \-\-bindPasswordFile {bindPasswordFile}\fR
.RS 4
Bind password file
.RE
.PP
\fB\-K, \-\-keyStorePath {keyStorePath}\fR
.RS 4
Certificate key store path
.RE
.PP
\fB\-N, \-\-certNickname {nickname}\fR
.RS 4
Nickname of certificate for SSL client authentication
.RE
.PP
\fB\-o, \-\-saslOption {name=value}\fR
.RS 4
SASL bind options
.RE
.PP
\fB\-p, \-\-port {port}\fR
.RS 4
Directory server administration port number
.sp
Default value: 4444
.RE
.PP
\fB\-P, \-\-trustStorePath {trustStorePath}\fR
.RS 4
Certificate trust store path
.RE
.PP
\fB\-T, \-\-trustStorePassword {trustStorePassword}\fR
.RS 4
Certificate trust store PIN
.RE
.PP
\fB\-u, \-\-keyStorePasswordFile {keyStorePasswordFile}\fR
.RS 4
Certificate key store PIN file
.RE
.PP
\fB\-U, \-\-trustStorePasswordFile {path}\fR
.RS 4
Certificate trust store PIN file
.RE
.PP
\fB\-w, \-\-bindPassword {bindPassword}\fR
.RS 4
Password to use to bind to the server
.sp
Use
\fB\-w \-\fR
to have the command prompt for the password, rather than enter the password on the command line\&.
.RE
.PP
\fB\-W, \-\-keyStorePassword {keyStorePassword}\fR
.RS 4
Certificate key store PIN
.RE
.PP
\fB\-X, \-\-trustAll\fR
.RS 4
Trust all server SSL certificates
.RE
.SS "General Options"
.PP
\fB\-V, \-\-version\fR
.RS 4
Display version information
.RE
.PP
\fB\-?, \-H, \-\-help\fR
.RS 4
Display usage information
.RE
.SH "EXIT CODES"
.PP
0
.RS 4
The command completed successfully\&.
.RE
.PP
89
.RS 4
An error occurred while parsing the command\-line arguments\&.
.RE
.SH "EXAMPLES"
.PP
For the following examples, the directory admin user, Kirsten Vaughan, has
ds\-privilege\-name: password\-reset, and the following ACI on
ou=People,dc=example,dc=com\&.
.sp
.if n \{\
.RS 4
.\}
.nf
(target="ldap:///ou=People,dc=example,dc=com") (targetattr ="*||+")(
 version 3\&.0;acl "Admins can run amok"; allow(all) groupdn =
 "ldap:///cn=Directory Administrators,ou=Groups,dc=example,dc=com";)
.fi
.if n \{\
.RE
.\}
.PP
The following command locks a user account\&.
.sp
.if n \{\
.RS 4
.\}
.nf
$ manage\-account \-p 4444 \-D "uid=kvaughan,ou=people,dc=example,dc=com"
 \-w bribery set\-account\-is\-disabled \-O true
 \-b uid=bjensen,ou=people,dc=example,dc=com \-X
Account Is Disabled:  true
.fi
.if n \{\
.RE
.\}
.PP
The following command unlocks a user account\&.
.sp
.if n \{\
.RS 4
.\}
.nf
$ manage\-account \-p 4444 \-D "uid=kvaughan,ou=people,dc=example,dc=com"
 \-w bribery clear\-account\-is\-disabled
 \-b uid=bjensen,ou=people,dc=example,dc=com \-X
Account Is Disabled:  false
.fi
.if n \{\
.RE
.\}
.SH "AUTHORS"
.PP
\fBMark Craig\fR
.RS 4
Author.
.RE
.PP
\fBNemanja Lukić\fR
.RS 4
Author.
.RE
.SH "COPYRIGHT"
.br
Copyright \(co 2011 ForgeRock AS
.br
.sp
.RS 4
[IMAGE]
.PP
This work is licensed under the
\m[blue]\fBCreative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License\fR\m[].
.RE
.PP
To view a copy of this license, visit
http://creativecommons.org/licenses/by-nc-nd/3.0/
or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
.PP
Trademarks are the property of their respective owners.
.PP
UNLESS OTHERWISE MUTUALLY AGREED BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
.PP
EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
.PP
DejaVu Fonts
.PP
Bitstream Vera Fonts Copyright
.PP
Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc.
.PP
Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions:
.PP
The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces.
.PP
The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Bitstream" or the word "Vera".
.PP
This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Bitstream Vera" names.
.PP
The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself.
.PP
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
.PP
Except as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: fonts at gnome dot org.
.PP
Arev Fonts Copyright
.PP
Copyright (c) 2006 by Tavmjong Bah. All Rights Reserved.
.PP
Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the modifications to the Bitstream Vera Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions:
.PP
The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces.
.PP
The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Tavmjong Bah" or the word "Arev".
.PP
This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Tavmjong Bah Arev" names.
.PP
The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself.
.PP
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL TAVMJONG BAH BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
.PP
Except as contained in this notice, the name of Tavmjong Bah shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from Tavmjong Bah. For further information, contact: tavmjong @ free . fr.
.sp