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] [--dc-info domain] [--domain domain]
12        [--dsgetdcname domain] [-g] [--getdcname domain] [--get-auth-user]
13        [-G gid] [--gid-info gid] [--group-info group] [--help|-?] [-i user]
14        [-I ip] [-K user%password] [--krb5ccname cctype] [--lanman] [--logoff]
15        [--logoff-uid uid] [--logoff-user username] [--lookup-sids] [-m]
16        [-n name] [-N netbios-name] [--ntlmv2] [--online-status]
17        [--own-domain] [-p] [-P|--ping-dc] [--pam-logon user%password]
18        [-r user] [-R|--lookup-rids] [--remove-gid-mapping gid,sid]
19        [--remove-uid-mapping uid,sid] [-s sid] [--separator] [--sequence]
20        [--set-auth-user user%password] [--set-gid-mapping gid,sid]
21        [--set-uid-mapping uid,sid] [-S sid] [--sid-aliases sid]
22        [--sid-to-fullname sid] [--sids-to-unix-ids sidlist] [-t] [-u]
23        [--uid-info uid] [--usage] [--user-domgroups sid] [--user-sidinfo sid]
24        [--user-sids sid] [-U uid] [-V] [--verbose] [-Y sid]
25

DESCRIPTION

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

OPTIONS

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

EXIT STATUS

285       The wbinfo program returns 0 if the operation succeeded, or 1 if the
286       operation failed. If the winbindd(8) daemon is not working wbinfo will
287       always return failure.
288

VERSION

290       This man page is correct for version 3 of the Samba suite.
291

SEE ALSO

293       winbindd(8) and ntlm_auth(1)
294

AUTHOR

296       The original Samba software and related utilities were created by
297       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
298       Source project similar to the way the Linux kernel is developed.
299
300       wbinfo and winbindd were written by Tim Potter.
301
302       The conversion to DocBook for Samba 2.2 was done by Gerald Carter. The
303       conversion to DocBook XML 4.2 for Samba 3.0 was done by Alexander
304       Bokovoy.
305
306
307
308Samba 4.2                         06/19/2018                         WBINFO(1)
Impressum