source: vendor/3.5.0/docs/manpages/wbinfo.1

Last change on this file was 414, checked in by Herwig Bauernfeind, 15 years ago

Samba 3.5.0: Initial import

File size: 8.9 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: 02/19/2010
6.\" Manual: User Commands
7.\" Source: Samba 3.5
8.\" Language: English
9.\"
10.TH "WBINFO" "1" "02/19/2010" "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] [\-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] [\-\-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] [\-t] [\-u] [\-\-uid\-info\ uid] [\-\-user\-domgroups\ sid] [\-\-user\-sids\ sid] [\-U\ uid] [\-V] [\-Y\ sid] [\-\-verbose]
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\-\-domain \fIname\fR
90.RS 4
91This parameter sets the domain on which any specified operations will performed\&. If special domain name \'\&.\' is used to represent the current domain to which
92\fBwinbindd\fR(8)
93belongs\&. Currently only the
94\fB\-\-sequence\fR,
95\fB\-u\fR, and
96\fB\-g\fR
97options honor this parameter\&.
98.RE
99.PP
100\-D|\-\-domain\-info \fIdomain\fR
101.RS 4
102Show most of the info we have about the specified domain\&.
103.RE
104.PP
105\-g|\-\-domain\-groups
106.RS 4
107This option will list all groups available in the Windows NT domain for which the
108\fBsamba\fR(7)
109daemon 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
110\fBwinbindd\fR(8)\&.
111.RE
112.PP
113\-\-get\-auth\-user
114.RS 4
115Print username and password used by
116\fBwinbindd\fR(8)
117during session setup to a domain controller\&. Username and password can be set using
118\fB\-\-set\-auth\-user\fR\&. Only available for root\&.
119.RE
120.PP
121\-\-getdcname \fIdomain\fR
122.RS 4
123Get the DC name for the specified domain\&.
124.RE
125.PP
126\-G|\-\-gid\-to\-sid \fIgid\fR
127.RS 4
128Try 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\&.
129.RE
130.PP
131\-i|\-\-user\-info \fIuser\fR
132.RS 4
133Get user info\&.
134.RE
135.PP
136\-I|\-\-WINS\-by\-ip \fIip\fR
137.RS 4
138The
139\fI\-I\fR
140option queries
141\fBwinbindd\fR(8)
142to send a node status request to get the NetBIOS name associated with the IP address specified by the
143\fIip\fR
144parameter\&.
145.RE
146.PP
147\-K|\-\-krb5auth \fIusername%password\fR
148.RS 4
149Attempt to authenticate a user via Kerberos\&.
150.RE
151.PP
152\-m|\-\-trusted\-domains
153.RS 4
154Produce a list of domains trusted by the Windows NT server
155\fBwinbindd\fR(8)
156contacts when resolving names\&. This list does not include the Windows NT domain the server is a Primary Domain Controller for\&.
157.RE
158.PP
159\-n|\-\-name\-to\-sid \fIname\fR
160.RS 4
161The
162\fI\-n\fR
163option queries
164\fBwinbindd\fR(8)
165for 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
166\fBsmb.conf\fR(5)
167\fIworkgroup \fR
168parameter\&.
169.RE
170.PP
171\-N|\-\-WINS\-by\-name \fIname\fR
172.RS 4
173The
174\fI\-N\fR
175option queries
176\fBwinbindd\fR(8)
177to query the WINS server for the IP address associated with the NetBIOS name specified by the
178\fIname\fR
179parameter\&.
180.RE
181.PP
182\-\-own\-domain
183.RS 4
184List own domain\&.
185.RE
186.PP
187\-p|\-\-ping
188.RS 4
189Check whether
190\fBwinbindd\fR(8)
191is still alive\&. Prints out either \'succeeded\' or \'failed\'\&.
192.RE
193.PP
194\-r|\-\-user\-groups \fIusername\fR
195.RS 4
196Try to obtain the list of UNIX group ids to which the user belongs\&. This only works for users defined on a Domain Controller\&.
197.RE
198.PP
199\-s|\-\-sid\-to\-name \fIsid\fR
200.RS 4
201Use
202\fI\-s\fR
203to resolve a SID to a name\&. This is the inverse of the
204\fI\-n \fR
205option above\&. SIDs must be specified as ASCII strings in the traditional Microsoft format\&. For example, S\-1\-5\-21\-1455342024\-3071081365\-2475485837\-500\&.
206.RE
207.PP
208\-\-separator
209.RS 4
210Get the active winbind separator\&.
211.RE
212.PP
213\-\-sequence
214.RS 4
215Show sequence numbers of all known domains\&.
216.RE
217.PP
218\-\-set\-auth\-user \fIusername%password\fR
219.RS 4
220Store username and password used by
221\fBwinbindd\fR(8)
222during 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)\&.
223.RE
224.PP
225\-S|\-\-sid\-to\-uid \fIsid\fR
226.RS 4
227Convert a SID to a UNIX user id\&. If the SID does not correspond to a UNIX user mapped by
228\fBwinbindd\fR(8)
229then the operation will fail\&.
230.RE
231.PP
232\-t|\-\-check\-secret
233.RS 4
234Verify 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
235\fBdomain\fR
236in order to verify interdomain trust accounts\&.
237.RE
238.PP
239\-u|\-\-domain\-users
240.RS 4
241This option will list all users available in the Windows NT domain for which the
242\fBwinbindd\fR(8)
243daemon 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
244\fBwinbindd\fR(8)
245\&.
246.RE
247.PP
248\-\-uid\-info \fIuid\fR
249.RS 4
250Get user info for the user connected to user id UID\&.
251.RE
252.PP
253\-\-user\-domgroups \fIsid\fR
254.RS 4
255Get user domain groups\&.
256.RE
257.PP
258\-\-user\-sids \fIsid\fR
259.RS 4
260Get user group SIDs for user\&.
261.RE
262.PP
263\-U|\-\-uid\-to\-sid \fIuid\fR
264.RS 4
265Try 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\&.
266.RE
267.PP
268\-\-verbose
269.RS 4
270Print additional information about the query results\&.
271.RE
272.PP
273\-Y|\-\-sid\-to\-gid \fIsid\fR
274.RS 4
275Convert a SID to a UNIX group id\&. If the SID does not correspond to a UNIX group mapped by
276\fBwinbindd\fR(8)
277then the operation will fail\&.
278.RE
279.PP
280\-\-remove\-uid\-mapping uid,sid
281.RS 4
282Remove an existing uid to sid mapping entry from the IDmap backend\&.
283.RE
284.PP
285\-\-remove\-gid\-mapping gid,sid
286.RS 4
287Remove an existing gid to sid mapping entry from the IDmap backend\&.
288.RE
289.PP
290\-\-set\-uid\-mapping uid,sid
291.RS 4
292Create a new or modify an existing uid to sid mapping in the IDmap backend\&.
293.RE
294.PP
295\-\-set\-gid\-mapping gid,sid
296.RS 4
297Create a new or modify an existing gid to sid mapping in the IDmap backend\&.
298.RE
299.PP
300\-V|\-\-version
301.RS 4
302Prints the program version number\&.
303.RE
304.PP
305\-h|\-\-help
306.RS 4
307Print a summary of command line options\&.
308.RE
309.SH "EXIT STATUS"
310.PP
311The wbinfo program returns 0 if the operation succeeded, or 1 if the operation failed\&. If the
312\fBwinbindd\fR(8)
313daemon is not working
314wbinfo
315will always return failure\&.
316.SH "VERSION"
317.PP
318This man page is correct for version 3 of the Samba suite\&.
319.SH "SEE ALSO"
320.PP
321\fBwinbindd\fR(8)
322and
323\fBntlm_auth\fR(1)
324.SH "AUTHOR"
325.PP
326The 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\&.
327.PP
328wbinfo
329and
330winbindd
331were written by Tim Potter\&.
332.PP
333The 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.