1dsidm(8) System Manager's Manual dsidm(8)
2
3
4
6 dsidm
7
9 dsidm [-h] [-b BASEDN] [-v] [-D BINDDN] [-w BINDPW] [-W] [-y PWDFILE]
10 [-Z] [-j] instance {account,group,initialise,organizationalunit,posix‐
11 group,user,client_config,role} ...
12
14 instance
15 The instance name OR the LDAP url to connect to, IE localhost,
16 ldap://mai.example.com:389
17
18
19 Sub-commands
20 dsidm account
21 Manage generic accounts, with tasks like modify, locking and
22 unlocking. To create an account, see "user" subcommand instead.
23
24 dsidm group
25 Manage groups
26
27 dsidm initialise
28 Initialise a backend with domain information and sample entries
29
30 dsidm organizationalunit
31 Manage organizational units
32
33 dsidm posixgroup
34 Manage posix groups
35
36 dsidm user
37 Manage posix users
38
39 dsidm client_config
40 Display and generate client example configs for this LDAP server
41
42 dsidm role
43 Manage generic roles, with tasks like modify, locking and
44 unlocking.
45
47 usage: dsidm instance account [-h]
48 {list,get-by-dn,modify-by-
49 dn,delete,lock,unlock,entry-status,subtree-status,reset_pass‐
50 word,change_password}
51 ...
52
53
54 Sub-commands
55 dsidm account list
56 list accounts that could login to the directory
57
58 dsidm account get-by-dn
59 get-by-dn <dn>
60
61 dsidm account modify-by-dn
62 modify-by-dn <dn> <add|delete|replace>:<attribute>:<value> ...
63
64 dsidm account delete
65 deletes the account
66
67 dsidm account lock
68 lock
69
70 dsidm account unlock
71 unlock
72
73 dsidm account entry-status
74 status of a single entry
75
76 dsidm account subtree-status
77 status of a subtree
78
79 dsidm account reset_password
80 Reset the password of an account. This should be performed by a
81 directory admin.
82
83 dsidm account change_password
84 Change the password of an account. This can be performed by any
85 user (with correct rights)
86
88 usage: dsidm instance account list [-h]
89
90
91
92
94 usage: dsidm instance account get-by-dn [-h] [dn]
95
96
97 dn The dn to get and display
98
99
100
102 usage: dsidm instance account modify-by-dn [-h] dn changes [changes
103 ...]
104
105
106 dn The dn to get and display
107
108
109 changes
110 A list of changes to apply in format:
111 <add|delete|replace>:<attribute>:<value>
112
113
114
116 usage: dsidm instance account delete [-h] [dn]
117
118
119 dn The dn of the account to delete
120
121
122
124 usage: dsidm instance account lock [-h] [dn]
125
126
127 dn The dn to lock
128
129
130
132 usage: dsidm instance account unlock [-h] [dn]
133
134
135 dn The dn to unlock
136
137
138
140 usage: dsidm instance account entry-status [-h] [-V] [dn]
141
142
143 dn The single entry dn to check
144
145
146 -V, --details
147 Print more account policy details about the entry
148
149
151 usage: dsidm instance account subtree-status [-h] [-V] [-f FILTER]
152 [-s {one,sub}] [-i]
153 [-o BECOME_INACTIVE_ON]
154 basedn
155
156
157 basedn Search base for finding entries
158
159
160 -V, --details
161 Print more account policy details about the entries
162
163
164 -f FILTER, --filter FILTER
165 Search filter for finding entries
166
167
168 -s {one,sub}, --scope {one,sub}
169 Search scope (one, sub - default is sub
170
171
172 -i, --inactive-only
173 Only display inactivated entries
174
175
176 -o BECOME_INACTIVE_ON, --become-inactive-on BECOME_INACTIVE_ON
177 Only display entries that will become inactive before specified
178 date (in a format 2007-04-25T14:30)
179
180
182 usage: dsidm instance account reset_password [-h] [dn] [new_password]
183
184
185 dn The dn to reset the password for
186
187
188 new_password
189 The new password to set
190
191
192
194 usage: dsidm instance account change_password [-h]
195 [dn] [new_password]
196 [current_password]
197
198
199 dn The dn to change the password for
200
201
202 new_password
203 The new password to set
204
205
206 current_password
207 The accounts current password
208
209
210
211
213 usage: dsidm instance group [-h]
214 {list,get,get_dn,create,delete,modify,mem‐
215 bers,add_member,remove_member}
216 ...
217
218
219 Sub-commands
220 dsidm group list
221 list
222
223 dsidm group get
224 get
225
226 dsidm group get_dn
227 get_dn
228
229 dsidm group create
230 create
231
232 dsidm group delete
233 deletes the object
234
235 dsidm group modify
236 modify <add|delete|replace>:<attribute>:<value> ...
237
238 dsidm group members
239 List member dns of a group
240
241 dsidm group add_member
242 Add a member to a group
243
244 dsidm group remove_member
245 Remove a member from a group
246
248 usage: dsidm instance group list [-h]
249
250
251
252
254 usage: dsidm instance group get [-h] [selector]
255
256
257 selector
258 The term to search for
259
260
261
263 usage: dsidm instance group get_dn [-h] [dn]
264
265
266 dn The dn to get
267
268
269
271 usage: dsidm instance group create [-h] [--cn [CN]]
272
273
274
275 --cn [CN]
276 Value of cn
277
278
280 usage: dsidm instance group delete [-h] [dn]
281
282
283 dn The dn to delete
284
285
286
288 usage: dsidm instance group modify [-h] selector changes [changes ...]
289
290
291 selector
292 The cn to modify
293
294
295 changes
296 A list of changes to apply in format:
297 <add|delete|replace>:<attribute>:<value>
298
299
300
302 usage: dsidm instance group members [-h] [cn]
303
304
305 cn cn of group to list members of
306
307
308
310 usage: dsidm instance group add_member [-h] [cn] [dn]
311
312
313 cn cn of group to add member to
314
315
316 dn dn of object to add to group as member
317
318
319
321 usage: dsidm instance group remove_member [-h] [cn] [dn]
322
323
324 cn cn of group to remove member from
325
326
327 dn dn of object to remove from group as member
328
329
330
331
333 usage: dsidm instance initialise [-h] [--version VERSION]
334
335
336
337 --version VERSION
338 The version of entries to create.
339
340
342 usage: dsidm instance organizationalunit [-h]
343 {list,get,get_dn,cre‐
344 ate,delete,modify}
345 ...
346
347
348 Sub-commands
349 dsidm organizationalunit list
350 list
351
352 dsidm organizationalunit get
353 get
354
355 dsidm organizationalunit get_dn
356 get_dn
357
358 dsidm organizationalunit create
359 create
360
361 dsidm organizationalunit delete
362 deletes the object
363
364 dsidm organizationalunit modify
365 modify <add|delete|replace>:<attribute>:<value> ...
366
368 usage: dsidm instance organizationalunit list [-h]
369
370
371
372
374 usage: dsidm instance organizationalunit get [-h] [selector]
375
376
377 selector
378 The term to search for
379
380
381
383 usage: dsidm instance organizationalunit get_dn [-h] [dn]
384
385
386 dn The dn to get
387
388
389
391 usage: dsidm instance organizationalunit create [-h] [--ou [OU]]
392
393
394
395 --ou [OU]
396 Value of ou
397
398
400 usage: dsidm instance organizationalunit delete [-h] [dn]
401
402
403 dn The dn to delete
404
405
406
408 usage: dsidm instance organizationalunit modify [-h]
409 selector changes
410 [changes ...]
411
412
413 selector
414 The ou to modify
415
416
417 changes
418 A list of changes to apply in format:
419 <add|delete|replace>:<attribute>:<value>
420
421
422
423
425 usage: dsidm instance posixgroup [-h]
426 {list,get,get_dn,create,delete,modify}
427 ...
428
429
430 Sub-commands
431 dsidm posixgroup list
432 list
433
434 dsidm posixgroup get
435 get
436
437 dsidm posixgroup get_dn
438 get_dn
439
440 dsidm posixgroup create
441 create
442
443 dsidm posixgroup delete
444 deletes the object
445
446 dsidm posixgroup modify
447 modify <add|delete|replace>:<attribute>:<value> ...
448
450 usage: dsidm instance posixgroup list [-h]
451
452
453
454
456 usage: dsidm instance posixgroup get [-h] [selector]
457
458
459 selector
460 The term to search for
461
462
463
465 usage: dsidm instance posixgroup get_dn [-h] [dn]
466
467
468 dn The dn to get
469
470
471
473 usage: dsidm instance posixgroup create [-h] [--cn [CN]]
474 [--gidNumber [GIDNUMBER]]
475
476
477
478 --cn [CN]
479 Value of cn
480
481
482 --gidNumber [GIDNUMBER]
483 Value of gidNumber
484
485
487 usage: dsidm instance posixgroup delete [-h] [dn]
488
489
490 dn The dn to delete
491
492
493
495 usage: dsidm instance posixgroup modify [-h] selector changes [changes
496 ...]
497
498
499 selector
500 The cn to modify
501
502
503 changes
504 A list of changes to apply in format:
505 <add|delete|replace>:<attribute>:<value>
506
507
508
509
511 usage: dsidm instance user [-h]
512 {list,get,get_dn,create,mod‐
513 ify,delete,lock,status,unlock}
514 ...
515
516
517 Sub-commands
518 dsidm user list
519 list
520
521 dsidm user get
522 get
523
524 dsidm user get_dn
525 get_dn
526
527 dsidm user create
528 create
529
530 dsidm user modify
531 modify <add|delete|replace>:<attribute>:<value> ...
532
533 dsidm user delete
534 deletes the object
535
536 dsidm user lock
537 lock
538
539 dsidm user status
540 status
541
542 dsidm user unlock
543 unlock
544
546 usage: dsidm instance user list [-h]
547
548
549
550
552 usage: dsidm instance user get [-h] [selector]
553
554
555 selector
556 The term to search for
557
558
559
561 usage: dsidm instance user get_dn [-h] [dn]
562
563
564 dn The dn to get
565
566
567
569 usage: dsidm instance user create [-h] [--uid [UID]] [--cn [CN]]
570 [--displayName [DISPLAYNAME]]
571 [--uidNumber [UIDNUMBER]]
572 [--gidNumber [GIDNUMBER]]
573 [--homeDirectory [HOMEDIRECTORY]]
574
575
576
577 --uid [UID]
578 Value of uid
579
580
581 --cn [CN]
582 Value of cn
583
584
585 --displayName [DISPLAYNAME]
586 Value of displayName
587
588
589 --uidNumber [UIDNUMBER]
590 Value of uidNumber
591
592
593 --gidNumber [GIDNUMBER]
594 Value of gidNumber
595
596
597 --homeDirectory [HOMEDIRECTORY]
598 Value of homeDirectory
599
600
602 usage: dsidm instance user modify [-h] selector changes [changes ...]
603
604
605 selector
606 The uid to modify
607
608
609 changes
610 A list of changes to apply in format:
611 <add|delete|replace>:<attribute>:<value>
612
613
614
616 usage: dsidm instance user delete [-h] [dn]
617
618
619 dn The dn to delete
620
621
622
624 usage: dsidm instance user lock [-h] [uid]
625
626
627 uid The uid to lock
628
629
630
632 usage: dsidm instance user status [-h] [uid]
633
634
635 uid The uid to check
636
637
638
640 usage: dsidm instance user unlock [-h] [uid]
641
642
643 uid The uid to unlock
644
645
646
647
649 usage: dsidm instance client_config [-h] {sssd.conf,ldap.conf,display}
650 ...
651
652
653 Sub-commands
654 dsidm client_config sssd.conf
655 Generate a SSSD configuration for this LDAP server
656
657 dsidm client_config ldap.conf
658 Generate an OpenLDAP ldap.conf configuration for this LDAP
659 server
660
661 dsidm client_config display
662 Display generic application parameters for LDAP connection
663
665 usage: dsidm instance client_config sssd.conf [-h] [allowed_group]
666
667
668 allowed_group
669 The name of the group allowed access to this system
670
671
672
674 usage: dsidm instance client_config ldap.conf [-h]
675
676
677
678
680 usage: dsidm instance client_config display [-h]
681
682
683
684
685
687 usage: dsidm instance role [-h]
688 {list,get-by-dn,modify-by-
689 dn,delete,lock,unlock,entry-status,subtree-status}
690 ...
691
692
693 Sub-commands
694 dsidm role list
695 list roles that could login to the directory
696
697 dsidm role get-by-dn
698 get-by-dn <dn>
699
700 dsidm role modify-by-dn
701 modify-by-dn <dn> <add|delete|replace>:<attribute>:<value> ...
702
703 dsidm role delete
704 deletes the role
705
706 dsidm role lock
707 lock
708
709 dsidm role unlock
710 unlock
711
712 dsidm role entry-status
713 status of a single entry
714
715 dsidm role subtree-status
716 status of a subtree
717
719 usage: dsidm instance role list [-h]
720
721
722
723
725 usage: dsidm instance role get-by-dn [-h] [dn]
726
727
728 dn The dn to get and display
729
730
731
733 usage: dsidm instance role modify-by-dn [-h] dn changes [changes ...]
734
735
736 dn The dn to get and display
737
738
739 changes
740 A list of changes to apply in format:
741 <add|delete|replace>:<attribute>:<value>
742
743
744
746 usage: dsidm instance role delete [-h] [dn]
747
748
749 dn The dn of the role to delete
750
751
752
754 usage: dsidm instance role lock [-h] [dn]
755
756
757 dn The dn to lock
758
759
760
762 usage: dsidm instance role unlock [-h] [dn]
763
764
765 dn The dn to unlock
766
767
768
770 usage: dsidm instance role entry-status [-h] [dn]
771
772
773 dn The single entry dn to check
774
775
776
778 usage: dsidm instance role subtree-status [-h] [-f FILTER] [-s
779 {base,one,sub}]
780 basedn
781
782
783 basedn Search base for finding entries
784
785
786 -f FILTER, --filter FILTER
787 Search filter for finding entries
788
789
790 -s {base,one,sub}, --scope {base,one,sub}
791 Search scope (base, one, sub - default is sub
792
793
794
795 -b BASEDN, --basedn BASEDN
796 Basedn (root naming context) of the instance to manage
797
798
799 -v, --verbose
800 Display verbose operation tracing during command execution
801
802
803 -D BINDDN, --binddn BINDDN
804 The account to bind as for executing operations
805
806
807 -w BINDPW, --bindpw BINDPW
808 Password for binddn
809
810
811 -W, --prompt
812 Prompt for password for binddn
813
814
815 -y PWDFILE, --pwdfile PWDFILE
816 Specifies a file containing the password for the bind DN
817
818
819 -Z, --starttls
820 Connect with StartTLS
821
822
823 -j, --json
824 Return result in JSON object
825
826
828 lib389 was written by Red Hat Inc. <389-devel@lists.fedoraproject.org>.
829
831 The latest version of lib389 may be downloaded from
832 ⟨http://www.port389.org/docs/389ds/FAQ/upstream-test-framework.html⟩
833
834
835
836 Manual dsidm(8)