1DSIDM(8)                    System Manager's Manual                   DSIDM(8)
2
3
4

NAME

6       dsidm
7

SYNOPSIS

9       dsidm  [-h]  [-b BASEDN] [-v] [-D BINDDN] [-w BINDPW] [-W] [-y PWDFILE]
10       [-Z]  [-j]   instance   {account,group,initialise,init,organizationalu‐
11       nit,ou,posixgroup,user,client_config,role,service} ...
12

POSITIONAL ARGUMENTS

14       dsidm account
15              Manage generic accounts, with tasks like modify, locking and un‐
16              locking. To create an account, see "user" subcommand instead.
17
18       dsidm group
19              Manage groups
20
21       dsidm initialise
22              Initialise a backend with domain information and sample entries
23
24       dsidm organizationalunit
25              Manage organizational units
26
27       dsidm posixgroup
28              Manage posix groups
29
30       dsidm user
31              Manage posix users
32
33       dsidm client_config
34              Display and generate client example configs for this LDAP server
35
36       dsidm role
37              Manage roles.
38
39       dsidm service
40              Manage service accounts
41

COMMAND 'dsidm account'

43       usage: dsidm instance account [-h]
44                                     {list,get-by-dn,modify-by-dn,rename-by-
45       dn,delete,lock,unlock,entry-status,subtree-status,reset_pass‐
46       word,change_password}
47                                     ...
48
49

POSITIONAL ARGUMENTS 'dsidm account'

51       dsidm account list
52              list accounts that could login to the directory
53
54       dsidm account get-by-dn
55              get-by-dn <dn>
56
57       dsidm account modify-by-dn
58              modify-by-dn <dn> <add|delete|replace>:<attribute>:<value> ...
59
60       dsidm account rename-by-dn
61              rename the object
62
63       dsidm account delete
64              deletes the account
65
66       dsidm account lock
67              lock
68
69       dsidm account unlock
70              unlock
71
72       dsidm account entry-status
73              status of a single entry
74
75       dsidm account subtree-status
76              status of a subtree
77
78       dsidm account reset_password
79              Reset the password of an account. This should be performed by  a
80              directory admin.
81
82       dsidm account change_password
83              Change  the password of an account. This can be performed by any
84              user (with correct rights)
85

COMMAND 'dsidm account list'

87       usage: dsidm instance account list [-h]
88
89

COMMAND 'dsidm account get-by-dn'

91       usage: dsidm instance account get-by-dn [-h] [dn]
92
93
94       dn     The dn to get and display
95
96

COMMAND 'dsidm account modify-by-dn'

98       usage: dsidm instance account modify-by-dn  [-h]  dn  changes  [changes
99       ...]
100
101
102       dn     The dn to get and display
103
104
105       changes
106              A  list of changes to apply in format: <add|delete|replace>:<at‐
107              tribute>:<value>
108
109

COMMAND 'dsidm account rename-by-dn'

111       usage: dsidm instance account  rename-by-dn  [-h]  [--keep-old-rdn]  dn
112       new_dn
113
114
115       dn     The dn to rename
116
117
118       new_dn A new role dn
119
120

OPTIONS 'dsidm account rename-by-dn'

122       --keep-old-rdn
123              Specify whether the old RDN (i.e. 'cn: old_role') should be kept
124              as an attribute of the entry or not
125
126

COMMAND 'dsidm account delete'

128       usage: dsidm instance account delete [-h] [dn]
129
130
131       dn     The dn of the account to delete
132
133

COMMAND 'dsidm account lock'

135       usage: dsidm instance account lock [-h] [dn]
136
137
138       dn     The dn to lock
139
140

COMMAND 'dsidm account unlock'

142       usage: dsidm instance account unlock [-h] [dn]
143
144
145       dn     The dn to unlock
146
147

COMMAND 'dsidm account entry-status'

149       usage: dsidm instance account entry-status [-h] [-V] [dn]
150
151
152       dn     The single entry dn to check
153
154

OPTIONS 'dsidm account entry-status'

156       -V, --details
157              Print more account policy details about the entry
158
159

COMMAND 'dsidm account subtree-status'

161       usage: dsidm instance account subtree-status [-h] [-V] [-f FILTER]
162                                                    [-s {one,sub}] [-i]
163                                                    [-o BECOME_INACTIVE_ON]
164                                                    basedn
165
166
167       basedn Search base for finding entries
168
169

OPTIONS 'dsidm account subtree-status'

171       -V, --details
172              Print more account policy details about the entries
173
174
175       -f FILTER, --filter FILTER
176              Search filter for finding entries
177
178
179       -s {one,sub}, --scope {one,sub}
180              Search scope (one, sub - default is sub
181
182
183       -i, --inactive-only
184              Only display inactivated entries
185
186
187       -o BECOME_INACTIVE_ON, --become-inactive-on BECOME_INACTIVE_ON
188              Only display entries that will become inactive before  specified
189              date (in a format 2007-04-25T14:30)
190
191

COMMAND 'dsidm account reset_password'

193       usage: dsidm instance account reset_password [-h] [dn] [new_password]
194
195
196       dn     The dn to reset the password for
197
198
199       new_password
200              The new password to set
201
202

COMMAND 'dsidm account change_password'

204       usage: dsidm instance account change_password [-h]
205                                                     [dn] [new_password]
206                                                     [current_password]
207
208
209       dn     The dn to change the password for
210
211
212       new_password
213              The new password to set
214
215
216       current_password
217              The accounts current password
218
219

COMMAND 'dsidm group'

221       usage: dsidm instance group [-h]
222                                   {list,get,get_dn,create,delete,modify,re‐
223       name,members,add_member,remove_member}
224                                   ...
225
226

POSITIONAL ARGUMENTS 'dsidm group'

228       dsidm group list
229              list
230
231       dsidm group get
232              get
233
234       dsidm group get_dn
235              get_dn
236
237       dsidm group create
238              create
239
240       dsidm group delete
241              deletes the object
242
243       dsidm group modify
244              modify <add|delete|replace>:<attribute>:<value> ...
245
246       dsidm group rename
247              rename the object
248
249       dsidm group members
250              List member dns of a group
251
252       dsidm group add_member
253              Add a member to a group
254
255       dsidm group remove_member
256              Remove a member from a group
257

COMMAND 'dsidm group list'

259       usage: dsidm instance group list [-h]
260
261

COMMAND 'dsidm group get'

263       usage: dsidm instance group get [-h] [selector]
264
265
266       selector
267              The term to search for
268
269

COMMAND 'dsidm group get_dn'

271       usage: dsidm instance group get_dn [-h] [dn]
272
273
274       dn     The dn to get
275
276

COMMAND 'dsidm group create'

278       usage: dsidm instance group create [-h] [--cn [CN]]
279
280

OPTIONS 'dsidm group create'

282       --cn [CN]
283              Value of cn
284
285

COMMAND 'dsidm group delete'

287       usage: dsidm instance group delete [-h] [dn]
288
289
290       dn     The dn to delete
291
292

COMMAND 'dsidm group modify'

294       usage: dsidm instance group modify [-h] selector changes [changes ...]
295
296
297       selector
298              The cn to modify
299
300
301       changes
302              A list of changes to apply in format:  <add|delete|replace>:<at‐
303              tribute>:<value>
304
305

COMMAND 'dsidm group rename'

307       usage:  dsidm  instance  group  rename  [-h]  [--keep-old-rdn] selector
308       new_name
309
310
311       selector
312              The cn to rename
313
314
315       new_name
316              A new group name
317
318

OPTIONS 'dsidm group rename'

320       --keep-old-rdn
321              Specify whether the old RDN (i.e.  'cn:  old_group')  should  be
322              kept as an attribute of the entry or not
323
324

COMMAND 'dsidm group members'

326       usage: dsidm instance group members [-h] [cn]
327
328
329       cn     cn of group to list members of
330
331

COMMAND 'dsidm group add_member'

333       usage: dsidm instance group add_member [-h] [cn] [dn]
334
335
336       cn     cn of group to add member to
337
338
339       dn     dn of object to add to group as member
340
341

COMMAND 'dsidm group remove_member'

343       usage: dsidm instance group remove_member [-h] [cn] [dn]
344
345
346       cn     cn of group to remove member from
347
348
349       dn     dn of object to remove from group as member
350
351

COMMAND 'dsidm initialise'

353       usage: dsidm instance initialise [-h] [--version VERSION]
354
355

OPTIONS 'dsidm initialise'

357       --version VERSION
358              The version of entries to create.
359
360

COMMAND 'dsidm organizationalunit'

362       usage: dsidm instance organizationalunit [-h]
363                                                {list,get,get_dn,cre‐
364       ate,delete,modify,rename}
365                                                ...
366
367

POSITIONAL ARGUMENTS 'dsidm organizationalunit'

369       dsidm organizationalunit list
370              list
371
372       dsidm organizationalunit get
373              get
374
375       dsidm organizationalunit get_dn
376              get_dn
377
378       dsidm organizationalunit create
379              create
380
381       dsidm organizationalunit delete
382              deletes the object
383
384       dsidm organizationalunit modify
385              modify <add|delete|replace>:<attribute>:<value> ...
386
387       dsidm organizationalunit rename
388              rename the object
389

COMMAND 'dsidm organizationalunit list'

391       usage: dsidm instance organizationalunit list [-h]
392
393

COMMAND 'dsidm organizationalunit get'

395       usage: dsidm instance organizationalunit get [-h] [selector]
396
397
398       selector
399              The term to search for
400
401

COMMAND 'dsidm organizationalunit get_dn'

403       usage: dsidm instance organizationalunit get_dn [-h] [dn]
404
405
406       dn     The dn to get
407
408

COMMAND 'dsidm organizationalunit create'

410       usage: dsidm instance organizationalunit create [-h] [--ou [OU]]
411
412

OPTIONS 'dsidm organizationalunit create'

414       --ou [OU]
415              Value of ou
416
417

COMMAND 'dsidm organizationalunit delete'

419       usage: dsidm instance organizationalunit delete [-h] [dn]
420
421
422       dn     The dn to delete
423
424

COMMAND 'dsidm organizationalunit modify'

426       usage: dsidm instance organizationalunit modify [-h]
427                                                       selector        changes
428       [changes ...]
429
430
431       selector
432              The ou to modify
433
434
435       changes
436              A  list of changes to apply in format: <add|delete|replace>:<at‐
437              tribute>:<value>
438
439

COMMAND 'dsidm organizationalunit rename'

441       usage: dsidm instance organizationalunit rename [-h] [--keep-old-rdn]
442                                                       selector new_name
443
444
445       selector
446              The ou to rename
447
448
449       new_name
450              A new organizational unit name
451
452

OPTIONS 'dsidm organizationalunit rename'

454       --keep-old-rdn
455              Specify whether the old RDN (i.e. 'ou: old_ou') should  be  kept
456              as an attribute of the entry or not
457
458

COMMAND 'dsidm posixgroup'

460       usage: dsidm instance posixgroup [-h]
461                                        {list,get,get_dn,create,delete,mod‐
462       ify,rename}
463                                        ...
464
465

POSITIONAL ARGUMENTS 'dsidm posixgroup'

467       dsidm posixgroup list
468              list
469
470       dsidm posixgroup get
471              get
472
473       dsidm posixgroup get_dn
474              get_dn
475
476       dsidm posixgroup create
477              create
478
479       dsidm posixgroup delete
480              deletes the object
481
482       dsidm posixgroup modify
483              modify <add|delete|replace>:<attribute>:<value> ...
484
485       dsidm posixgroup rename
486              rename the object
487

COMMAND 'dsidm posixgroup list'

489       usage: dsidm instance posixgroup list [-h]
490
491

COMMAND 'dsidm posixgroup get'

493       usage: dsidm instance posixgroup get [-h] [selector]
494
495
496       selector
497              The term to search for
498
499

COMMAND 'dsidm posixgroup get_dn'

501       usage: dsidm instance posixgroup get_dn [-h] [dn]
502
503
504       dn     The dn to get
505
506

COMMAND 'dsidm posixgroup create'

508       usage: dsidm instance posixgroup create [-h] [--cn [CN]]
509                                               [--gidNumber [GIDNUMBER]]
510
511

OPTIONS 'dsidm posixgroup create'

513       --cn [CN]
514              Value of cn
515
516
517       --gidNumber [GIDNUMBER]
518              Value of gidNumber
519
520

COMMAND 'dsidm posixgroup delete'

522       usage: dsidm instance posixgroup delete [-h] [dn]
523
524
525       dn     The dn to delete
526
527

COMMAND 'dsidm posixgroup modify'

529       usage: dsidm instance posixgroup modify [-h] selector changes  [changes
530       ...]
531
532
533       selector
534              The cn to modify
535
536
537       changes
538              A  list of changes to apply in format: <add|delete|replace>:<at‐
539              tribute>:<value>
540
541

COMMAND 'dsidm posixgroup rename'

543       usage: dsidm instance posixgroup rename [-h] [--keep-old-rdn]
544                                               selector new_name
545
546
547       selector
548              The cn to rename
549
550
551       new_name
552              A new posix group name
553
554

OPTIONS 'dsidm posixgroup rename'

556       --keep-old-rdn
557              Specify whether the old RDN (i.e.  'cn:  old_group')  should  be
558              kept as an attribute of the entry or not
559
560

COMMAND 'dsidm user'

562       usage: dsidm instance user [-h]
563                                  {list,get,get_dn,create,modify,re‐
564       name,delete} ...
565
566

POSITIONAL ARGUMENTS 'dsidm user'

568       dsidm user list
569              list
570
571       dsidm user get
572              get
573
574       dsidm user get_dn
575              get_dn
576
577       dsidm user create
578              create
579
580       dsidm user modify
581              modify <add|delete|replace>:<attribute>:<value> ...
582
583       dsidm user rename
584              rename the object
585
586       dsidm user delete
587              deletes the object
588

COMMAND 'dsidm user list'

590       usage: dsidm instance user list [-h]
591
592

COMMAND 'dsidm user get'

594       usage: dsidm instance user get [-h] [selector]
595
596
597       selector
598              The term to search for
599
600

COMMAND 'dsidm user get_dn'

602       usage: dsidm instance user get_dn [-h] [dn]
603
604
605       dn     The dn to get
606
607

COMMAND 'dsidm user create'

609       usage: dsidm instance user create [-h] [--uid [UID]] [--cn [CN]]
610                                         [--displayName [DISPLAYNAME]]
611                                         [--uidNumber [UIDNUMBER]]
612                                         [--gidNumber [GIDNUMBER]]
613                                         [--homeDirectory [HOMEDIRECTORY]]
614
615

OPTIONS 'dsidm user create'

617       --uid [UID]
618              Value of uid
619
620
621       --cn [CN]
622              Value of cn
623
624
625       --displayName [DISPLAYNAME]
626              Value of displayName
627
628
629       --uidNumber [UIDNUMBER]
630              Value of uidNumber
631
632
633       --gidNumber [GIDNUMBER]
634              Value of gidNumber
635
636
637       --homeDirectory [HOMEDIRECTORY]
638              Value of homeDirectory
639
640

COMMAND 'dsidm user modify'

642       usage: dsidm instance user modify [-h] selector changes [changes ...]
643
644
645       selector
646              The uid to modify
647
648
649       changes
650              A list of changes to apply in format:  <add|delete|replace>:<at‐
651              tribute>:<value>
652
653

COMMAND 'dsidm user rename'

655       usage:  dsidm  instance  user  rename  [-h]  [--keep-old-rdn]  selector
656       new_name
657
658
659       selector
660              The uid to modify
661
662
663       new_name
664              A new user name
665
666

OPTIONS 'dsidm user rename'

668       --keep-old-rdn
669              Specify whether the old RDN (i.e. 'cn: old_user') should be kept
670              as an attribute of the entry or not
671
672

COMMAND 'dsidm user delete'

674       usage: dsidm instance user delete [-h] [dn]
675
676
677       dn     The dn to delete
678
679

COMMAND 'dsidm client_config'

681       usage:  dsidm instance client_config [-h] {sssd.conf,ldap.conf,display}
682       ...
683
684

POSITIONAL ARGUMENTS 'dsidm client_config'

686       dsidm client_config sssd.conf
687              Generate a SSSD configuration for this LDAP server
688
689       dsidm client_config ldap.conf
690              Generate an  OpenLDAP  ldap.conf  configuration  for  this  LDAP
691              server
692
693       dsidm client_config display
694              Display generic application parameters for LDAP connection
695

COMMAND 'dsidm client_config sssd.conf'

697       usage: dsidm instance client_config sssd.conf [-h] [allowed_group]
698
699
700       allowed_group
701              The name of the group allowed access to this system
702
703

COMMAND 'dsidm client_config ldap.conf'

705       usage: dsidm instance client_config ldap.conf [-h]
706
707

COMMAND 'dsidm client_config display'

709       usage: dsidm instance client_config display [-h]
710
711

COMMAND 'dsidm role'

713       usage: dsidm instance role [-h]
714                                  {list,get,get-by-dn,create-managed,create-
715       filtered,create-nested,modify-by-dn,rename-by-dn,delete,lock,unlock,en‐
716       try-status,subtree-status}
717                                  ...
718
719

POSITIONAL ARGUMENTS 'dsidm role'

721       dsidm role list
722              list roles that could login to the directory
723
724       dsidm role get
725              get
726
727       dsidm role get-by-dn
728              get-by-dn <dn>
729
730       dsidm role create-managed
731              create
732
733       dsidm role create-filtered
734              create
735
736       dsidm role create-nested
737              create
738
739       dsidm role modify-by-dn
740              modify-by-dn <dn> <add|delete|replace>:<attribute>:<value> ...
741
742       dsidm role rename-by-dn
743              rename the object
744
745       dsidm role delete
746              deletes the role
747
748       dsidm role lock
749              lock
750
751       dsidm role unlock
752              unlock
753
754       dsidm role entry-status
755              status of a single entry
756
757       dsidm role subtree-status
758              status of a subtree
759

COMMAND 'dsidm role list'

761       usage: dsidm instance role list [-h]
762
763

COMMAND 'dsidm role get'

765       usage: dsidm instance role get [-h] [selector]
766
767
768       selector
769              The term to search for
770
771

COMMAND 'dsidm role get-by-dn'

773       usage: dsidm instance role get-by-dn [-h] [dn]
774
775
776       dn     The dn to get and display
777
778

COMMAND 'dsidm role create-managed'

780       usage: dsidm instance role create-managed [-h] [--cn [CN]]
781
782

OPTIONS 'dsidm role create-managed'

784       --cn [CN]
785              Value of cn
786
787

COMMAND 'dsidm role create-filtered'

789       usage: dsidm instance role create-filtered [-h] [--cn [CN]]
790
791

OPTIONS 'dsidm role create-filtered'

793       --cn [CN]
794              Value of cn
795
796

COMMAND 'dsidm role create-nested'

798       usage: dsidm instance role create-nested [-h] [--cn [CN]]
799                                                [--nsRoleDN [NSROLEDN]]
800
801

OPTIONS 'dsidm role create-nested'

803       --cn [CN]
804              Value of cn
805
806
807       --nsRoleDN [NSROLEDN]
808              Value of nsRoleDN
809
810

COMMAND 'dsidm role modify-by-dn'

812       usage: dsidm instance role modify-by-dn [-h] dn changes [changes ...]
813
814
815       dn     The dn to modify
816
817
818       changes
819              A  list of changes to apply in format: <add|delete|replace>:<at‐
820              tribute>:<value>
821
822

COMMAND 'dsidm role rename-by-dn'

824       usage: dsidm instance role rename-by-dn [-h] [--keep-old-rdn] dn new_dn
825
826
827       dn     The dn to rename
828
829
830       new_dn A new account dn
831
832

OPTIONS 'dsidm role rename-by-dn'

834       --keep-old-rdn
835              Specify whether the old RDN (i.e. 'cn: old_account')  should  be
836              kept as an attribute of the entry or not
837
838

COMMAND 'dsidm role delete'

840       usage: dsidm instance role delete [-h] [dn]
841
842
843       dn     The dn of the role to delete
844
845

COMMAND 'dsidm role lock'

847       usage: dsidm instance role lock [-h] [dn]
848
849
850       dn     The dn to lock
851
852

COMMAND 'dsidm role unlock'

854       usage: dsidm instance role unlock [-h] [dn]
855
856
857       dn     The dn to unlock
858
859

COMMAND 'dsidm role entry-status'

861       usage: dsidm instance role entry-status [-h] [dn]
862
863
864       dn     The single entry dn to check
865
866

COMMAND 'dsidm role subtree-status'

868       usage:   dsidm  instance  role  subtree-status  [-h]  [-f  FILTER]  [-s
869       {base,one,sub}]
870                                                 basedn
871
872
873       basedn Search base for finding entries
874
875

OPTIONS 'dsidm role subtree-status'

877       -f FILTER, --filter FILTER
878              Search filter for finding entries
879
880
881       -s {base,one,sub}, --scope {base,one,sub}
882              Search scope (base, one, sub - default is sub
883
884

COMMAND 'dsidm service'

886       usage: dsidm instance service [-h]
887                                     {list,get,get_dn,create,modify,re‐
888       name,delete}
889                                     ...
890
891

POSITIONAL ARGUMENTS 'dsidm service'

893       dsidm service list
894              list
895
896       dsidm service get
897              get
898
899       dsidm service get_dn
900              get_dn
901
902       dsidm service create
903              create
904
905       dsidm service modify
906              modify <add|delete|replace>:<attribute>:<value> ...
907
908       dsidm service rename
909              rename the object
910
911       dsidm service delete
912              deletes the object
913

COMMAND 'dsidm service list'

915       usage: dsidm instance service list [-h]
916
917

COMMAND 'dsidm service get'

919       usage: dsidm instance service get [-h] [selector]
920
921
922       selector
923              The term to search for
924
925

COMMAND 'dsidm service get_dn'

927       usage: dsidm instance service get_dn [-h] [dn]
928
929
930       dn     The dn to get
931
932

COMMAND 'dsidm service create'

934       usage: dsidm instance service create [-h] [--cn [CN]]
935                                            [--description [DESCRIPTION]]
936
937

OPTIONS 'dsidm service create'

939       --cn [CN]
940              Value of cn
941
942
943       --description [DESCRIPTION]
944              Value of description
945
946

COMMAND 'dsidm service modify'

948       usage:  dsidm  instance  service  modify [-h] selector changes [changes
949       ...]
950
951
952       selector
953              The cn to modify
954
955
956       changes
957              A list of changes to apply in format:  <add|delete|replace>:<at‐
958              tribute>:<value>
959
960

COMMAND 'dsidm service rename'

962       usage:  dsidm  instance  service  rename [-h] [--keep-old-rdn] selector
963       new_name
964
965
966       selector
967              The cn to modify
968
969
970       new_name
971              A new service name
972
973

OPTIONS 'dsidm service rename'

975       --keep-old-rdn
976              Specify whether the old RDN (i.e. 'cn: old_service')  should  be
977              kept as an attribute of the entry or not
978
979

COMMAND 'dsidm service delete'

981       usage: dsidm instance service delete [-h] [dn]
982
983
984       dn     The dn to delete
985
986

OPTIONS

988       -b BASEDN, --basedn BASEDN
989              Base DN (root naming context) of the instance to manage
990
991
992       -v, --verbose
993              Display verbose operation tracing during command execution
994
995
996       -D BINDDN, --binddn BINDDN
997              The account to bind as for executing operations
998
999
1000       -w BINDPW, --bindpw BINDPW
1001              Password for the bind DN
1002
1003
1004       -W, --prompt
1005              Prompt for password of the bind DN
1006
1007
1008       -y PWDFILE, --pwdfile PWDFILE
1009              Specifies a file containing the password of the bind DN
1010
1011
1012       -Z, --starttls
1013              Connect with StartTLS
1014
1015
1016       -j, --json
1017              Return result in JSON object
1018
1019

AUTHORS

1021       Red Hat Inc., and William Brown <389-devel@lists.fedoraproject.org>
1022
1023

DISTRIBUTION

1025       The    latest    version    of    lib389   may   be   downloaded   from
1026http://www.port389.org/docs/389ds/FAQ/upstream-test-framework.html
1027
1028
1029
1030                                    Manual                            DSIDM(8)
Impressum