1WBINFO(1) WBINFO(1)
2
3
4
6 wbinfo - Query information from winbind daemon
7
9 wbinfo [-a user%password] [--all-domains] [--allocate-gid] [--allocate-
10 uid] [-D domain] [--domain domain] [-g] [--getdcname domain] [--get-
11 auth-user] [-G gid] [-h] [-i user] [-I ip] [-K user%password] [-m]
12 [-n name] [-N netbios-name] [--own-domain] [-p] [-r user] [-s sid]
13 [--separator] [--sequence] [--set-auth-user user%password] [-S sid]
14 [-t] [-u] [--user-domgroups sid] [--user-sids sid] [-U uid] [-V]
15 [-Y sid]
16
18 This tool is part of the samba(7) suite.
19
20 The wbinfo program queries and returns information created and used by
21 the winbindd(8) daemon.
22
23 The winbindd(8) daemon must be configured and running for the wbinfo
24 program to be able to return information.
25
27 -a|--authenticate username%password
28 Attempt to authenticate a user via winbindd. This checks both
29 authenticaion methods and reports its results.
30
31 Note
32 Do not be tempted to use this functionality for authentication in
33 third-party applications. Instead use ntlm_auth(1).
34
35 --allocate-gid
36 Get a new GID out of idmap
37
38 --allocate-uid
39 Get a new UID out of idmap
40
41 --all-domains
42 List all domains (trusted and own domain).
43
44 --domain name
45 This parameter sets the domain on which any specified operations
46 will performed. If special domain name '.' is used to represent the
47 current domain to which winbindd belongs. Currently only the
48 --sequence, -u, and -g options honor this parameter.
49
50 -D|--domain-info domain
51 Show most of the info we have about the domain.
52
53 -g|--domain-groups
54 This option will list all groups available in the Windows NT domain
55 for which the samba(7) daemon is operating in. Groups in all trusted
56 domains will also be listed. Note that this operation does not
57 assign group ids to any groups that have not already been seen by
58 winbindd(8).
59
60 --get-auth-user
61 Print username and password used by winbindd during session setup to
62 a domain controller. Username and password can be set using --set-
63 auth-user. Only available for root.
64
65 --getdcname domain
66 Get the DC name for the specified domain.
67
68 -G|--gid-to-sid gid
69 Try to convert a UNIX group id to a Windows NT SID. If the gid spec‐
70 ified does not refer to one within the idmap gid range then the
71 operation will fail.
72
73 -i|--user-info user
74 Get user info.
75
76 -I|--WINS-by-ip ip
77 The -I option queries winbindd(8) to send a node status request to
78 get the NetBIOS name associated with the IP address specified by the
79 ip parameter.
80
81 -K|--krb5auth username%password
82 Attempt to authenticate a user via Kerberos.
83
84 -m|--trusted-domains
85 Produce a list of domains trusted by the Windows NT server win‐
86 bindd(8) contacts when resolving names. This list does not include
87 the Windows NT domain the server is a Primary Domain Controller for.
88
89 -n|--name-to-sid name
90 The -n option queries winbindd(8) for the SID associated with the
91 name specified. Domain names can be specified before the user name
92 by using the winbind separator character. For example CWDOM1/Admin‐
93 istrator refers to the Administrator user in the domain CWDOM1. If
94 no domain is specified then the domain used is the one specified in
95 the smb.conf(5) workgroup parameter.
96
97 -N|--WINS-by-name name
98 The -N option queries winbindd(8) to query the WINS server for the
99 IP address associated with the NetBIOS name specified by the name
100 parameter.
101
102 --own-domain
103 List own domain.
104
105 -p|--ping
106 Check whether winbindd is still alive. Prints out either 'succeeded'
107 or 'failed'.
108
109 -r|--user-groups username
110 Try to obtain the list of UNIX group ids to which the user belongs.
111 This only works for users defined on a Domain Controller.
112
113 -s|--sid-to-name sid
114 Use -s to resolve a SID to a name. This is the inverse of the -n
115 option above. SIDs must be specified as ASCII strings in the tradi‐
116 tional Microsoft format. For example,
117 S-1-5-21-1455342024-3071081365-2475485837-500.
118
119 --separator
120 Get the active winbind separator.
121
122 --sequence
123 Show sequence numbers of all known domains
124
125 --set-auth-user username%password
126 Store username and password used by winbindd during session setup to
127 a domain controller. This enables winbindd to operate in a Windows
128 2000 domain with Restrict Anonymous turned on (a.k.a. Permissions
129 compatiable with Windows 2000 servers only).
130
131 -S|--sid-to-uid sid
132 Convert a SID to a UNIX user id. If the SID does not correspond to a
133 UNIX user mapped by winbindd(8) then the operation will fail.
134
135 -t|--check-secret
136 Verify that the workstation trust account created when the Samba
137 server is added to the Windows NT domain is working.
138
139 -u|--domain-users
140 This option will list all users available in the Windows NT domain
141 for which the winbindd(8) daemon is operating in. Users in all
142 trusted domains will also be listed. Note that this operation does
143 not assign user ids to any users that have not already been seen by
144 winbindd(8)
145
146 --user-domgroups SID
147 Get user domain groups.
148
149 --user-sids SID
150 Get user group SIDs for user.
151
152 -U|--uid-to-sid uid
153 Try to convert a UNIX user id to a Windows NT SID. If the uid speci‐
154 fied does not refer to one within the idmap uid range then the oper‐
155 ation will fail.
156
157 -Y|--sid-to-gid sid
158 Convert a SID to a UNIX group id. If the SID does not correspond to
159 a UNIX group mapped by winbindd(8) then the operation will fail.
160
161 -V
162 Prints the program version number.
163
164 -h|--help
165 Print a summary of command line options.
166
168 The wbinfo program returns 0 if the operation succeeded, or 1 if the
169 operation failed. If the winbindd(8) daemon is not working wbinfo will
170 always return failure.
171
173 This man page is correct for version 3.0 of the Samba suite.
174
176 winbindd(8) and ntlm_auth(1)
177
179 The original Samba software and related utilities were created by
180 Andrew Tridgell. Samba is now developed by the Samba Team as an Open
181 Source project similar to the way the Linux kernel is developed.
182
183 wbinfo and winbindd were written by Tim Potter.
184
185 The conversion to DocBook for Samba 2.2 was done by Gerald Carter. The
186 conversion to DocBook XML 4.2 for Samba 3.0 was done by Alexander
187 Bokovoy.
188
189
190
191
192 WBINFO(1)