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,organizationalunit,posix‐
11       group,user,client_config,role} ...
12

OPTIONS

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

OPTIONS 'dsidm account'

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

OPTIONS 'dsidm account list'

88       usage: dsidm instance account list [-h]
89
90
91
92

OPTIONS 'dsidm account get-by-dn'

94       usage: dsidm instance account get-by-dn [-h] [dn]
95
96
97       dn     The dn to get and display
98
99
100

OPTIONS 'dsidm account modify-by-dn'

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

OPTIONS 'dsidm account delete'

116       usage: dsidm instance account delete [-h] [dn]
117
118
119       dn     The dn of the account to delete
120
121
122

OPTIONS 'dsidm account lock'

124       usage: dsidm instance account lock [-h] [dn]
125
126
127       dn     The dn to lock
128
129
130

OPTIONS 'dsidm account unlock'

132       usage: dsidm instance account unlock [-h] [dn]
133
134
135       dn     The dn to unlock
136
137
138

OPTIONS 'dsidm account entry-status'

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

OPTIONS 'dsidm account subtree-status'

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
179              format 2007-04-25T14:30)
180
181

OPTIONS 'dsidm account reset_password'

183       usage: dsidm instance account reset_password [-h] [dn] [new_password]
184
185
186       dn     The dn to reset the password for
187
188
189       new_password
190              The new password to set
191
192
193

OPTIONS 'dsidm account change_password'

195       usage: dsidm instance account change_password [-h]
196                                                     [dn] [new_password]
197                                                     [current_password]
198
199
200       dn     The dn to change the password for
201
202
203       new_password
204              The new password to set
205
206
207       current_password
208              The accounts current password
209
210
211
212

OPTIONS 'dsidm group'

214       usage: dsidm instance group [-h]
215                                   {list,get,get_dn,create,delete,modify,mem‐
216       bers,add_member,remove_member}
217                                   ...
218
219
220   Sub-commands
221       dsidm group list
222              list
223
224       dsidm group get
225              get
226
227       dsidm group get_dn
228              get_dn
229
230       dsidm group create
231              create
232
233       dsidm group delete
234              deletes the object
235
236       dsidm group modify
237              modify <add|delete|replace>:<attribute>:<value> ...
238
239       dsidm group members
240              List member dns of a group
241
242       dsidm group add_member
243              Add a member to a group
244
245       dsidm group remove_member
246              Remove a member from a group
247

OPTIONS 'dsidm group list'

249       usage: dsidm instance group list [-h]
250
251
252
253

OPTIONS 'dsidm group get'

255       usage: dsidm instance group get [-h] [selector]
256
257
258       selector
259              The term to search for
260
261
262

OPTIONS 'dsidm group get_dn'

264       usage: dsidm instance group get_dn [-h] [dn]
265
266
267       dn     The dn to get
268
269
270

OPTIONS 'dsidm group create'

272       usage: dsidm instance group create [-h] [--cn [CN]]
273
274
275
276       --cn [CN]
277              Value of cn
278
279

OPTIONS 'dsidm group delete'

281       usage: dsidm instance group delete [-h] [dn]
282
283
284       dn     The dn to delete
285
286
287

OPTIONS 'dsidm group modify'

289       usage: dsidm instance group modify [-h] selector changes [changes ...]
290
291
292       selector
293              The cn to modify
294
295
296       changes
297              A     list     of     changes     to     apply     in    format:
298              <add|delete|replace>:<attribute>:<value>
299
300
301

OPTIONS 'dsidm group members'

303       usage: dsidm instance group members [-h] [cn]
304
305
306       cn     cn of group to list members of
307
308
309

OPTIONS 'dsidm group add_member'

311       usage: dsidm instance group add_member [-h] [cn] [dn]
312
313
314       cn     cn of group to add member to
315
316
317       dn     dn of object to add to group as member
318
319
320

OPTIONS 'dsidm group remove_member'

322       usage: dsidm instance group remove_member [-h] [cn] [dn]
323
324
325       cn     cn of group to remove member from
326
327
328       dn     dn of object to remove from group as member
329
330
331
332

OPTIONS 'dsidm initialise'

334       usage: dsidm instance initialise [-h] [--version VERSION]
335
336
337
338       --version VERSION
339              The version of entries to create.
340
341

OPTIONS 'dsidm organizationalunit'

343       usage: dsidm instance organizationalunit [-h]
344                                                {list,get,get_dn,cre‐
345       ate,delete,modify}
346                                                ...
347
348
349   Sub-commands
350       dsidm organizationalunit list
351              list
352
353       dsidm organizationalunit get
354              get
355
356       dsidm organizationalunit get_dn
357              get_dn
358
359       dsidm organizationalunit create
360              create
361
362       dsidm organizationalunit delete
363              deletes the object
364
365       dsidm organizationalunit modify
366              modify <add|delete|replace>:<attribute>:<value> ...
367

OPTIONS 'dsidm organizationalunit list'

369       usage: dsidm instance organizationalunit list [-h]
370
371
372
373

OPTIONS 'dsidm organizationalunit get'

375       usage: dsidm instance organizationalunit get [-h] [selector]
376
377
378       selector
379              The term to search for
380
381
382

OPTIONS 'dsidm organizationalunit get_dn'

384       usage: dsidm instance organizationalunit get_dn [-h] [dn]
385
386
387       dn     The dn to get
388
389
390

OPTIONS 'dsidm organizationalunit create'

392       usage: dsidm instance organizationalunit create [-h] [--ou [OU]]
393
394
395
396       --ou [OU]
397              Value of ou
398
399

OPTIONS 'dsidm organizationalunit delete'

401       usage: dsidm instance organizationalunit delete [-h] [dn]
402
403
404       dn     The dn to delete
405
406
407

OPTIONS 'dsidm organizationalunit modify'

409       usage: dsidm instance organizationalunit modify [-h]
410                                                       selector        changes
411       [changes ...]
412
413
414       selector
415              The ou to modify
416
417
418       changes
419              A    list     of     changes     to     apply     in     format:
420              <add|delete|replace>:<attribute>:<value>
421
422
423
424

OPTIONS 'dsidm posixgroup'

426       usage: dsidm instance posixgroup [-h]
427                                        {list,get,get_dn,create,delete,modify}
428       ...
429
430
431   Sub-commands
432       dsidm posixgroup list
433              list
434
435       dsidm posixgroup get
436              get
437
438       dsidm posixgroup get_dn
439              get_dn
440
441       dsidm posixgroup create
442              create
443
444       dsidm posixgroup delete
445              deletes the object
446
447       dsidm posixgroup modify
448              modify <add|delete|replace>:<attribute>:<value> ...
449

OPTIONS 'dsidm posixgroup list'

451       usage: dsidm instance posixgroup list [-h]
452
453
454
455

OPTIONS 'dsidm posixgroup get'

457       usage: dsidm instance posixgroup get [-h] [selector]
458
459
460       selector
461              The term to search for
462
463
464

OPTIONS 'dsidm posixgroup get_dn'

466       usage: dsidm instance posixgroup get_dn [-h] [dn]
467
468
469       dn     The dn to get
470
471
472

OPTIONS 'dsidm posixgroup create'

474       usage: dsidm instance posixgroup create [-h] [--cn [CN]]
475                                               [--gidNumber [GIDNUMBER]]
476
477
478
479       --cn [CN]
480              Value of cn
481
482
483       --gidNumber [GIDNUMBER]
484              Value of gidNumber
485
486

OPTIONS 'dsidm posixgroup delete'

488       usage: dsidm instance posixgroup delete [-h] [dn]
489
490
491       dn     The dn to delete
492
493
494

OPTIONS 'dsidm posixgroup modify'

496       usage: dsidm instance posixgroup modify [-h] selector changes  [changes
497       ...]
498
499
500       selector
501              The cn to modify
502
503
504       changes
505              A     list     of     changes     to     apply     in    format:
506              <add|delete|replace>:<attribute>:<value>
507
508
509
510

OPTIONS 'dsidm user'

512       usage: dsidm instance user [-h]
513                                  {list,get,get_dn,create,mod‐
514       ify,delete,lock,status,unlock}
515                                  ...
516
517
518   Sub-commands
519       dsidm user list
520              list
521
522       dsidm user get
523              get
524
525       dsidm user get_dn
526              get_dn
527
528       dsidm user create
529              create
530
531       dsidm user modify
532              modify <add|delete|replace>:<attribute>:<value> ...
533
534       dsidm user delete
535              deletes the object
536
537       dsidm user lock
538              lock
539
540       dsidm user status
541              status
542
543       dsidm user unlock
544              unlock
545

OPTIONS 'dsidm user list'

547       usage: dsidm instance user list [-h]
548
549
550
551

OPTIONS 'dsidm user get'

553       usage: dsidm instance user get [-h] [selector]
554
555
556       selector
557              The term to search for
558
559
560

OPTIONS 'dsidm user get_dn'

562       usage: dsidm instance user get_dn [-h] [dn]
563
564
565       dn     The dn to get
566
567
568

OPTIONS 'dsidm user create'

570       usage: dsidm instance user create [-h] [--uid [UID]] [--cn [CN]]
571                                         [--displayName [DISPLAYNAME]]
572                                         [--uidNumber [UIDNUMBER]]
573                                         [--gidNumber [GIDNUMBER]]
574                                         [--homeDirectory [HOMEDIRECTORY]]
575
576
577
578       --uid [UID]
579              Value of uid
580
581
582       --cn [CN]
583              Value of cn
584
585
586       --displayName [DISPLAYNAME]
587              Value of displayName
588
589
590       --uidNumber [UIDNUMBER]
591              Value of uidNumber
592
593
594       --gidNumber [GIDNUMBER]
595              Value of gidNumber
596
597
598       --homeDirectory [HOMEDIRECTORY]
599              Value of homeDirectory
600
601

OPTIONS 'dsidm user modify'

603       usage: dsidm instance user modify [-h] selector changes [changes ...]
604
605
606       selector
607              The uid to modify
608
609
610       changes
611              A     list     of     changes     to     apply     in    format:
612              <add|delete|replace>:<attribute>:<value>
613
614
615

OPTIONS 'dsidm user delete'

617       usage: dsidm instance user delete [-h] [dn]
618
619
620       dn     The dn to delete
621
622
623

OPTIONS 'dsidm user lock'

625       usage: dsidm instance user lock [-h] [uid]
626
627
628       uid    The uid to lock
629
630
631

OPTIONS 'dsidm user status'

633       usage: dsidm instance user status [-h] [uid]
634
635
636       uid    The uid to check
637
638
639

OPTIONS 'dsidm user unlock'

641       usage: dsidm instance user unlock [-h] [uid]
642
643
644       uid    The uid to unlock
645
646
647
648

OPTIONS 'dsidm client_config'

650       usage: dsidm instance client_config [-h]  {sssd.conf,ldap.conf,display}
651       ...
652
653
654   Sub-commands
655       dsidm client_config sssd.conf
656              Generate a SSSD configuration for this LDAP server
657
658       dsidm client_config ldap.conf
659              Generate  an  OpenLDAP  ldap.conf  configuration  for  this LDAP
660              server
661
662       dsidm client_config display
663              Display generic application parameters for LDAP connection
664

OPTIONS 'dsidm client_config sssd.conf'

666       usage: dsidm instance client_config sssd.conf [-h] [allowed_group]
667
668
669       allowed_group
670              The name of the group allowed access to this system
671
672
673

OPTIONS 'dsidm client_config ldap.conf'

675       usage: dsidm instance client_config ldap.conf [-h]
676
677
678
679

OPTIONS 'dsidm client_config display'

681       usage: dsidm instance client_config display [-h]
682
683
684
685
686

OPTIONS 'dsidm role'

688       usage: dsidm instance role [-h]
689                                  {list,get-by-dn,modify-by-
690       dn,delete,lock,unlock,entry-status,subtree-status}
691                                  ...
692
693
694   Sub-commands
695       dsidm role list
696              list roles that could login to the directory
697
698       dsidm role get-by-dn
699              get-by-dn <dn>
700
701       dsidm role modify-by-dn
702              modify-by-dn <dn> <add|delete|replace>:<attribute>:<value> ...
703
704       dsidm role delete
705              deletes the role
706
707       dsidm role lock
708              lock
709
710       dsidm role unlock
711              unlock
712
713       dsidm role entry-status
714              status of a single entry
715
716       dsidm role subtree-status
717              status of a subtree
718

OPTIONS 'dsidm role list'

720       usage: dsidm instance role list [-h]
721
722
723
724

OPTIONS 'dsidm role get-by-dn'

726       usage: dsidm instance role get-by-dn [-h] [dn]
727
728
729       dn     The dn to get and display
730
731
732

OPTIONS 'dsidm role modify-by-dn'

734       usage: dsidm instance role modify-by-dn [-h] dn changes [changes ...]
735
736
737       dn     The dn to get and display
738
739
740       changes
741              A     list     of     changes     to     apply     in    format:
742              <add|delete|replace>:<attribute>:<value>
743
744
745

OPTIONS 'dsidm role delete'

747       usage: dsidm instance role delete [-h] [dn]
748
749
750       dn     The dn of the role to delete
751
752
753

OPTIONS 'dsidm role lock'

755       usage: dsidm instance role lock [-h] [dn]
756
757
758       dn     The dn to lock
759
760
761

OPTIONS 'dsidm role unlock'

763       usage: dsidm instance role unlock [-h] [dn]
764
765
766       dn     The dn to unlock
767
768
769

OPTIONS 'dsidm role entry-status'

771       usage: dsidm instance role entry-status [-h] [dn]
772
773
774       dn     The single entry dn to check
775
776
777

OPTIONS 'dsidm role subtree-status'

779       usage:  dsidm  instance  role  subtree-status  [-h]  [-f  FILTER]   [-s
780       {base,one,sub}]
781                                                 basedn
782
783
784       basedn Search base for finding entries
785
786
787       -f FILTER, --filter FILTER
788              Search filter for finding entries
789
790
791       -s {base,one,sub}, --scope {base,one,sub}
792              Search scope (base, one, sub - default is sub
793
794
795
796       -b BASEDN, --basedn BASEDN
797              Basedn (root naming context) of the instance to manage
798
799
800       -v, --verbose
801              Display verbose operation tracing during command execution
802
803
804       -D BINDDN, --binddn BINDDN
805              The account to bind as for executing operations
806
807
808       -w BINDPW, --bindpw BINDPW
809              Password for binddn
810
811
812       -W, --prompt
813              Prompt for password for binddn
814
815
816       -y PWDFILE, --pwdfile PWDFILE
817              Specifies a file containing the password for the bind DN
818
819
820       -Z, --starttls
821              Connect with StartTLS
822
823
824       -j, --json
825              Return result in JSON object
826
827

AUTHORS

829       lib389 was written by Red Hat Inc. <389-devel@lists.fedoraproject.org>.
830

DISTRIBUTION

832       The    latest    version    of    lib389   may   be   downloaded   from
833http://www.port389.org/docs/389ds/FAQ/upstream-test-framework.html
834
835
836
837                                    Manual                            dsidm(8)
Impressum