trying to get HEAD building again. If you want the code
[nivanova/samba-autobuild/.git] / docs / docbook / manpages / net.8.xml
1 <?xml version="1.0" encoding="iso8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3                   "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
4
5 <!ENTITY % globalentities SYSTEM './../global.ent'> %globalentities;
6
7 <!-- This one is only used by shutdown (RPC) -->
8 <!ENTITY net.arg.shutdown '
9 <varlistentry>
10 <term>-r</term>
11 <listitem><para>
12 Reboot after shutdown.
13 </para></listitem>
14 </varlistentry>
15
16 <varlistentry>
17 <term>-f</term>
18 <listitem><para>
19 Force shutting down all applications.
20 </para></listitem>
21 </varlistentry>
22
23 <varlistentry>
24 <term>-t timeout</term>
25 <listitem><para>
26 Timeout before system will be shut down. An interactive 
27 user of the system can use this time to cancel the shutdown.
28 </para></listitem>
29 </varlistentry>'>
30 ]>
31
32 <refentry id="net.8">
33
34 <refmeta>
35         <refentrytitle>net</refentrytitle>
36         <manvolnum>8</manvolnum>
37 </refmeta>
38
39
40 <refnamediv>
41         <refname>net</refname>
42         <refpurpose>Tool for administration of Samba and remote
43         CIFS servers.
44         </refpurpose>
45 </refnamediv>
46
47 <refsynopsisdiv>
48         <cmdsynopsis>
49                 <command>net</command>
50                 <arg choice="req">&lt;ads|rap|rpc&gt;</arg>
51                 <arg choice="opt">-h</arg>
52                 <arg choice="opt">-w workgroup</arg>
53                 <arg choice="opt">-W myworkgroup</arg>
54                 <arg choice="opt">-U user</arg>
55                 <arg choice="opt">-I ip-address</arg>
56                 <arg choice="opt">-p port</arg>
57                 <arg choice="opt">-n myname</arg>
58                 <arg choice="opt">-s conffile</arg>
59                 <arg choice="opt">-S server</arg>
60                 <arg choice="opt">-l</arg>
61                 <arg choice="opt">-P</arg>
62                 <arg choice="opt">-D debuglevel</arg>
63         </cmdsynopsis>
64 </refsynopsisdiv>
65
66 <refsect1>
67         <title>DESCRIPTION</title>
68
69         <para>This tool is part of the <citerefentry><refentrytitle>Samba</refentrytitle>
70         <manvolnum>7</manvolnum></citerefentry> suite.</para>
71
72         <para>The samba net utility is meant to work just like the net utility 
73         available for windows and DOS. The first argument should be used 
74         to specify the protocol to use when executing a certain command. 
75         ADS is used for ActiveDirectory, RAP is using for old (Win9x/NT3) 
76         clients and RPC can be used for NT4 and Windows 2000. If this 
77         argument is omitted, net will try to determine it automatically. 
78         Not all commands are available on all protocols.
79         </para>
80
81 </refsect1>
82
83 <refsect1>
84         <title>OPTIONS</title>
85
86         <variablelist>
87                 &stdarg.help;
88                 
89                 <varlistentry>
90                 <term>-w target-workgroup</term>
91                 <listitem><para>
92                 Sets target workgroup or domain. You have to specify 
93                 either this option or the IP address or the name of a server.
94                 </para></listitem>
95                 </varlistentry>
96
97                 <varlistentry>
98                 <term>-W workgroup</term>
99                 <listitem><para>
100                 Sets client workgroup or domain
101                 </para></listitem>
102                 </varlistentry>
103
104                 <varlistentry>
105                 <term>-U user</term>
106                 <listitem><para>
107                 User name to use
108                 </para></listitem>
109                 </varlistentry>
110
111                 <varlistentry>
112                 <term>-I ip-address</term>
113                 <listitem><para>
114                 IP address of target server to use. You have to
115                 specify either this option or a target workgroup or
116                 a target server.
117                 </para></listitem>
118                 </varlistentry>
119
120                 <varlistentry>
121                 <term>-p port</term>
122                 <listitem><para>
123                 Port on the target server to connect to (usually 139 or 445). 
124                 Defaults to trying 445 first, then 139.
125                 </para></listitem>
126                 </varlistentry>
127
128                 &stdarg.netbios.name;
129                 &stdarg.configfile;
130
131                 <varlistentry>
132                 <term>-S server</term>
133                 <listitem><para>
134                 Name of target server. You should specify either 
135                 this option or a target workgroup or a target IP address.
136                 </para></listitem>
137                 </varlistentry>
138
139                 <varlistentry>
140                 <term>-l</term>
141                 <listitem><para>
142                 When listing data, give more information on each item.
143                 </para></listitem>
144                 </varlistentry>
145
146                 <varlistentry>
147                 <term>-P</term>
148                 <listitem><para>
149                 Make queries to the external server using the machine account of the local server.
150                 </para></listitem>
151                 </varlistentry>
152
153                 &stdarg.debug;
154         </variablelist>
155 </refsect1>
156
157 <refsect1>
158 <title>COMMANDS</title>
159
160 <refsect2>
161         <title>TIME</title>
162
163         <para>The <command>NET TIME</command> command allows you to view the time on a remote server
164         or synchronise the time on the local server with the time on the remote server.</para>
165
166 <refsect3>
167 <title>TIME</title>
168
169 <para>Without any options, the <command>NET TIME</command> command 
170 displays the time on the remote server.
171 </para>
172
173 </refsect3>
174
175 <refsect3>
176 <title>TIME SYSTEM</title>
177
178 <para> Displays the time on the remote server in a format ready for <command>/bin/date</command></para>
179
180 </refsect3>
181
182 <refsect3>
183 <title>TIME SET</title>
184 <para>Tries to set the date and time of the local server to that on 
185 the remote server using <command>/bin/date</command>. </para>
186
187 </refsect3>
188
189 <refsect3>
190 <title>TIME ZONE</title>
191
192 <para>Displays the timezone in hours from GMT on the remote computer.</para>
193
194 </refsect3>
195 </refsect2>
196
197 <refsect2>
198 <title>[RPC|ADS] JOIN [TYPE] [-U username[%password]] [options]</title>
199
200 <para>
201 Join a domain.  If the account already exists on the server, and 
202 [TYPE] is MEMBER, the machine will attempt to join automatically. 
203 (Assuming that the machine has been created in server manager)
204 Otherwise, a password will be prompted for, and a new account may
205 be created.</para>
206
207 <para>
208 [TYPE] may be PDC, BDC or MEMBER to specify the type of server
209 joining the domain.
210 </para>
211 </refsect2>
212
213 <refsect2>
214 <title>[RPC] OLDJOIN [options]</title>
215
216 <para>Join a domain. Use the OLDJOIN option to join the domain 
217 using the old style of domain joining - you need to create a trust 
218 account in server manager first.</para>
219 </refsect2>
220
221 <refsect2>
222 <title>[RPC|ADS] USER</title>
223
224 <refsect3>
225 <title>[RPC|ADS] USER DELETE <replaceable>target</replaceable></title>
226
227 <para>Delete specified user</para>
228
229 </refsect3>
230
231 <refsect3>
232 <title>[RPC|ADS] USER LIST</title>
233
234 <para>List all users</para>
235
236 </refsect3>
237
238 <refsect3>
239 <title>[RPC|ADS] USER INFO <replaceable>target</replaceable></title>
240
241 <para>List the domain groups of a the specified user.</para>
242
243 </refsect3>
244
245 <refsect3>
246 <title>[RPC|ADS] USER ADD <replaceable>name</replaceable> [password] [-F user flags] [-C comment]</title>
247
248 <para>Add specified user.</para>
249 </refsect3>
250 </refsect2>
251
252 <refsect2>
253 <title>[RPC|ADS] GROUP</title>
254
255 <refsect3>
256 <title>[RPC|ADS] GROUP [misc options] [targets]</title>
257 <para>List user groups.</para>
258 </refsect3>
259
260 <refsect3>
261 <title>[RPC|ADS] GROUP DELETE <replaceable>name</replaceable> [misc. options]</title>
262
263 <para>Delete specified group.</para>
264
265 </refsect3>
266
267 <refsect3>
268 <title>[RPC|ADS] GROUP ADD <replaceable>name</replaceable> [-C comment]</title>
269
270 <para>Create specified group.</para>
271
272 </refsect3>
273 </refsect2>
274
275 <refsect2>
276 <title>[RAP|RPC] SHARE</title>
277
278 <refsect3>
279 <title>[RAP|RPC] SHARE [misc. options] [targets]</title>
280
281 <para>Enumerates all exported resources (network shares) on target server.</para>
282
283 </refsect3>
284
285 <refsect3>
286 <title>[RAP|RPC] SHARE ADD <replaceable>name=serverpath</replaceable> [-C comment] [-M maxusers] [targets]</title>
287
288 <para>Adds a share from a server (makes the export active). Maxusers 
289 specifies the number of users that can be connected to the 
290 share simultaneously.</para>
291
292 </refsect3>
293
294 <refsect3>
295 <title>SHARE DELETE <replaceable>sharenam</replaceable></title>
296
297 <para>Delete specified share.</para>
298 </refsect3>
299 </refsect2>
300
301 <refsect2>
302 <title>[RPC|RAP] FILE</title>
303
304 <refsect3>
305 <title>[RPC|RAP] FILE</title>
306
307 <para>List all open files on remote server.</para>
308
309 </refsect3>
310
311 <refsect3>
312 <title>[RPC|RAP] FILE CLOSE <replaceable>fileid</replaceable></title>
313
314 <para>Close file with specified <replaceable>fileid</replaceable> on 
315 remote server.</para>
316
317 </refsect3>
318
319 <refsect3>
320 <title>[RPC|RAP] FILE INFO <replaceable>fileid</replaceable></title>
321
322 <para>
323 Print information on specified <replaceable>fileid</replaceable>. 
324 Currently listed are: file-id, username, locks, path, permissions.
325 </para>
326
327 </refsect3>
328
329 <refsect3>
330 <title>[RAP|RPC] FILE USER</title>
331
332 &not.implemented;
333
334 </refsect3>
335
336 </refsect2>
337
338 <refsect2>
339 <title>SESSION</title>
340
341 <refsect3>
342 <title>RAP SESSION</title>
343
344 <para>Without any other options, SESSION enumerates all active SMB/CIFS 
345 sessions on the target server.</para>
346
347 </refsect3>
348
349 <refsect3>
350 <title>RAP SESSION DELETE|CLOSE <replaceable>CLIENT_NAME</replaceable></title>
351
352 <para>Close the specified sessions.</para>
353
354 </refsect3>
355
356 <refsect3>
357 <title>RAP SESSION INFO <replaceable>CLIENT_NAME</replaceable></title>
358
359 <para>Give a list with all the open files in specified session.</para>
360
361 </refsect3>
362
363 </refsect2>
364
365 <refsect2>
366 <title>RAP SERVER <replaceable>DOMAIN</replaceable></title>
367
368 <para>List all servers in specified domain or workgroup. Defaults
369 to local domain.</para>
370
371 </refsect2>
372
373 <refsect2>
374 <title>RAP DOMAIN</title>
375
376 <para>Lists all domains and workgroups visible on the 
377 current network.</para>
378
379 </refsect2>
380
381 <refsect2>
382 <title>RAP PRINTQ</title>
383
384 <refsect3>
385 <title>RAP PRINTQ LIST <replaceable>QUEUE_NAME</replaceable></title>
386
387 <para>Lists the specified print queue and print jobs on the server.
388 If the <replaceable>QUEUE_NAME</replaceable> is omitted, all 
389 queues are listed.</para>
390
391 </refsect3>
392
393 <refsect3>
394 <title>RAP PRINTQ DELETE <replaceable>JOBID</replaceable></title>
395
396 <para>Delete job with specified id.</para>
397
398 </refsect3>
399
400 </refsect2>
401
402 <refsect2>
403 <title>RAP VALIDATE <replaceable>user</replaceable> [<replaceable>password</replaceable>]</title>
404
405 <para>
406 Validate whether the specified user can log in to the 
407 remote server. If the password is not specified on the commandline, it 
408 will be prompted. 
409 </para>
410
411 &not.implemented;
412
413 </refsect2>
414
415 <refsect2>
416 <title>RAP GROUPMEMBER</title>
417
418 <refsect3>
419 <title>RAP GROUPMEMBER LIST <replaceable>GROUP</replaceable></title>
420
421 <para>List all members of the specified group.</para>
422
423 </refsect3>
424
425 <refsect3>
426 <title>RAP GROUPMEMBER DELETE <replaceable>GROUP</replaceable> <replaceable>USER</replaceable></title>
427
428 <para>Delete member from group.</para>
429
430 </refsect3>
431
432 <refsect3>
433 <title>RAP GROUPMEMBER ADD <replaceable>GROUP</replaceable> <replaceable>USER</replaceable></title>
434
435 <para>Add member to group.</para>
436
437 </refsect3>
438
439 </refsect2>
440
441 <refsect2>
442 <title>RAP ADMIN <replaceable>command</replaceable></title>
443
444 <para>Execute the specified <replaceable>command</replaceable> on 
445 the remote server. Only works with OS/2 servers.
446 </para>
447
448 &not.implemented;
449
450 </refsect2>
451
452 <refsect2>
453 <title>RAP SERVICE</title>
454
455 <refsect3>
456 <title>RAP SERVICE START <replaceable>NAME</replaceable> [arguments...]</title>
457
458 <para>Start the specified service on the remote server. Not implemented yet.</para>
459
460 &not.implemented;
461
462 </refsect3>
463
464 <refsect3>
465 <title>RAP SERVICE STOP</title>
466
467 <para>Stop the specified service on the remote server.</para>
468
469 &not.implemented;
470
471 </refsect3>
472
473 </refsect2>
474
475 <refsect2>
476 <title>RAP PASSWORD <replaceable>USER</replaceable> <replaceable>OLDPASS</replaceable> <replaceable>NEWPASS</replaceable></title>
477
478 <para>
479 Change password of <replaceable>USER</replaceable> from <replaceable>OLDPASS</replaceable> to <replaceable>NEWPASS</replaceable>.
480 </para>
481
482 </refsect2>
483
484 <refsect2>
485 <title>LOOKUP</title>
486
487 <refsect3>
488 <title>LOOKUP HOST <replaceable>HOSTNAME</replaceable> [<replaceable>TYPE</replaceable>]</title>
489
490 <para>
491 Lookup the IP address of the given host with the specified type (netbios suffix). 
492 The type defaults to 0x20 (workstation).
493 </para>
494
495 </refsect3>
496
497 <refsect3>
498 <title>LOOKUP LDAP [<replaceable>DOMAIN</replaceable></title>
499
500 <para>Give IP address of LDAP server of specified <replaceable>DOMAIN</replaceable>. Defaults to local domain.</para>
501
502 </refsect3>
503
504 <refsect3>
505 <title>LOOKUP KDC [<replaceable>REALM</replaceable>]</title>
506
507 <para>Give IP address of KDC for the specified <replaceable>REALM</replaceable>.
508 Defaults to local realm.</para>
509
510 </refsect3>
511
512 <refsect3>
513 <title>LOOKUP DC [<replaceable>DOMAIN</replaceable>]</title>
514
515 <para>Give IP's of Domain Controllers for specified <replaceable>
516 DOMAIN</replaceable>. Defaults to local domain.</para>
517
518 </refsect3>
519
520 <refsect3>
521 <title>LOOKUP MASTER <replaceable>DOMAIN</replaceable></title>
522
523 <para>Give IP of master browser for specified <replaceable>DOMAIN</replaceable>
524 or workgroup. Defaults to local domain.</para>
525
526 </refsect3>
527
528 </refsect2>
529
530 <refsect2>
531 <title>CACHE</title>
532
533 <para>Samba uses a general caching interface called 'gencache'. It 
534 can be controlled using 'NET CACHE'.</para>
535
536 <para>All the timeout parameters support the suffixes:
537
538 <simplelist>
539 <member>s - Seconds</member>
540 <member>m - Minutes</member>
541 <member>h - Hours</member>
542 <member>d - Days</member>
543 <member>w - Weeks</member>
544 </simplelist>
545
546 </para>
547
548 <refsect3>
549 <title>CACHE ADD <replaceable>key</replaceable> <replaceable>data</replaceable> <replaceable>time-out</replaceable></title>
550
551 <para>Add specified key+data to the cache with the given timeout.</para>
552
553 </refsect3>
554
555 <refsect3>
556 <title>CACHE DEL <replaceable>key</replaceable></title>
557
558 <para>Delete key from the cache.</para>
559
560 </refsect3>
561
562 <refsect3>
563 <title>CACHE SET <replaceable>key</replaceable> <replaceable>data</replaceable> <replaceable>time-out</replaceable></title>
564
565 <para>Update data of existing cache entry.</para>
566
567 </refsect3>
568
569 <refsect3>
570 <title>CACHE SEARCH <replaceable>PATTERN</replaceable></title>
571
572 <para>Search for the specified pattern in the cache data.</para>
573
574 </refsect3>
575
576 <refsect3>
577 <title>CACHE LIST</title>
578
579 <para>
580 List all current items in the cache.
581 </para>
582
583 </refsect3>
584
585 <refsect3>
586 <title>CACHE FLUSH</title>
587
588 <para>Remove all the current items from the cache.</para>
589
590 </refsect3>
591
592 </refsect2>
593
594 <refsect2>
595 <title>GETLOCALSID [DOMAIN]</title>
596
597 <para>Print the SID of the specified domain, or if the parameter is
598 omitted, the SID of the domain the local server is in.</para>
599
600 </refsect2>
601
602 <refsect2>
603 <title>SETLOCALSID S-1-5-21-x-y-z</title>
604
605 <para>Sets domain sid for the local server to the specified SID.</para>
606
607 </refsect2>
608
609 <refsect2>
610 <title>GROUPMAP</title>
611
612 <para>Manage the mappings between Windows group SIDs and UNIX groups.
613 Parameters take the for "parameter=value".  Common options include:</para>
614
615 <itemizedlist>
616 <listitem><para>unixgroup - Name of the UNIX group</para></listitem>
617 <listitem><para>ntgroup - Name of the Windows NT group (must be
618   resolvable to a SID</para></listitem>
619 <listitem><para>rid - Unsigned 32-bit integer</para></listitem>
620 <listitem><para>sid - Full SID in the form of "S-1-..."</para></listitem>
621 <listitem><para>type - Type of the group; either 'domain', 'local',
622   or 'builtin'</para></listitem>
623 <listitem><para>comment - Freeform text description of the group</para></listitem>
624 </itemizedlist>
625
626 <refsect3>
627 <title>GROUPMAP ADD</title>
628
629 <para>Add a new group mapping entry</para>
630
631 <para>net groupmap add {rid=int|sid=string} unixgroup=string [type={domain|local|builtin}] [ntgroup=string] [comment=string]</para>
632
633 </refsect3>
634
635 <refsect3>
636 <title>GROUPMAP DELETE</title>
637
638 <para>Delete a group mapping entry</para>
639
640 <para>net groupmap delete {ntgroup=string|sid=SID}</para>
641
642 </refsect3>
643
644 <refsect3>
645 <title>GROUPMAP MODIFY</title>
646
647 <para>Update en existing group entry</para>
648
649 <para>net groupmap modify {ntgroup=string|sid=SID} [unixgroup=string] [comment=string] [type={domain|local}</para>
650 </refsect3>
651
652 <refsect3>
653 <title>GROUPMAP LIST</title>
654
655 <para>List existing group mapping entries</para>
656
657 <para>net groupmap list [verbose] [ntgroup=string] [sid=SID]</para>
658
659 </refsect3>
660 </refsect2>
661
662
663
664 <refsect2>
665 <title>MAXRID</title>
666
667 <para>Prints out the highest RID currently in use on the local
668 server (by the active 'passdb backend').
669 </para>
670
671 </refsect2>
672
673 <refsect2>
674 <title>RPC INFO</title>
675
676 <para>Print information about the domain of the remote server,
677 such as domain name, domain sid and number of users and groups.
678 </para>
679
680 </refsect2>
681
682 <refsect2>
683 <title>[RPC|ADS] TESTJOIN</title>
684
685 <para>Check whether participation in a domain is still valid.</para>
686
687 </refsect2>
688
689 <refsect2>
690 <title>[RPC|ADS] CHANGETRUSTPW</title>
691
692 <para>Force change of domain trust password.</para>
693
694 </refsect2>
695
696 <refsect2>
697 <title>RPC TRUSTDOM</title>
698
699 <refsect3>
700 <title>RPC TRUSTDOM ADD <replaceable>DOMAIN</replaceable></title>
701
702 <para>Add a interdomain trust account for 
703 <replaceable>DOMAIN</replaceable> to the remote server. 
704 </para>
705
706 </refsect3>
707
708 <refsect3>
709 <title>RPC TRUSTDOM DEL <replaceable>DOMAIM</replaceable></title>
710
711 <para>Remove interdomain trust account for 
712 <replaceable>DOMAIN</replaceable> from the remote server. 
713 </para>
714
715 &not.implemented;
716
717 </refsect3>
718
719 <refsect3>
720 <title>RPC TRUSTDOM ESTABLISH <replaceable>DOMAIN</replaceable></title>
721
722 <para>
723 Establish a trust relationship to a trusting domain. 
724 Interdomain account must already be created on the remote PDC.
725 </para>
726
727 </refsect3>
728
729 <refsect3>
730 <title>RPC TRUSTDOM REVOKE <replaceable>DOMAIN</replaceable></title>
731 <para>Abandon relationship to trusted domain</para>
732
733 </refsect3>
734
735 <refsect3>
736 <title>RPC TRUSTDOM LIST</title>
737
738 <para>List all current interdomain trust relationships.</para>
739
740 </refsect3>
741
742 </refsect2>
743
744 <refsect2>
745 <title>RPC ABORTSHUTDOWN</title>
746
747 <para>Abort the shutdown of a remote server.</para>
748
749 </refsect2>
750
751 <refsect2>
752 <title>SHUTDOWN [-t timeout] [-r] [-f] [-C message]</title>
753
754 <para>Shut down the remote server.</para>
755
756 <variablelist>
757 &net.arg.shutdown;
758 <varlistentry>
759 <term>-C message</term>
760 <listitem><para>Display the specified message on the screen to 
761 announce the shutdown.</para></listitem>
762 </varlistentry>
763 </variablelist>
764
765 </refsect2>
766
767 <refsect2>
768 <title>SAMDUMP</title>
769
770 <para>Print out sam database of remote server. You need
771 to run this on either a BDC. <!-- 
772 Is that correct? - Jelmer --></para>
773 </refsect2>
774
775 <refsect2>
776 <title>VAMPIRE</title>
777
778 <para>Export users, aliases and groups from remote server to 
779 local server. Can only be run an a BDC.
780 </para>
781
782 </refsect2>
783
784 <refsect2>
785 <title>GETSID</title>
786
787 <para>Fetch domain SID and store it in the local <filename>secrets.tdb</filename>. </para>
788
789 </refsect2>
790
791 <refsect2>
792 <title>ADS LEAVE</title>
793
794 <para>Make the remote host leave the domain it is part of. </para>
795
796 </refsect2>
797
798 <refsect2>
799 <title>ADS STATUS</title>
800
801 <para>Print out status of machine account of the local machine in ADS.
802 Prints out quite some debug info. Aimed at developers, regular 
803 users should use <command>NET ADS TESTJOIN</command>.</para>
804
805 </refsect2>
806
807 <refsect2>
808 <title>ADS PRINTER</title>
809
810 <refsect3>
811 <title>ADS PRINTER INFO [<replaceable>PRINTER</replaceable>] [<replaceable>SERVER</replaceable>]</title>
812
813 <para>
814 Lookup info for <replaceable>PRINTER</replaceable> on <replaceable>SERVER</replaceable>. The printer name defaults to "*", the 
815 server name defaults to the local host.</para>
816
817 </refsect3>
818
819 <refsect3>
820 <title>ADS PRINTER PUBLISH <replaceable>PRINTER</replaceable></title>
821
822 <para>Publish specified printer using ADS.</para>
823
824 </refsect3>
825
826 <refsect3>
827 <title>ADS PRINTER REMOVE <replaceable>PRINTER</replaceable></title>
828
829 <para>Remove specified printer from ADS directory.</para>
830
831 </refsect3>
832
833 </refsect2>
834
835 <refsect2>
836 <title>ADS SEARCH <replaceable>EXPRESSION</replaceable> <replaceable>ATTRIBUTES...</replaceable></title>
837
838 <para>Perform a raw LDAP search on a ADS server and dump the results. The 
839 expression is a standard LDAP search expression, and the 
840 attributes are a list of LDAP fields to show in the results.</para>
841
842 <para>Example: <userinput>net ads search '(objectCategory=group)' sAMAccountName</userinput>
843 </para>
844
845 </refsect2>
846
847 <refsect2>
848 <title>ADS DN <replaceable>DN</replaceable> <replaceable>(attributes)</replaceable></title>
849
850 <para>
851 Perform a raw LDAP search on a ADS server and dump the results. The 
852 DN standard LDAP DN, and the attributes are a list of LDAP fields 
853 to show in the result. 
854 </para>
855
856 <para>Example: <userinput>net ads dn 'CN=administrator,CN=Users,DC=my,DC=domain' SAMAccountName</userinput></para>
857
858 </refsect2>
859
860 <refsect2>
861 <title>WORKGROUP</title>
862
863 <para>Print out workgroup name for specified kerberos realm.</para>
864
865 </refsect2>
866
867
868 <refsect2>
869 <title>HELP [COMMAND]</title>
870
871 <para>Gives usage information for the specified command.</para>
872
873 </refsect2>
874
875 </refsect1>
876
877 <refsect1>
878         <title>VERSION</title>
879
880         <para>This man page is complete for version 3.0 of the Samba 
881         suite.</para>
882 </refsect1>
883
884 <refsect1>
885         <title>AUTHOR</title>
886         
887         <para>The original Samba software and related utilities 
888         were created by Andrew Tridgell. Samba is now developed
889         by the Samba Team as an Open Source project similar 
890         to the way the Linux kernel is developed.</para>
891
892         <para>The net manpage was written by Jelmer Vernooij.</para>
893         
894 </refsect1>
895
896 </refentry>