2
.\" Author: [see the "AUTHOR" section]
3
.\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
5
.\" Manual: User Commands
9
.TH "WBINFO" "1" "05/10/2010" "Samba 3\&.4" "User Commands"
10
.\" -----------------------------------------------------------------
11
.\" * (re)Define some macros
12
.\" -----------------------------------------------------------------
13
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14
.\" toupper - uppercase a string (locale-aware)
15
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17
.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
19
.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
21
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22
.\" SH-xref - format a cross-reference to an SH section
23
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33
.\" SH - level-one heading that works better for non-TTY output
34
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36
.\" put an extra blank line of space above the head in non-TTY output
43
.nr an-prevailing-indent \\n[IN]
47
.HTML-TAG ".NH \\n[an-level]"
49
.nr an-no-space-flag 1
51
\." make the size of the head bigger
56
.\" if n (TTY output), use uppercase
61
.\" if not n (not TTY), use normal case (not uppercase)
65
.\" if not n (not TTY), put a border/line under subheading
70
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71
.\" SS - level-two heading that works better for non-TTY output
72
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
77
.nr an-prevailing-indent \\n[IN]
82
.nr an-no-space-flag 1
85
\." make the size of the head bigger
91
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
92
.\" BB/BE - put background/screen (filled box) around block of text
93
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106
.if "\\$2"adjust-for-leading-newline" \{\
114
.nr BW \\n(.lu-\\n(.i
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[]
121
\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
132
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
133
.\" BM/EM - put colored marker in margin next to block of text
134
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
151
\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[]
159
.\" -----------------------------------------------------------------
160
.\" * set default formatting
161
.\" -----------------------------------------------------------------
162
.\" disable hyphenation
164
.\" disable justification (adjust text to left margin only)
166
.\" -----------------------------------------------------------------
167
.\" * MAIN CONTENT STARTS HERE *
168
.\" -----------------------------------------------------------------
170
wbinfo \- Query information from winbind daemon
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] [\-\-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]
178
This tool is part of the
184
program queries and returns information created and used by the
190
daemon must be configured and running for the
192
program to be able to return information\&.
195
\-a|\-\-authenticate \fIusername%password\fR
197
Attempt to authenticate a user via
198
\fBwinbindd\fR(8)\&. This checks both authentication methods and reports its results\&.
205
.nr an-no-space-flag 1
212
Do not be tempted to use this functionality for authentication in third\-party applications\&. Instead use
213
\fBntlm_auth\fR(1)\&.
221
Get a new GID out of idmap
226
Get a new UID out of idmap
231
List all domains (trusted and own domain)\&.
234
\-\-domain \fIname\fR
236
This parameter sets the domain on which any specified operations will performed\&. If special domain name \'\&.\' is used to represent the current domain to which
238
belongs\&. Currently only the
242
options honor this parameter\&.
245
\-D|\-\-domain\-info \fIdomain\fR
247
Show most of the info we have about the specified domain\&.
250
\-g|\-\-domain\-groups
252
This option will list all groups available in the Windows NT domain for which the
254
daemon 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
260
Print username and password used by
262
during session setup to a domain controller\&. Username and password can be set using
263
\fB\-\-set\-auth\-user\fR\&. Only available for root\&.
266
\-\-getdcname \fIdomain\fR
268
Get the DC name for the specified domain\&.
271
\-G|\-\-gid\-to\-sid \fIgid\fR
273
Try 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\&.
276
\-i|\-\-user\-info \fIuser\fR
281
\-I|\-\-WINS\-by\-ip \fIip\fR
287
to send a node status request to get the NetBIOS name associated with the IP address specified by the
292
\-K|\-\-krb5auth \fIusername%password\fR
294
Attempt to authenticate a user via Kerberos\&.
297
\-m|\-\-trusted\-domains
299
Produce a list of domains trusted by the Windows NT server
301
contacts when resolving names\&. This list does not include the Windows NT domain the server is a Primary Domain Controller for\&.
304
\-n|\-\-name\-to\-sid \fIname\fR
310
for 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
316
\-N|\-\-WINS\-by\-name \fIname\fR
322
to query the WINS server for the IP address associated with the NetBIOS name specified by the
336
is still alive\&. Prints out either \'succeeded\' or \'failed\'\&.
339
\-r|\-\-user\-groups \fIusername\fR
341
Try to obtain the list of UNIX group ids to which the user belongs\&. This only works for users defined on a Domain Controller\&.
344
\-s|\-\-sid\-to\-name \fIsid\fR
348
to resolve a SID to a name\&. This is the inverse of the
350
option above\&. SIDs must be specified as ASCII strings in the traditional Microsoft format\&. For example, S\-1\-5\-21\-1455342024\-3071081365\-2475485837\-500\&.
355
Get the active winbind separator\&.
360
Show sequence numbers of all known domains\&.
363
\-\-set\-auth\-user \fIusername%password\fR
365
Store username and password used by
367
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)\&.
370
\-S|\-\-sid\-to\-uid \fIsid\fR
372
Convert a SID to a UNIX user id\&. If the SID does not correspond to a UNIX user mapped by
374
then the operation will fail\&.
377
\-t|\-\-check\-secret
379
Verify that the workstation trust account created when the Samba server is added to the Windows NT domain is working\&.
382
\-u|\-\-domain\-users
384
This option will list all users available in the Windows NT domain for which the
386
daemon 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
391
\-\-uid\-info \fIuid\fR
393
Get user info for the user connected to user id UID\&.
396
\-\-user\-domgroups \fIsid\fR
398
Get user domain groups\&.
401
\-\-user\-sids \fIsid\fR
403
Get user group SIDs for user\&.
406
\-U|\-\-uid\-to\-sid \fIuid\fR
408
Try 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\&.
413
Print additional information about the query results\&.
416
\-Y|\-\-sid\-to\-gid \fIsid\fR
418
Convert a SID to a UNIX group id\&. If the SID does not correspond to a UNIX group mapped by
420
then the operation will fail\&.
423
\-\-remove\-uid\-mapping uid,sid
425
Remove an existing uid to sid mapping entry from the IDmap backend\&.
428
\-\-remove\-gid\-mapping gid,sid
430
Remove an existing gid to sid mapping entry from the IDmap backend\&.
433
\-\-set\-uid\-mapping uid,sid
435
Create a new or modify an existing uid to sid mapping in the IDmap backend\&.
438
\-\-set\-gid\-mapping gid,sid
440
Create a new or modify an existing gid to sid mapping in the IDmap backend\&.
445
Prints the program version number\&.
450
Print a summary of command line options\&.
454
The wbinfo program returns 0 if the operation succeeded, or 1 if the operation failed\&. If the
456
daemon is not working
458
will always return failure\&.
461
This man page is correct for version 3 of the Samba suite\&.
469
The 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\&.
474
were written by Tim Potter\&.
476
The 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\&.