1WBINFO(1)                        User Commands                       WBINFO(1)
2
3
4

NAME

6       wbinfo - Query information from winbind daemon
7

SYNOPSIS

9       wbinfo [-a user%password] [--all-domains] [--allocate-gid]
10        [--allocate-uid] [-c] [--ccache-save] [--change-user-password]
11        [-D domain] [--domain domain] [--dsgetdcname domain] [-g]
12        [--getdcname domain] [--get-auth-user] [-G gid] [--gid-info]
13        [--group-info] [--help|-?] [-i user] [-I ip] [-K user%password]
14        [--lanman] [-m] [-n name] [-N netbios-name] [--ntlmv2]
15        [--online-status] [--own-domain] [-p] [-P|--ping-dc] [-r user]
16        [-R|--lookup-rids] [-s sid] [--separator]
17        [--set-auth-user user%password] [-S sid] [--sid-aliases]
18        [--sid-to-fullname] [-t] [-u] [--uid-info uid] [--usage]
19        [--user-domgroups sid] [--user-sids sid] [-U uid] [-V] [--verbose]
20        [-Y sid]
21

DESCRIPTION

23       This tool is part of the samba(7) suite.
24
25       The wbinfo program queries and returns information created and used by
26       the winbindd(8) daemon.
27
28       The winbindd(8) daemon must be configured and running for the wbinfo
29       program to be able to return information.
30

OPTIONS

32       -a|--authenticate username%password
33           Attempt to authenticate a user via winbindd(8). This checks both
34           authentication methods and reports its results.
35
36               Note
37               Do not be tempted to use this functionality for authentication
38               in third-party applications. Instead use ntlm_auth(1).
39
40       --allocate-gid
41           Get a new GID out of idmap
42
43       --allocate-uid
44           Get a new UID out of idmap
45
46       --all-domains
47           List all domains (trusted and own domain).
48
49       -c|--change-secret
50           Change the trust account password. May be used in conjunction with
51           domain in order to change interdomain trust account passwords.
52
53       --ccache-save username%password
54           Store user and password for ccache.
55
56       --change-user-password username
57           Change the password of a user. The old and new password will be
58           prompted.
59
60       --domain name
61           This parameter sets the domain on which any specified operations
62           will performed. If special domain name '.' is used to represent the
63           current domain to which winbindd(8) belongs. Currently only the -u,
64           and -g options honor this parameter.
65
66       -D|--domain-info domain
67           Show most of the info we have about the specified domain.
68
69       --dsgetdcname domain
70           Find a DC for a domain.
71
72       --gid-info gid
73           Get group info from gid.
74
75       --group-info user
76           Get group info for user.
77
78       -g|--domain-groups
79           This option will list all groups available in the Windows NT domain
80           for which the samba(7) daemon is operating in. Groups in all
81           trusted domains will also be listed. Note that this operation does
82           not assign group ids to any groups that have not already been seen
83           by winbindd(8).
84
85       --get-auth-user
86           Print username and password used by winbindd(8) during session
87           setup to a domain controller. Username and password can be set
88           using --set-auth-user. Only available for root.
89
90       --getdcname domain
91           Get the DC name for the specified domain.
92
93       -G|--gid-to-sid gid
94           Try to convert a UNIX group id to a Windows NT SID. If the gid
95           specified does not refer to one within the idmap gid range then the
96           operation will fail.
97
98       -?
99           Print brief help overview.
100
101       -i|--user-info user
102           Get user info.
103
104       -I|--WINS-by-ip ip
105           The -I option queries winbindd(8) to send a node status request to
106           get the NetBIOS name associated with the IP address specified by
107           the ip parameter.
108
109       -K|--krb5auth username%password
110           Attempt to authenticate a user via Kerberos.
111
112       --lanman
113           Use lanman cryptography for user authentication.
114
115       -m|--trusted-domains
116           Produce a list of domains trusted by the Windows NT server
117           winbindd(8) contacts when resolving names. This list does not
118           include the Windows NT domain the server is a Primary Domain
119           Controller for.
120
121       -n|--name-to-sid name
122           The -n option queries winbindd(8) for the SID associated with the
123           name specified. Domain names can be specified before the user name
124           by using the winbind separator character. For example
125           CWDOM1/Administrator refers to the Administrator user in the domain
126           CWDOM1. If no domain is specified then the domain used is the one
127           specified in the smb.conf(5)workgroup parameter.
128
129       -N|--WINS-by-name name
130           The -N option queries winbindd(8) to query the WINS server for the
131           IP address associated with the NetBIOS name specified by the name
132           parameter.
133
134       --ntlmv2
135           Use NTLMv2 cryptography for user authentication.
136
137       --online-status domain
138           Show whether domains are marked as online or offline. An optional
139           domain argument limits the output to the online status of a given
140           domain.
141
142       --own-domain
143           List own domain.
144
145       -p|--ping
146           Check whether winbindd(8) is still alive. Prints out either
147           'succeeded' or 'failed'.
148
149       -P|--ping-dc
150           Issue a no-effect command to our DC. This checks if our secure
151           channel connection to our domain controller is still alive. It has
152           much less impact than wbinfo -t.
153
154       -r|--user-groups username
155           Try to obtain the list of UNIX group ids to which the user belongs.
156           This only works for users defined on a Domain Controller.
157
158       -R|--lookup-rids rid1, rid2, rid3...
159           Converts RIDs to names. Uses a comma separated list of rids.
160
161       -s|--sid-to-name sid
162           Use -s to resolve a SID to a name. This is the inverse of the -n
163           option above. SIDs must be specified as ASCII strings in the
164           traditional Microsoft format. For example,
165           S-1-5-21-1455342024-3071081365-2475485837-500.
166
167       --separator
168           Get the active winbind separator.
169
170       --set-auth-user username%password
171           Store username and password used by winbindd(8) during session
172           setup to a domain controller. This enables winbindd to operate in a
173           Windows 2000 domain with Restrict Anonymous turned on (a.k.a.
174           Permissions compatible with Windows 2000 servers only).
175
176       -S|--sid-to-uid sid
177           Convert a SID to a UNIX user id. If the SID does not correspond to
178           a UNIX user mapped by winbindd(8) then the operation will fail.
179
180       --sid-aliases sid
181           Get SID aliases for a given SID.
182
183       --sid-to-fullname sid
184           Converts a SID to a full username (DOMAIN\username).
185
186       -t|--check-secret
187           Verify that the workstation trust account created when the Samba
188           server is added to the Windows NT domain is working. May be used in
189           conjunction with domain in order to verify interdomain trust
190           accounts.
191
192       -u|--domain-users
193           This option will list all users available in the Windows NT domain
194           for which the winbindd(8) daemon is operating in. Users in all
195           trusted domains will also be listed. Note that this operation does
196           not assign user ids to any users that have not already been seen by
197           winbindd(8) .
198
199       --uid-info uid
200           Get user info for the user connected to user id UID.
201
202       --usage
203           Print brief help overview.
204
205       --user-domgroups sid
206           Get user domain groups.
207
208       --user-sids sid
209           Get user group SIDs for user.
210
211       -U|--uid-to-sid uid
212           Try to convert a UNIX user id to a Windows NT SID. If the uid
213           specified does not refer to one within the idmap range then the
214           operation will fail.
215
216       --verbose
217           Print additional information about the query results.
218
219       -Y|--sid-to-gid sid
220           Convert a SID to a UNIX group id. If the SID does not correspond to
221           a UNIX group mapped by winbindd(8) then the operation will fail.
222
223       -V|--version
224           Prints the program version number.
225
226       -?|--help
227           Print a summary of command line options.
228

EXIT STATUS

230       The wbinfo program returns 0 if the operation succeeded, or 1 if the
231       operation failed. If the winbindd(8) daemon is not working wbinfo will
232       always return failure.
233

VERSION

235       This man page is correct for version 3 of the Samba suite.
236

SEE ALSO

238       winbindd(8) and ntlm_auth(1)
239

AUTHOR

241       The original Samba software and related utilities were created by
242       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
243       Source project similar to the way the Linux kernel is developed.
244
245       wbinfo and winbindd were written by Tim Potter.
246
247       The conversion to DocBook for Samba 2.2 was done by Gerald Carter. The
248       conversion to DocBook XML 4.2 for Samba 3.0 was done by Alexander
249       Bokovoy.
250
251
252
253Samba 3.6                         04/11/2016                         WBINFO(1)
Impressum