1DSIDM(8) Generated Python 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,init,organizationalu‐
11 nit,ou,posixgroup,user,client_config,role,service,uniquegroup} ...
12
13
15 dsidm account
16 Manage generic accounts, with tasks like modify, locking and un‐
17 locking. To create an account, see "user" subcommand instead.
18
19 dsidm group
20 Manage groups. The organizationalUnit (by default "ou=groups")
21 needs to exist prior to managing groups. Groups uses the ob‐
22 jectclass "groupOfNames" and the grouping attribute "member"
23
24 dsidm initialise
25 Initialise a backend with domain information and sample entries
26
27 dsidm organizationalunit
28 Manage organizational units
29
30 dsidm posixgroup
31 Manage posix groups The organizationalUnit (by default
32 ou=groups") needs to exist prior to managing posix groups.
33
34 dsidm user
35 Manage posix users. The organizationalUnit (by default "ou=peo‐
36 ple") needs to exist prior to managing users.
37
38 dsidm client_config
39 Display and generate client example configs for this LDAP server
40
41 dsidm role
42 Manage roles.
43
44 dsidm service
45 Manage service accounts
46
47 dsidm uniquegroup
48 Manage groups. The organizationalUnit (by default "ou=groups")
49 needs to exist prior to managing groups. Unique groups uses the
50 objectclass "groupOfUniqueNames" and the grouping attribute
51 "uniquemember"
52
53
55 usage: dsidm instance account [-h]
56 {list,get-by-dn,modify-by-dn,re‐
57 name-by-dn,delete,lock,unlock,entry-status,subtree-status,reset_pass‐
58 word,change_password,bulk_update}
59 ...
60
61
63 dsidm account list
64 list accounts that could login to the directory
65
66 dsidm account get-by-dn
67 get-by-dn <dn>
68
69 dsidm account modify-by-dn
70 modify-by-dn <dn> <add|delete|replace>:<attribute>:<value> ...
71
72 dsidm account rename-by-dn
73 rename the object
74
75 dsidm account delete
76 deletes the account
77
78 dsidm account lock
79 lock
80
81 dsidm account unlock
82 unlock
83
84 dsidm account entry-status
85 status of a single entry
86
87 dsidm account subtree-status
88 status of a subtree
89
90 dsidm account reset_password
91 Reset the password of an account. This should be performed by a
92 directory admin.
93
94 dsidm account change_password
95 Change the password of an account. This can be performed by any
96 user (with correct rights)
97
98 dsidm account bulk_update
99 Perform a common operation to a set of entries
100
101
103 usage: dsidm instance account list [-h]
104
105
107 usage: dsidm instance account get-by-dn [-h] [dn]
108
109
110 dn The dn to get and display
111
112
114 usage: dsidm instance account modify-by-dn [-h] dn changes [changes
115 ...]
116
117
118 dn The dn to get and display
119
120
121 changes
122 A list of changes to apply in format: <add|delete|replace>:<at‐
123 tribute>:<value>
124
125
127 usage: dsidm instance account rename-by-dn [-h] [--keep-old-rdn] dn
128 new_dn
129
130
131 dn The dn to rename
132
133
134 new_dn A new role dn
135
136
138 --keep-old-rdn
139 Specify whether the old RDN (i.e. 'cn: old_role') should be kept
140 as an attribute of the entry or not
141
142
144 usage: dsidm instance account delete [-h] [dn]
145
146
147 dn The dn of the account to delete
148
149
151 usage: dsidm instance account lock [-h] [dn]
152
153
154 dn The dn to lock
155
156
158 usage: dsidm instance account unlock [-h] [dn]
159
160
161 dn The dn to unlock
162
163
165 usage: dsidm instance account entry-status [-h] [-V] [dn]
166
167
168 dn The single entry dn to check
169
170
172 -V, --details
173 Print more account policy details about the entry
174
175
177 usage: dsidm instance account subtree-status [-h] [-V] [-f FILTER]
178 [-s {one,sub}] [-i]
179 [-o BECOME_INACTIVE_ON]
180 basedn
181
182
183 basedn Search base for finding entries
184
185
187 -V, --details
188 Print more account policy details about the entries
189
190
191 -f FILTER, --filter FILTER
192 Search filter for finding entries
193
194
195 -s {one,sub}, --scope {one,sub}
196 Search scope (one, sub - default is sub
197
198
199 -i, --inactive-only
200 Only display inactivated entries
201
202
203 -o BECOME_INACTIVE_ON, --become-inactive-on BECOME_INACTIVE_ON
204 Only display entries that will become inactive before specified
205 date (in a format 2007-04-25T14:30)
206
207
209 usage: dsidm instance account reset_password [-h] [dn] [new_password]
210
211
212 dn The dn to reset the password for
213
214
215 new_password
216 The new password to set
217
218
220 usage: dsidm instance account change_password [-h]
221 [dn] [new_password]
222 [current_password]
223
224
225 dn The dn to change the password for
226
227
228 new_password
229 The new password to set
230
231
232 current_password
233 The accounts current password
234
235
237 usage: dsidm instance account bulk_update [-h] [-f FILTER] [-s
238 {one,sub}] [-x]
239 basedn changes [changes ...]
240
241
242 basedn Search base for finding entries, only the children of this DN
243 are processed
244
245
246 changes
247 A list of changes to apply in format: <add|delete|replace>:<at‐
248 tribute>:<value>
249
250
252 -f FILTER, --filter FILTER
253 Search filter for finding entries, default is '(objectclass=*)'
254
255
256 -s {one,sub}, --scope {one,sub}
257 Search scope (one, sub - default is sub
258
259
260 -x, --stop
261 Stop processing updates when an error occurs. Default is False
262
263
265 usage: dsidm instance group [-h]
266 {list,get,get_dn,create,delete,modify,re‐
267 name,members,add_member,remove_member}
268 ...
269
270
272 dsidm group list
273 list
274
275 dsidm group get
276 get
277
278 dsidm group get_dn
279 get_dn
280
281 dsidm group create
282 create
283
284 dsidm group delete
285 deletes the object
286
287 dsidm group modify
288 modify <add|delete|replace>:<attribute>:<value> ...
289
290 dsidm group rename
291 rename the object
292
293 dsidm group members
294 List member dns of a group
295
296 dsidm group add_member
297 Add a member to a group
298
299 dsidm group remove_member
300 Remove a member from a group
301
302
304 usage: dsidm instance group list [-h]
305
306
308 usage: dsidm instance group get [-h] [selector]
309
310
311 selector
312 The term to search for
313
314
316 usage: dsidm instance group get_dn [-h] [dn]
317
318
319 dn The dn to get
320
321
323 usage: dsidm instance group create [-h] [--cn [CN]]
324
325
327 --cn [CN]
328 Value of cn
329
330
332 usage: dsidm instance group delete [-h] [dn]
333
334
335 dn The dn to delete
336
337
339 usage: dsidm instance group modify [-h] selector changes [changes ...]
340
341
342 selector
343 The cn to modify
344
345
346 changes
347 A list of changes to apply in format: <add|delete|replace>:<at‐
348 tribute>:<value>
349
350
352 usage: dsidm instance group rename [-h] [--keep-old-rdn] selector
353 new_name
354
355
356 selector
357 The cn to rename
358
359
360 new_name
361 A new group name
362
363
365 --keep-old-rdn
366 Specify whether the old RDN (i.e. 'cn: old_group') should be
367 kept as an attribute of the entry or not
368
369
371 usage: dsidm instance group members [-h] [cn]
372
373
374 cn cn of group to list members of
375
376
378 usage: dsidm instance group add_member [-h] [cn] [dn]
379
380
381 cn cn of group to add member to
382
383
384 dn dn of object to add to group as member
385
386
388 usage: dsidm instance group remove_member [-h] [cn] [dn]
389
390
391 cn cn of group to remove member from
392
393
394 dn dn of object to remove from group as member
395
396
398 usage: dsidm instance initialise [-h] [--version VERSION]
399
400
402 --version VERSION
403 The version of entries to create.
404
405
407 usage: dsidm instance organizationalunit [-h]
408 {list,get,get_dn,cre‐
409 ate,delete,modify,rename}
410 ...
411
412
414 dsidm organizationalunit list
415 list
416
417 dsidm organizationalunit get
418 get
419
420 dsidm organizationalunit get_dn
421 get_dn
422
423 dsidm organizationalunit create
424 create
425
426 dsidm organizationalunit delete
427 deletes the object
428
429 dsidm organizationalunit modify
430 modify <add|delete|replace>:<attribute>:<value> ...
431
432 dsidm organizationalunit rename
433 rename the object
434
435
437 usage: dsidm instance organizationalunit list [-h]
438
439
441 usage: dsidm instance organizationalunit get [-h] [selector]
442
443
444 selector
445 The term to search for
446
447
449 usage: dsidm instance organizationalunit get_dn [-h] [dn]
450
451
452 dn The dn to get
453
454
456 usage: dsidm instance organizationalunit create [-h] [--ou [OU]]
457
458
460 --ou [OU]
461 Value of ou
462
463
465 usage: dsidm instance organizationalunit delete [-h] [dn]
466
467
468 dn The dn to delete
469
470
472 usage: dsidm instance organizationalunit modify [-h]
473 selector changes
474 [changes ...]
475
476
477 selector
478 The ou to modify
479
480
481 changes
482 A list of changes to apply in format: <add|delete|replace>:<at‐
483 tribute>:<value>
484
485
487 usage: dsidm instance organizationalunit rename [-h] [--keep-old-rdn]
488 selector new_name
489
490
491 selector
492 The ou to rename
493
494
495 new_name
496 A new organizational unit name
497
498
500 --keep-old-rdn
501 Specify whether the old RDN (i.e. 'ou: old_ou') should be kept
502 as an attribute of the entry or not
503
504
506 usage: dsidm instance posixgroup [-h]
507 {list,get,get_dn,create,delete,mod‐
508 ify,rename}
509 ...
510
511
513 dsidm posixgroup list
514 list
515
516 dsidm posixgroup get
517 get
518
519 dsidm posixgroup get_dn
520 get_dn
521
522 dsidm posixgroup create
523 create
524
525 dsidm posixgroup delete
526 deletes the object
527
528 dsidm posixgroup modify
529 modify <add|delete|replace>:<attribute>:<value> ...
530
531 dsidm posixgroup rename
532 rename the object
533
534
536 usage: dsidm instance posixgroup list [-h]
537
538
540 usage: dsidm instance posixgroup get [-h] [selector]
541
542
543 selector
544 The term to search for
545
546
548 usage: dsidm instance posixgroup get_dn [-h] [dn]
549
550
551 dn The dn to get
552
553
555 usage: dsidm instance posixgroup create [-h] [--cn [CN]]
556 [--gidNumber [GIDNUMBER]]
557
558
560 --cn [CN]
561 Value of cn
562
563
564 --gidNumber [GIDNUMBER]
565 Value of gidNumber
566
567
569 usage: dsidm instance posixgroup delete [-h] [dn]
570
571
572 dn The dn to delete
573
574
576 usage: dsidm instance posixgroup modify [-h] selector changes [changes
577 ...]
578
579
580 selector
581 The cn to modify
582
583
584 changes
585 A list of changes to apply in format: <add|delete|replace>:<at‐
586 tribute>:<value>
587
588
590 usage: dsidm instance posixgroup rename [-h] [--keep-old-rdn]
591 selector new_name
592
593
594 selector
595 The cn to rename
596
597
598 new_name
599 A new posix group name
600
601
603 --keep-old-rdn
604 Specify whether the old RDN (i.e. 'cn: old_group') should be
605 kept as an attribute of the entry or not
606
607
609 usage: dsidm instance user [-h]
610 {list,get,get_dn,create,modify,re‐
611 name,delete} ...
612
613
615 dsidm user list
616 list
617
618 dsidm user get
619 get
620
621 dsidm user get_dn
622 get_dn
623
624 dsidm user create
625 create
626
627 dsidm user modify
628 modify <add|delete|replace>:<attribute>:<value> ...
629
630 dsidm user rename
631 rename the object
632
633 dsidm user delete
634 deletes the object
635
636
638 usage: dsidm instance user list [-h]
639
640
642 usage: dsidm instance user get [-h] [selector]
643
644
645 selector
646 The term to search for
647
648
650 usage: dsidm instance user get_dn [-h] [dn]
651
652
653 dn The dn to get
654
655
657 usage: dsidm instance user create [-h] [--uid [UID]] [--cn [CN]]
658 [--displayName [DISPLAYNAME]]
659 [--uidNumber [UIDNUMBER]]
660 [--gidNumber [GIDNUMBER]]
661 [--homeDirectory [HOMEDIRECTORY]]
662
663
665 --uid [UID]
666 Value of uid
667
668
669 --cn [CN]
670 Value of cn
671
672
673 --displayName [DISPLAYNAME]
674 Value of displayName
675
676
677 --uidNumber [UIDNUMBER]
678 Value of uidNumber
679
680
681 --gidNumber [GIDNUMBER]
682 Value of gidNumber
683
684
685 --homeDirectory [HOMEDIRECTORY]
686 Value of homeDirectory
687
688
690 usage: dsidm instance user modify [-h] selector changes [changes ...]
691
692
693 selector
694 The uid to modify
695
696
697 changes
698 A list of changes to apply in format: <add|delete|replace>:<at‐
699 tribute>:<value>
700
701
703 usage: dsidm instance user rename [-h] [--keep-old-rdn] selector
704 new_name
705
706
707 selector
708 The uid to modify
709
710
711 new_name
712 A new user name
713
714
716 --keep-old-rdn
717 Specify whether the old RDN (i.e. 'cn: old_user') should be kept
718 as an attribute of the entry or not
719
720
722 usage: dsidm instance user delete [-h] [dn]
723
724
725 dn The dn to delete
726
727
729 usage: dsidm instance client_config [-h] {sssd.conf,ldap.conf,display}
730 ...
731
732
734 dsidm client_config sssd.conf
735 Generate a SSSD configuration for this LDAP server
736
737 dsidm client_config ldap.conf
738 Generate an OpenLDAP ldap.conf configuration for this LDAP
739 server
740
741 dsidm client_config display
742 Display generic application parameters for LDAP connection
743
744
746 usage: dsidm instance client_config sssd.conf [-h] [allowed_group]
747
748
749 allowed_group
750 The name of the group allowed access to this system
751
752
754 usage: dsidm instance client_config ldap.conf [-h]
755
756
758 usage: dsidm instance client_config display [-h]
759
760
762 usage: dsidm instance role [-h]
763 {list,get,get-by-dn,create-managed,cre‐
764 ate-filtered,create-nested,modify-by-dn,rename-by-dn,delete,lock,un‐
765 lock,entry-status,subtree-status}
766 ...
767
768
770 dsidm role list
771 list roles that could login to the directory
772
773 dsidm role get
774 get
775
776 dsidm role get-by-dn
777 get-by-dn <dn>
778
779 dsidm role create-managed
780 create
781
782 dsidm role create-filtered
783 create
784
785 dsidm role create-nested
786 create
787
788 dsidm role modify-by-dn
789 modify-by-dn <dn> <add|delete|replace>:<attribute>:<value> ...
790
791 dsidm role rename-by-dn
792 rename the object
793
794 dsidm role delete
795 deletes the role
796
797 dsidm role lock
798 lock
799
800 dsidm role unlock
801 unlock
802
803 dsidm role entry-status
804 status of a single entry
805
806 dsidm role subtree-status
807 status of a subtree
808
809
811 usage: dsidm instance role list [-h]
812
813
815 usage: dsidm instance role get [-h] [selector]
816
817
818 selector
819 The term to search for
820
821
823 usage: dsidm instance role get-by-dn [-h] [dn]
824
825
826 dn The dn to get and display
827
828
830 usage: dsidm instance role create-managed [-h] [--cn [CN]]
831
832
834 --cn [CN]
835 Value of cn
836
837
839 usage: dsidm instance role create-filtered [-h] [--cn [CN]]
840
841
843 --cn [CN]
844 Value of cn
845
846
848 usage: dsidm instance role create-nested [-h] [--cn [CN]]
849 [--nsRoleDN [NSROLEDN]]
850
851
853 --cn [CN]
854 Value of cn
855
856
857 --nsRoleDN [NSROLEDN]
858 Value of nsRoleDN
859
860
862 usage: dsidm instance role modify-by-dn [-h] dn changes [changes ...]
863
864
865 dn The dn to modify
866
867
868 changes
869 A list of changes to apply in format: <add|delete|replace>:<at‐
870 tribute>:<value>
871
872
874 usage: dsidm instance role rename-by-dn [-h] [--keep-old-rdn] dn new_dn
875
876
877 dn The dn to rename
878
879
880 new_dn A new account dn
881
882
884 --keep-old-rdn
885 Specify whether the old RDN (i.e. 'cn: old_account') should be
886 kept as an attribute of the entry or not
887
888
890 usage: dsidm instance role delete [-h] [dn]
891
892
893 dn The dn of the role to delete
894
895
897 usage: dsidm instance role lock [-h] [dn]
898
899
900 dn The dn to lock
901
902
904 usage: dsidm instance role unlock [-h] [dn]
905
906
907 dn The dn to unlock
908
909
911 usage: dsidm instance role entry-status [-h] [dn]
912
913
914 dn The single entry dn to check
915
916
918 usage: dsidm instance role subtree-status [-h] [-f FILTER] [-s
919 {base,one,sub}]
920 basedn
921
922
923 basedn Search base for finding entries
924
925
927 -f FILTER, --filter FILTER
928 Search filter for finding entries
929
930
931 -s {base,one,sub}, --scope {base,one,sub}
932 Search scope (base, one, sub - default is sub
933
934
936 usage: dsidm instance service [-h]
937 {list,get,get_dn,create,modify,re‐
938 name,delete}
939 ...
940
941
943 dsidm service list
944 list
945
946 dsidm service get
947 get
948
949 dsidm service get_dn
950 get_dn
951
952 dsidm service create
953 create
954
955 dsidm service modify
956 modify <add|delete|replace>:<attribute>:<value> ...
957
958 dsidm service rename
959 rename the object
960
961 dsidm service delete
962 deletes the object
963
964
966 usage: dsidm instance service list [-h]
967
968
970 usage: dsidm instance service get [-h] [selector]
971
972
973 selector
974 The term to search for
975
976
978 usage: dsidm instance service get_dn [-h] [dn]
979
980
981 dn The dn to get
982
983
985 usage: dsidm instance service create [-h] [--cn [CN]]
986 [--description [DESCRIPTION]]
987
988
990 --cn [CN]
991 Value of cn
992
993
994 --description [DESCRIPTION]
995 Value of description
996
997
999 usage: dsidm instance service modify [-h] selector changes [changes
1000 ...]
1001
1002
1003 selector
1004 The cn to modify
1005
1006
1007 changes
1008 A list of changes to apply in format: <add|delete|replace>:<at‐
1009 tribute>:<value>
1010
1011
1013 usage: dsidm instance service rename [-h] [--keep-old-rdn] selector
1014 new_name
1015
1016
1017 selector
1018 The cn to modify
1019
1020
1021 new_name
1022 A new service name
1023
1024
1026 --keep-old-rdn
1027 Specify whether the old RDN (i.e. 'cn: old_service') should be
1028 kept as an attribute of the entry or not
1029
1030
1032 usage: dsidm instance service delete [-h] [dn]
1033
1034
1035 dn The dn to delete
1036
1037
1039 usage: dsidm instance uniquegroup [-h]
1040 {list,get,get_dn,create,delete,mod‐
1041 ify,rename,members,add_member,remove_member}
1042 ...
1043
1044
1046 dsidm uniquegroup list
1047 list
1048
1049 dsidm uniquegroup get
1050 get
1051
1052 dsidm uniquegroup get_dn
1053 get_dn
1054
1055 dsidm uniquegroup create
1056 create
1057
1058 dsidm uniquegroup delete
1059 deletes the object
1060
1061 dsidm uniquegroup modify
1062 modify <add|delete|replace>:<attribute>:<value> ...
1063
1064 dsidm uniquegroup rename
1065 rename the object
1066
1067 dsidm uniquegroup members
1068 List member dns of a group
1069
1070 dsidm uniquegroup add_member
1071 Add a member to a group
1072
1073 dsidm uniquegroup remove_member
1074 Remove a member from a group
1075
1076
1078 usage: dsidm instance uniquegroup list [-h]
1079
1080
1082 usage: dsidm instance uniquegroup get [-h] [selector]
1083
1084
1085 selector
1086 The term to search for
1087
1088
1090 usage: dsidm instance uniquegroup get_dn [-h] [dn]
1091
1092
1093 dn The dn to get
1094
1095
1097 usage: dsidm instance uniquegroup create [-h] [--cn [CN]]
1098
1099
1101 --cn [CN]
1102 Value of cn
1103
1104
1106 usage: dsidm instance uniquegroup delete [-h] [dn]
1107
1108
1109 dn The dn to delete
1110
1111
1113 usage: dsidm instance uniquegroup modify [-h] selector changes [changes
1114 ...]
1115
1116
1117 selector
1118 The cn to modify
1119
1120
1121 changes
1122 A list of changes to apply in format: <add|delete|replace>:<at‐
1123 tribute>:<value>
1124
1125
1127 usage: dsidm instance uniquegroup rename [-h] [--keep-old-rdn]
1128 selector new_name
1129
1130
1131 selector
1132 The cn to rename
1133
1134
1135 new_name
1136 A new group name
1137
1138
1140 --keep-old-rdn
1141 Specify whether the old RDN (i.e. 'cn: old_group') should be
1142 kept as an attribute of the entry or not
1143
1144
1146 usage: dsidm instance uniquegroup members [-h] [cn]
1147
1148
1149 cn cn of group to list members of
1150
1151
1153 usage: dsidm instance uniquegroup add_member [-h] [cn] [dn]
1154
1155
1156 cn cn of group to add member to
1157
1158
1159 dn dn of object to add to group as member
1160
1161
1163 usage: dsidm instance uniquegroup remove_member [-h] [cn] [dn]
1164
1165
1166 cn cn of group to remove member from
1167
1168
1169 dn dn of object to remove from group as member
1170
1171
1173 -b BASEDN, --basedn BASEDN
1174 Base DN (root naming context) of the instance to manage
1175
1176
1177 -v, --verbose
1178 Display verbose operation tracing during command execution
1179
1180
1181 -D BINDDN, --binddn BINDDN
1182 The account to bind as for executing operations
1183
1184
1185 -w BINDPW, --bindpw BINDPW
1186 Password for the bind DN
1187
1188
1189 -W, --prompt
1190 Prompt for password of the bind DN
1191
1192
1193 -y PWDFILE, --pwdfile PWDFILE
1194 Specifies a file containing the password of the bind DN
1195
1196
1197 -Z, --starttls
1198 Connect with StartTLS
1199
1200
1201 -j, --json
1202 Return result in JSON object
1203
1204
1206 Red Hat, Inc., and William Brown <389-devel@lists.fedoraproject.org>
1207
1208
1210 The latest version of lib389 may be downloaded from
1211 ⟨http://www.port389.org/docs/389ds/FAQ/upstream-test-framework.html⟩
1212
1213
1214
1215lib389 1.4.0.1 2023-10-07 DSIDM(8)