source: branches/samba-3.2.x/docs/manpages/wbinfo.1

Last change on this file was 340, checked in by Herwig Bauernfeind, 16 years ago

Update 3.2 to 3.2.15 (security update)

File size: 11.5 KB
RevLine 
[201]1.\" Title: wbinfo
[231]2.\" Author: [see the "AUTHOR" section]
3.\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
[340]4.\" Date: 09/30/2009
[201]5.\" Manual: User Commands
6.\" Source: Samba 3.2
[231]7.\" Language: English
[201]8.\"
[340]9.TH "WBINFO" "1" "09/30/2009" "Samba 3\&.2" "User Commands"
[231]10.\" -----------------------------------------------------------------
11.\" * (re)Define some macros
12.\" -----------------------------------------------------------------
13.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14.\" toupper - uppercase a string (locale-aware)
15.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16.de toupper
17.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
18\\$*
19.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
20..
21.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22.\" SH-xref - format a cross-reference to an SH section
23.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24.de SH-xref
25.ie n \{\
26.\}
27.toupper \\$*
28.el \{\
29\\$*
30.\}
31..
32.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33.\" SH - level-one heading that works better for non-TTY output
34.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35.de1 SH
36.\" put an extra blank line of space above the head in non-TTY output
37.if t \{\
38.sp 1
39.\}
40.sp \\n[PD]u
41.nr an-level 1
42.set-an-margin
43.nr an-prevailing-indent \\n[IN]
44.fi
45.in \\n[an-margin]u
46.ti 0
47.HTML-TAG ".NH \\n[an-level]"
48.it 1 an-trap
49.nr an-no-space-flag 1
50.nr an-break-flag 1
51\." make the size of the head bigger
52.ps +3
53.ft B
54.ne (2v + 1u)
55.ie n \{\
56.\" if n (TTY output), use uppercase
57.toupper \\$*
58.\}
59.el \{\
60.nr an-break-flag 0
61.\" if not n (not TTY), use normal case (not uppercase)
62\\$1
63.in \\n[an-margin]u
64.ti 0
65.\" if not n (not TTY), put a border/line under subheading
66.sp -.6
67\l'\n(.lu'
68.\}
69..
70.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71.\" SS - level-two heading that works better for non-TTY output
72.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73.de1 SS
74.sp \\n[PD]u
75.nr an-level 1
76.set-an-margin
77.nr an-prevailing-indent \\n[IN]
78.fi
79.in \\n[IN]u
80.ti \\n[SN]u
81.it 1 an-trap
82.nr an-no-space-flag 1
83.nr an-break-flag 1
84.ps \\n[PS-SS]u
85\." make the size of the head bigger
86.ps +2
87.ft B
88.ne (2v + 1u)
89.if \\n[.$] \&\\$*
90..
91.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
92.\" BB/BE - put background/screen (filled box) around block of text
93.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
94.de BB
95.if t \{\
96.sp -.5
97.br
98.in +2n
99.ll -2n
100.gcolor red
101.di BX
102.\}
103..
104.de EB
105.if t \{\
106.if "\\$2"adjust-for-leading-newline" \{\
107.sp -1
108.\}
109.br
110.di
111.in
112.ll
113.gcolor
114.nr BW \\n(.lu-\\n(.i
115.nr BH \\n(dn+.5v
116.ne \\n(BHu+.5v
117.ie "\\$2"adjust-for-leading-newline" \{\
118\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
119.\}
120.el \{\
121\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
122.\}
123.in 0
124.sp -.5v
125.nf
126.BX
127.in
128.sp .5v
129.fi
130.\}
131..
132.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
133.\" BM/EM - put colored marker in margin next to block of text
134.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
135.de BM
136.if t \{\
137.br
138.ll -2n
139.gcolor red
140.di BX
141.\}
142..
143.de EM
144.if t \{\
145.br
146.di
147.ll
148.gcolor
149.nr BH \\n(dn
150.ne \\n(BHu
151\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[]
152.in 0
153.nf
154.BX
155.in
156.fi
157.\}
158..
159.\" -----------------------------------------------------------------
160.\" * set default formatting
161.\" -----------------------------------------------------------------
[201]162.\" disable hyphenation
163.nh
164.\" disable justification (adjust text to left margin only)
165.ad l
[231]166.\" -----------------------------------------------------------------
167.\" * MAIN CONTENT STARTS HERE *
168.\" -----------------------------------------------------------------
169.SH "Name"
170wbinfo \- Query information from winbind daemon
171.SH "Synopsis"
172.fam C
173.HP \w'\ 'u
174\FCwbinfo\F[] [\-a\ user%password] [\-\-all\-domains] [\-\-allocate\-gid] [\-\-allocate\-uid] [\-D\ domain] [\-\-domain\ domain] [\-g] [\-\-getdcname\ domain] [\-\-get\-auth\-user] [\-G\ gid] [\-h] [\-i\ user] [\-I\ ip] [\-K\ user%password] [\-m] [\-n\ name] [\-N\ netbios\-name] [\-\-own\-domain] [\-p] [\-r\ user] [\-s\ sid] [\-\-separator] [\-\-sequence] [\-\-set\-auth\-user\ user%password] [\-S\ sid] [\-t] [\-u] [\-\-uid\-info\ uid] [\-\-user\-domgroups\ sid] [\-\-user\-sids\ sid] [\-U\ uid] [\-V] [\-Y\ sid] [\-\-verbose]
175.fam
[201]176.SH "DESCRIPTION"
177.PP
178This tool is part of the
179\fBsamba\fR(7)
[231]180suite\&.
[201]181.PP
182The
[231]183\FCwbinfo\F[]
[201]184program queries and returns information created and used by the
185\fBwinbindd\fR(8)
[231]186daemon\&.
[201]187.PP
188The
189\fBwinbindd\fR(8)
190daemon must be configured and running for the
[231]191\FCwbinfo\F[]
192program to be able to return information\&.
[201]193.SH "OPTIONS"
194.PP
195\-a|\-\-authenticate username%password
196.RS 4
[231]197Attempt to authenticate a user via winbindd\&. This checks both authenticaion methods and reports its results\&.
198.if n \{\
[201]199.sp
[231]200.\}
201.RS 4
202.BM yellow
[201]203.it 1 an-trap
204.nr an-no-space-flag 1
205.nr an-break-flag 1
206.br
[231]207.ps +1
208\fBNote\fR
209.ps -1
210.br
211Do not be tempted to use this functionality for authentication in third\-party applications\&. Instead use
212\fBntlm_auth\fR(1)\&.
213.sp .5v
214.EM yellow
[201]215.RE
[231]216.RE
[201]217.PP
218\-\-allocate\-gid
219.RS 4
220Get a new GID out of idmap
221.RE
222.PP
223\-\-allocate\-uid
224.RS 4
225Get a new UID out of idmap
226.RE
227.PP
228\-\-all\-domains
229.RS 4
[231]230List all domains (trusted and own domain)\&.
[201]231.RE
232.PP
233\-\-domain name
234.RS 4
[231]235This parameter sets the domain on which any specified operations will performed\&. If special domain name \'\&.\' is used to represent the current domain to which winbindd belongs\&. Currently only the
[201]236\fB\-\-sequence\fR,
237\fB\-u\fR, and
238\fB\-g\fR
[231]239options honor this parameter\&.
[201]240.RE
241.PP
242\-D|\-\-domain\-info domain
243.RS 4
[231]244Show most of the info we have about the domain\&.
[201]245.RE
246.PP
247\-g|\-\-domain\-groups
248.RS 4
249This option will list all groups available in the Windows NT domain for which the
250\fBsamba\fR(7)
[231]251daemon is operating in\&. Groups in all trusted domains will also be listed\&. Note that this operation does not assign group ids to any groups that have not already been seen by
252\fBwinbindd\fR(8)\&.
[201]253.RE
254.PP
255\-\-get\-auth\-user
256.RS 4
[231]257Print username and password used by winbindd during session setup to a domain controller\&. Username and password can be set using
258\fB\-\-set\-auth\-user\fR\&. Only available for root\&.
[201]259.RE
260.PP
261\-\-getdcname domain
262.RS 4
[231]263Get the DC name for the specified domain\&.
[201]264.RE
265.PP
266\-G|\-\-gid\-to\-sid gid
267.RS 4
[231]268Try to convert a UNIX group id to a Windows NT SID\&. If the gid specified does not refer to one within the idmap gid range then the operation will fail\&.
[201]269.RE
270.PP
271\-i|\-\-user\-info user
272.RS 4
[231]273Get user info\&.
[201]274.RE
275.PP
276\-I|\-\-WINS\-by\-ip ip
277.RS 4
278The
279\fI\-I\fR
280option queries
281\fBwinbindd\fR(8)
282to send a node status request to get the NetBIOS name associated with the IP address specified by the
283\fIip\fR
[231]284parameter\&.
[201]285.RE
286.PP
287\-K|\-\-krb5auth username%password
288.RS 4
[231]289Attempt to authenticate a user via Kerberos\&.
[201]290.RE
291.PP
292\-m|\-\-trusted\-domains
293.RS 4
294Produce a list of domains trusted by the Windows NT server
295\fBwinbindd\fR(8)
[231]296contacts when resolving names\&. This list does not include the Windows NT domain the server is a Primary Domain Controller for\&.
[201]297.RE
298.PP
299\-n|\-\-name\-to\-sid name
300.RS 4
301The
302\fI\-n\fR
303option queries
304\fBwinbindd\fR(8)
[231]305for the SID associated with the name specified\&. Domain names can be specified before the user name by using the winbind separator character\&. For example CWDOM1/Administrator refers to the Administrator user in the domain CWDOM1\&. If no domain is specified then the domain used is the one specified in the
[201]306\fBsmb.conf\fR(5)
307\fIworkgroup \fR
[231]308parameter\&.
[201]309.RE
310.PP
311\-N|\-\-WINS\-by\-name name
312.RS 4
313The
314\fI\-N\fR
315option queries
316\fBwinbindd\fR(8)
317to query the WINS server for the IP address associated with the NetBIOS name specified by the
318\fIname\fR
[231]319parameter\&.
[201]320.RE
321.PP
322\-\-own\-domain
323.RS 4
[231]324List own domain\&.
[201]325.RE
326.PP
327\-p|\-\-ping
328.RS 4
[231]329Check whether winbindd is still alive\&. Prints out either \'succeeded\' or \'failed\'\&.
[201]330.RE
331.PP
332\-r|\-\-user\-groups username
333.RS 4
[231]334Try to obtain the list of UNIX group ids to which the user belongs\&. This only works for users defined on a Domain Controller\&.
[201]335.RE
336.PP
337\-s|\-\-sid\-to\-name sid
338.RS 4
339Use
340\fI\-s\fR
[231]341to resolve a SID to a name\&. This is the inverse of the
[201]342\fI\-n \fR
[231]343option above\&. SIDs must be specified as ASCII strings in the traditional Microsoft format\&. For example, S\-1\-5\-21\-1455342024\-3071081365\-2475485837\-500\&.
[201]344.RE
345.PP
346\-\-separator
347.RS 4
[231]348Get the active winbind separator\&.
[201]349.RE
350.PP
351\-\-sequence
352.RS 4
353Show sequence numbers of all known domains
354.RE
355.PP
356\-\-set\-auth\-user username%password
357.RS 4
[231]358Store username and password used by winbindd during session setup to a domain controller\&. This enables winbindd to operate in a Windows 2000 domain with Restrict Anonymous turned on (a\&.k\&.a\&. Permissions compatible with Windows 2000 servers only)\&.
[201]359.RE
360.PP
361\-S|\-\-sid\-to\-uid sid
362.RS 4
[231]363Convert a SID to a UNIX user id\&. If the SID does not correspond to a UNIX user mapped by
[201]364\fBwinbindd\fR(8)
[231]365then the operation will fail\&.
[201]366.RE
367.PP
368\-t|\-\-check\-secret
369.RS 4
[231]370Verify that the workstation trust account created when the Samba server is added to the Windows NT domain is working\&.
[201]371.RE
372.PP
373\-u|\-\-domain\-users
374.RS 4
375This option will list all users available in the Windows NT domain for which the
376\fBwinbindd\fR(8)
[231]377daemon is operating in\&. Users in all trusted domains will also be listed\&. Note that this operation does not assign user ids to any users that have not already been seen by
[201]378\fBwinbindd\fR(8)
[231]379\&.
[201]380.RE
381.PP
382\-\-uid\-info UID
383.RS 4
[231]384Get user info for the user conencted to user id UID\&.
[201]385.RE
386.PP
387\-\-user\-domgroups SID
388.RS 4
[231]389Get user domain groups\&.
[201]390.RE
391.PP
392\-\-user\-sids SID
393.RS 4
[231]394Get user group SIDs for user\&.
[201]395.RE
396.PP
397\-U|\-\-uid\-to\-sid uid
398.RS 4
[231]399Try to convert a UNIX user id to a Windows NT SID\&. If the uid specified does not refer to one within the idmap uid range then the operation will fail\&.
[201]400.RE
401.PP
402\-\-verbose
403.RS 4
[231]404Print additional information about the query results\&.
[201]405.RE
406.PP
407\-Y|\-\-sid\-to\-gid sid
408.RS 4
[231]409Convert a SID to a UNIX group id\&. If the SID does not correspond to a UNIX group mapped by
[201]410\fBwinbindd\fR(8)
[231]411then the operation will fail\&.
[201]412.RE
413.PP
414\-V
415.RS 4
[231]416Prints the program version number\&.
[201]417.RE
418.PP
419\-h|\-\-help
420.RS 4
[231]421Print a summary of command line options\&.
[201]422.RE
423.SH "EXIT STATUS"
424.PP
[231]425The wbinfo program returns 0 if the operation succeeded, or 1 if the operation failed\&. If the
[201]426\fBwinbindd\fR(8)
427daemon is not working
[231]428\FCwbinfo\F[]
429will always return failure\&.
[201]430.SH "VERSION"
431.PP
[231]432This man page is correct for version 3 of the Samba suite\&.
[201]433.SH "SEE ALSO"
434.PP
435\fBwinbindd\fR(8)
436and
437\fBntlm_auth\fR(1)
438.SH "AUTHOR"
439.PP
[231]440The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
[201]441.PP
[231]442\FCwbinfo\F[]
[201]443and
[231]444\FCwinbindd\F[]
445were written by Tim Potter\&.
[201]446.PP
[231]447The conversion to DocBook for Samba 2\&.2 was done by Gerald Carter\&. The conversion to DocBook XML 4\&.2 for Samba 3\&.0 was done by Alexander Bokovoy\&.
Note: See TracBrowser for help on using the repository browser.