source: branches/samba-3.5.x/docs/manpages/wbinfo.1@ 739

Last change on this file since 739 was 739, checked in by Silvan Scherrer, 13 years ago

Samba Server 3.5: update branche to 3.5.19

File size: 10.7 KB
Line 
1'\" t
2.\" Title: wbinfo
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 11/01/2012
6.\" Manual: User Commands
7.\" Source: Samba 3.5
8.\" Language: English
9.\"
10.TH "WBINFO" "1" "11/01/2012" "Samba 3\&.5" "User Commands"
11.\" -----------------------------------------------------------------
12.\" * set default formatting
13.\" -----------------------------------------------------------------
14.\" disable hyphenation
15.nh
16.\" disable justification (adjust text to left margin only)
17.ad l
18.\" -----------------------------------------------------------------
19.\" * MAIN CONTENT STARTS HERE *
20.\" -----------------------------------------------------------------
21.SH "NAME"
22wbinfo \- Query information from winbind daemon
23.SH "SYNOPSIS"
24.HP \w'\ 'u
25wbinfo [\-a\ user%password] [\-\-all\-domains] [\-\-allocate\-gid] [\-\-allocate\-uid] [\-c] [\-\-ccache\-save] [\-\-change\-user\-password] [\-D\ domain] [\-\-domain\ domain] [\-\-dsgetdcname\ domain] [\-g] [\-\-getdcname\ domain] [\-\-get\-auth\-user] [\-G\ gid] [\-\-gid\-info] [\-\-group\-info] [\-\-help|\-?] [\-i\ user] [\-I\ ip] [\-K\ user%password] [\-\-lanman] [\-m] [\-n\ name] [\-N\ netbios\-name] [\-\-ntlmv2] [\-\-online\-status] [\-\-own\-domain] [\-p] [\-P|\-\-ping\-dc] [\-r\ user] [\-R|\-\-lookup\-rids] [\-\-remove\-uid\-mapping\ uid,sid] [\-\-remove\-gid\-mapping\ gid,sid] [\-s\ sid] [\-\-separator] [\-\-sequence] [\-\-set\-auth\-user\ user%password] [\-\-set\-uid\-mapping\ uid,sid] [\-\-set\-gid\-mapping\ gid,sid] [\-S\ sid] [\-\-sid\-aliases] [\-\-sid\-to\-fullname] [\-t] [\-u] [\-\-uid\-info\ uid] [\-\-usage] [\-\-user\-domgroups\ sid] [\-\-user\-sids\ sid] [\-U\ uid] [\-V] [\-\-verbose] [\-Y\ sid]
26.SH "DESCRIPTION"
27.PP
28This tool is part of the
29\fBsamba\fR(7)
30suite\&.
31.PP
32The
33wbinfo
34program queries and returns information created and used by the
35\fBwinbindd\fR(8)
36daemon\&.
37.PP
38The
39\fBwinbindd\fR(8)
40daemon must be configured and running for the
41wbinfo
42program to be able to return information\&.
43.SH "OPTIONS"
44.PP
45\-a|\-\-authenticate \fIusername%password\fR
46.RS 4
47Attempt to authenticate a user via
48\fBwinbindd\fR(8)\&. This checks both authentication methods and reports its results\&.
49.if n \{\
50.sp
51.\}
52.RS 4
53.it 1 an-trap
54.nr an-no-space-flag 1
55.nr an-break-flag 1
56.br
57.ps +1
58\fBNote\fR
59.ps -1
60.br
61Do not be tempted to use this functionality for authentication in third\-party applications\&. Instead use
62\fBntlm_auth\fR(1)\&.
63.sp .5v
64.RE
65.RE
66.PP
67\-\-allocate\-gid
68.RS 4
69Get a new GID out of idmap
70.RE
71.PP
72\-\-allocate\-uid
73.RS 4
74Get a new UID out of idmap
75.RE
76.PP
77\-\-all\-domains
78.RS 4
79List all domains (trusted and own domain)\&.
80.RE
81.PP
82\-c|\-\-change\-secret
83.RS 4
84Change the trust account password\&. May be used in conjunction with
85\fBdomain\fR
86in order to change interdomain trust account passwords\&.
87.RE
88.PP
89\-\-ccache\-save \fIusername%password\fR
90.RS 4
91Store user and password for ccache\&.
92.RE
93.PP
94\-\-change\-user\-password \fIusername\fR
95.RS 4
96Change the password of a user\&. The old and new password will be prompted\&.
97.RE
98.PP
99\-\-domain \fIname\fR
100.RS 4
101This parameter sets the domain on which any specified operations will performed\&. If special domain name \'\&.\' is used to represent the current domain to which
102\fBwinbindd\fR(8)
103belongs\&. Currently only the
104\fB\-\-sequence\fR,
105\fB\-u\fR, and
106\fB\-g\fR
107options honor this parameter\&.
108.RE
109.PP
110\-D|\-\-domain\-info \fIdomain\fR
111.RS 4
112Show most of the info we have about the specified domain\&.
113.RE
114.PP
115\-\-dsgetdcname \fIdomain\fR
116.RS 4
117Find a DC for a domain\&.
118.RE
119.PP
120\-\-gid\-info \fIgid\fR
121.RS 4
122Get group info from gid\&.
123.RE
124.PP
125\-\-group\-info \fIuser\fR
126.RS 4
127Get group info for user\&.
128.RE
129.PP
130\-g|\-\-domain\-groups
131.RS 4
132This option will list all groups available in the Windows NT domain for which the
133\fBsamba\fR(7)
134daemon 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
135\fBwinbindd\fR(8)\&.
136.RE
137.PP
138\-\-get\-auth\-user
139.RS 4
140Print username and password used by
141\fBwinbindd\fR(8)
142during session setup to a domain controller\&. Username and password can be set using
143\fB\-\-set\-auth\-user\fR\&. Only available for root\&.
144.RE
145.PP
146\-\-getdcname \fIdomain\fR
147.RS 4
148Get the DC name for the specified domain\&.
149.RE
150.PP
151\-G|\-\-gid\-to\-sid \fIgid\fR
152.RS 4
153Try 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\&.
154.RE
155.PP
156\-?
157.RS 4
158Print brief help overview\&.
159.RE
160.PP
161\-i|\-\-user\-info \fIuser\fR
162.RS 4
163Get user info\&.
164.RE
165.PP
166\-I|\-\-WINS\-by\-ip \fIip\fR
167.RS 4
168The
169\fI\-I\fR
170option queries
171\fBwinbindd\fR(8)
172to send a node status request to get the NetBIOS name associated with the IP address specified by the
173\fIip\fR
174parameter\&.
175.RE
176.PP
177\-K|\-\-krb5auth \fIusername%password\fR
178.RS 4
179Attempt to authenticate a user via Kerberos\&.
180.RE
181.PP
182\-\-lanman
183.RS 4
184Use lanman cryptography for user authentication\&.
185.RE
186.PP
187\-m|\-\-trusted\-domains
188.RS 4
189Produce a list of domains trusted by the Windows NT server
190\fBwinbindd\fR(8)
191contacts when resolving names\&. This list does not include the Windows NT domain the server is a Primary Domain Controller for\&.
192.RE
193.PP
194\-n|\-\-name\-to\-sid \fIname\fR
195.RS 4
196The
197\fI\-n\fR
198option queries
199\fBwinbindd\fR(8)
200for 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\fBsmb.conf\fR(5)
202\fIworkgroup \fR
203parameter\&.
204.RE
205.PP
206\-N|\-\-WINS\-by\-name \fIname\fR
207.RS 4
208The
209\fI\-N\fR
210option queries
211\fBwinbindd\fR(8)
212to query the WINS server for the IP address associated with the NetBIOS name specified by the
213\fIname\fR
214parameter\&.
215.RE
216.PP
217\-\-ntlmv2
218.RS 4
219Use NTLMv2 cryptography for user authentication\&.
220.RE
221.PP
222\-\-online\-status \fIdomain\fR
223.RS 4
224Show whether domains are marked as online or offline\&. An optional domain argument limits the output to the online status of a given domain\&.
225.RE
226.PP
227\-\-own\-domain
228.RS 4
229List own domain\&.
230.RE
231.PP
232\-p|\-\-ping
233.RS 4
234Check whether
235\fBwinbindd\fR(8)
236is still alive\&. Prints out either \'succeeded\' or \'failed\'\&.
237.RE
238.PP
239\-r|\-\-user\-groups \fIusername\fR
240.RS 4
241Try to obtain the list of UNIX group ids to which the user belongs\&. This only works for users defined on a Domain Controller\&.
242.RE
243.PP
244\-R|\-\-lookup\-rids \fIrid1, rid2, rid3\&.\&.\&.\fR
245.RS 4
246Converts RIDs to names\&. Uses a comma separated list of rids\&.
247.RE
248.PP
249\-s|\-\-sid\-to\-name \fIsid\fR
250.RS 4
251Use
252\fI\-s\fR
253to resolve a SID to a name\&. This is the inverse of the
254\fI\-n \fR
255option above\&. SIDs must be specified as ASCII strings in the traditional Microsoft format\&. For example, S\-1\-5\-21\-1455342024\-3071081365\-2475485837\-500\&.
256.RE
257.PP
258\-\-separator
259.RS 4
260Get the active winbind separator\&.
261.RE
262.PP
263\-\-sequence
264.RS 4
265Show sequence numbers of all known domains\&.
266.RE
267.PP
268\-\-set\-auth\-user \fIusername%password\fR
269.RS 4
270Store username and password used by
271\fBwinbindd\fR(8)
272during 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)\&.
273.RE
274.PP
275\-S|\-\-sid\-to\-uid \fIsid\fR
276.RS 4
277Convert a SID to a UNIX user id\&. If the SID does not correspond to a UNIX user mapped by
278\fBwinbindd\fR(8)
279then the operation will fail\&.
280.RE
281.PP
282\-\-sid\-aliases \fIsid\fR
283.RS 4
284Get SID aliases for a given SID\&.
285.RE
286.PP
287\-\-sid\-to\-fullname \fIsid\fR
288.RS 4
289Converts a SID to a full username (DOMAIN\eusername)\&.
290.RE
291.PP
292\-t|\-\-check\-secret
293.RS 4
294Verify that the workstation trust account created when the Samba server is added to the Windows NT domain is working\&. May be used in conjunction with
295\fBdomain\fR
296in order to verify interdomain trust accounts\&.
297.RE
298.PP
299\-u|\-\-domain\-users
300.RS 4
301This option will list all users available in the Windows NT domain for which the
302\fBwinbindd\fR(8)
303daemon 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
304\fBwinbindd\fR(8)
305\&.
306.RE
307.PP
308\-\-uid\-info \fIuid\fR
309.RS 4
310Get user info for the user connected to user id UID\&.
311.RE
312.PP
313\-\-usage
314.RS 4
315Print brief help overview\&.
316.RE
317.PP
318\-\-user\-domgroups \fIsid\fR
319.RS 4
320Get user domain groups\&.
321.RE
322.PP
323\-\-user\-sids \fIsid\fR
324.RS 4
325Get user group SIDs for user\&.
326.RE
327.PP
328\-U|\-\-uid\-to\-sid \fIuid\fR
329.RS 4
330Try 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\&.
331.RE
332.PP
333\-\-verbose
334.RS 4
335Print additional information about the query results\&.
336.RE
337.PP
338\-Y|\-\-sid\-to\-gid \fIsid\fR
339.RS 4
340Convert a SID to a UNIX group id\&. If the SID does not correspond to a UNIX group mapped by
341\fBwinbindd\fR(8)
342then the operation will fail\&.
343.RE
344.PP
345\-\-remove\-uid\-mapping uid,sid
346.RS 4
347Remove an existing uid to sid mapping entry from the IDmap backend\&.
348.RE
349.PP
350\-\-remove\-gid\-mapping gid,sid
351.RS 4
352Remove an existing gid to sid mapping entry from the IDmap backend\&.
353.RE
354.PP
355\-\-set\-uid\-mapping uid,sid
356.RS 4
357Create a new or modify an existing uid to sid mapping in the IDmap backend\&.
358.RE
359.PP
360\-\-set\-gid\-mapping gid,sid
361.RS 4
362Create a new or modify an existing gid to sid mapping in the IDmap backend\&.
363.RE
364.PP
365\-V|\-\-version
366.RS 4
367Prints the program version number\&.
368.RE
369.PP
370\-h|\-\-help
371.RS 4
372Print a summary of command line options\&.
373.RE
374.SH "EXIT STATUS"
375.PP
376The wbinfo program returns 0 if the operation succeeded, or 1 if the operation failed\&. If the
377\fBwinbindd\fR(8)
378daemon is not working
379wbinfo
380will always return failure\&.
381.SH "VERSION"
382.PP
383This man page is correct for version 3 of the Samba suite\&.
384.SH "SEE ALSO"
385.PP
386\fBwinbindd\fR(8)
387and
388\fBntlm_auth\fR(1)
389.SH "AUTHOR"
390.PP
391The 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\&.
392.PP
393wbinfo
394and
395winbindd
396were written by Tim Potter\&.
397.PP
398The 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.