1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <refentry id="wbinfo.1">
6 <refentrytitle>wbinfo</refentrytitle>
7 <manvolnum>1</manvolnum>
8 <refmiscinfo class="source">Samba</refmiscinfo>
9 <refmiscinfo class="manual">User Commands</refmiscinfo>
10 <refmiscinfo class="version">3.6</refmiscinfo>
15 <refname>wbinfo</refname>
16 <refpurpose>Query information from winbind daemon</refpurpose>
21 <command>wbinfo</command>
22 <arg choice="opt">-a user%password</arg>
23 <arg choice="opt">--all-domains</arg>
24 <arg choice="opt">--allocate-gid</arg>
25 <arg choice="opt">--allocate-uid</arg>
26 <arg choice="opt">-c</arg>
27 <arg choide="opt">--ccache-save</arg>
28 <arg choide="opt">--change-user-password</arg>
29 <arg choice="opt">-D domain</arg>
30 <arg choice="opt">--domain domain</arg>
31 <arg choide="opt">--dsgetdcname domain</arg>
32 <arg choice="opt">-g</arg>
33 <arg choice="opt">--getdcname domain</arg>
34 <arg choice="opt">--get-auth-user</arg>
35 <arg choice="opt">-G gid</arg>
36 <arg choide="opt">--gid-info</arg>
37 <arg choide="opt">--group-info</arg>
38 <arg choice="opt">--help|-?</arg>
39 <arg choice="opt">-i user</arg>
40 <arg choice="opt">-I ip</arg>
41 <arg choice="opt">-K user%password</arg>
42 <arg choide="opt">--lanman</arg>
43 <arg choice="opt">-m</arg>
44 <arg choice="opt">-n name</arg>
45 <arg choice="opt">-N netbios-name</arg>
46 <arg choide="opt">--ntlmv2</arg>
47 <arg choide="opt">--online-status</arg>
48 <arg choice="opt">--own-domain</arg>
49 <arg choice="opt">-p</arg>
50 <arg choice="opt">-P|--ping-dc</arg>
51 <arg choice="opt">-r user</arg>
52 <arg choide="opt">-R|--lookup-rids</arg>
53 <arg choice="opt">-s sid</arg>
54 <arg choice="opt">--separator</arg>
55 <arg choice="opt">--set-auth-user user%password</arg>
56 <arg choice="opt">-S sid</arg>
57 <arg choide="opt">--sid-aliases</arg>
58 <arg choide="opt">--sid-to-fullname</arg>
59 <arg choice="opt">-t</arg>
60 <arg choice="opt">-u</arg>
61 <arg choice="opt">--uid-info uid</arg>
62 <arg choide="opt">--usage</arg>
63 <arg choice="opt">--user-domgroups sid</arg>
64 <arg choice="opt">--user-sids sid</arg>
65 <arg choice="opt">-U uid</arg>
66 <arg choice="opt">-V</arg>
67 <arg choice="opt">--verbose</arg>
68 <arg choice="opt">-Y sid</arg>
74 <title>DESCRIPTION</title>
76 <para>This tool is part of the <citerefentry><refentrytitle>samba</refentrytitle>
77 <manvolnum>7</manvolnum></citerefentry> suite.</para>
79 <para>The <command>wbinfo</command> program queries and returns information
80 created and used by the <citerefentry><refentrytitle>winbindd</refentrytitle>
81 <manvolnum>8</manvolnum></citerefentry> daemon. </para>
83 <para>The <citerefentry><refentrytitle>winbindd</refentrytitle>
84 <manvolnum>8</manvolnum></citerefentry> daemon must be configured
85 and running for the <command>wbinfo</command> program to be able
86 to return information.</para>
90 <title>OPTIONS</title>
94 <term>-a|--authenticate <replaceable>username%password</replaceable></term>
95 <listitem><para>Attempt to authenticate a user via <citerefentry>
96 <refentrytitle>winbindd</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
97 This checks both authentication methods and reports its results.
98 </para><note><para>Do not be tempted to use this
99 functionality for authentication in third-party
100 applications. Instead use <citerefentry><refentrytitle>ntlm_auth</refentrytitle>
101 <manvolnum>1</manvolnum></citerefentry>.</para></note></listitem>
105 <term>--allocate-gid</term>
106 <listitem><para>Get a new GID out of idmap
111 <term>--allocate-uid</term>
112 <listitem><para>Get a new UID out of idmap
117 <term>--all-domains</term>
118 <listitem><para>List all domains (trusted and
124 <term>-c|--change-secret</term>
125 <listitem><para>Change the trust account password. May be used
126 in conjunction with <option>domain</option> in order to change
127 interdomain trust account passwords.
132 <term>--ccache-save <replaceable>username%password</replaceable></term>
133 <listitem><para>Store user and password for ccache.
138 <term>--change-user-password <replaceable>username</replaceable></term>
139 <listitem><para>Change the password of a user. The old and new password will be prompted.
144 <term>--domain <replaceable>name</replaceable></term>
145 <listitem><para>This parameter sets the domain on which any specified
146 operations will performed. If special domain name '.' is used to represent
147 the current domain to which <citerefentry><refentrytitle>winbindd</refentrytitle>
148 <manvolnum>8</manvolnum></citerefentry> belongs. Currently only the
149 <option>-u</option>, and <option>-g</option> options honor this parameter.
154 <term>-D|--domain-info <replaceable>domain</replaceable></term>
155 <listitem><para>Show most of the info we have about the
161 <term>--dsgetdcname <replaceable>domain</replaceable></term>
162 <listitem><para>Find a DC for a domain.
167 <term>--gid-info <replaceable>gid</replaceable></term>
168 <listitem><para>Get group info from gid.
173 <term>--group-info <replaceable>user</replaceable></term>
174 <listitem><para>Get group info for user.
179 <term>-g|--domain-groups</term>
180 <listitem><para>This option will list all groups available
181 in the Windows NT domain for which the <citerefentry><refentrytitle>samba</refentrytitle>
182 <manvolnum>7</manvolnum></citerefentry> daemon is operating in. Groups in all trusted domains
183 will also be listed. Note that this operation does not assign
184 group ids to any groups that have not already been
185 seen by <citerefentry><refentrytitle>winbindd</refentrytitle>
186 <manvolnum>8</manvolnum></citerefentry>. </para></listitem>
190 <term>--get-auth-user</term>
191 <listitem><para>Print username and password used by <citerefentry>
192 <refentrytitle>winbindd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
193 during session setup to a domain controller. Username
194 and password can be set using <option>--set-auth-user</option>.
195 Only available for root.</para></listitem>
199 <term>--getdcname <replaceable>domain</replaceable></term>
200 <listitem><para>Get the DC name for the specified domain.
205 <term>-G|--gid-to-sid <replaceable>gid</replaceable></term>
206 <listitem><para>Try to convert a UNIX group id to a Windows
207 NT SID. If the gid specified does not refer to one within
208 the idmap gid range then the operation will fail. </para></listitem>
213 <listitem><para>Print brief help overview.
218 <term>-i|--user-info <replaceable>user</replaceable></term>
219 <listitem><para>Get user info.
224 <term>-I|--WINS-by-ip <replaceable>ip</replaceable></term>
225 <listitem><para>The <parameter>-I</parameter> option
226 queries <citerefentry><refentrytitle>winbindd</refentrytitle>
227 <manvolnum>8</manvolnum></citerefentry> to send a node status
228 request to get the NetBIOS name associated with the IP address
229 specified by the <parameter>ip</parameter> parameter.
234 <term>-K|--krb5auth <replaceable>username%password</replaceable></term>
235 <listitem><para>Attempt to authenticate a user via Kerberos.
240 <term>--lanman</term>
241 <listitem><para>Use lanman cryptography for user authentication.
246 <term>-m|--trusted-domains</term>
247 <listitem><para>Produce a list of domains trusted by the
248 Windows NT server <citerefentry><refentrytitle>winbindd</refentrytitle>
249 <manvolnum>8</manvolnum></citerefentry> contacts
250 when resolving names. This list does not include the Windows
251 NT domain the server is a Primary Domain Controller for.
256 <term>-n|--name-to-sid <replaceable>name</replaceable></term>
257 <listitem><para>The <parameter>-n</parameter> option
258 queries <citerefentry><refentrytitle>winbindd</refentrytitle>
259 <manvolnum>8</manvolnum></citerefentry> for the SID
260 associated with the name specified. Domain names can be specified
261 before the user name by using the winbind separator character.
262 For example CWDOM1/Administrator refers to the Administrator
263 user in the domain CWDOM1. If no domain is specified then the
264 domain used is the one specified in the <citerefentry><refentrytitle>smb.conf</refentrytitle>
265 <manvolnum>5</manvolnum></citerefentry> <parameter>workgroup
266 </parameter> parameter. </para></listitem>
270 <term>-N|--WINS-by-name <replaceable>name</replaceable></term>
271 <listitem><para>The <parameter>-N</parameter> option
272 queries <citerefentry><refentrytitle>winbindd</refentrytitle>
273 <manvolnum>8</manvolnum></citerefentry> to query the WINS
274 server for the IP address associated with the NetBIOS name
275 specified by the <parameter>name</parameter> parameter.
280 <term>--ntlmv2</term>
281 <listitem><para>Use NTLMv2 cryptography for user authentication.
286 <term>--online-status <replaceable>domain</replaceable></term>
287 <listitem><para>Show whether domains are marked as online or
288 offline. An optional domain argument limits the
289 output to the online status of a given domain.
294 <term>--own-domain</term>
295 <listitem><para>List own domain.
300 <term>-p|--ping</term>
301 <listitem><para>Check whether <citerefentry><refentrytitle>winbindd</refentrytitle>
302 <manvolnum>8</manvolnum></citerefentry> is still alive.
303 Prints out either 'succeeded' or 'failed'.
308 <term>-P|--ping-dc</term>
309 <listitem><para>Issue a no-effect command to our DC. This
310 checks if our secure channel connection to our domain
311 controller is still alive. It has much less impact than
317 <term>-r|--user-groups <replaceable>username</replaceable></term>
318 <listitem><para>Try to obtain the list of UNIX group ids
319 to which the user belongs. This only works for users
320 defined on a Domain Controller.
325 <term>-R|--lookup-rids <replaceable>rid1, rid2, rid3...</replaceable></term>
326 <listitem><para>Converts RIDs to names. Uses a comma separated
332 <term>-s|--sid-to-name <replaceable>sid</replaceable></term>
333 <listitem><para>Use <parameter>-s</parameter> to resolve
334 a SID to a name. This is the inverse of the <parameter>-n
335 </parameter> option above. SIDs must be specified as ASCII strings
336 in the traditional Microsoft format. For example,
337 S-1-5-21-1455342024-3071081365-2475485837-500. </para></listitem>
341 <term>--separator</term>
342 <listitem><para>Get the active winbind separator.
347 <term>--set-auth-user <replaceable>username%password</replaceable></term>
348 <listitem><para>Store username and password used by <citerefentry>
349 <refentrytitle>winbindd</refentrytitle><manvolnum>8</manvolnum>
350 </citerefentry> during session setup to a domain controller. This enables
351 winbindd to operate in a Windows 2000 domain with Restrict
352 Anonymous turned on (a.k.a. Permissions compatible with
353 Windows 2000 servers only).
358 <term>-S|--sid-to-uid <replaceable>sid</replaceable></term>
359 <listitem><para>Convert a SID to a UNIX user id. If the SID
360 does not correspond to a UNIX user mapped by <citerefentry>
361 <refentrytitle>winbindd</refentrytitle><manvolnum>8</manvolnum>
362 </citerefentry> then the operation will fail. </para></listitem>
366 <term>--sid-aliases <replaceable>sid</replaceable></term>
367 <listitem><para>Get SID aliases for a given SID.
372 <term>--sid-to-fullname <replaceable>sid</replaceable></term>
373 <listitem><para>Converts a SID to a full username
379 <term>-t|--check-secret</term>
380 <listitem><para>Verify that the workstation trust account
381 created when the Samba server is added to the Windows NT
382 domain is working. May be used in conjunction with
383 <option>domain</option> in order to verify interdomain
384 trust accounts.</para></listitem>
388 <term>-u|--domain-users</term>
389 <listitem><para>This option will list all users available
390 in the Windows NT domain for which the <citerefentry><refentrytitle>winbindd</refentrytitle>
391 <manvolnum>8</manvolnum></citerefentry> daemon is operating in. Users in all trusted domains
392 will also be listed. Note that this operation does not assign
393 user ids to any users that have not already been seen by <citerefentry>
394 <refentrytitle>winbindd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
399 <term>--uid-info <replaceable>uid</replaceable></term>
400 <listitem><para>Get user info for the user connected to
401 user id UID.</para></listitem>
406 <listitem><para>Print brief help overview.
411 <term>--user-domgroups <replaceable>sid</replaceable></term>
412 <listitem><para>Get user domain groups.
417 <term>--user-sids <replaceable>sid</replaceable></term>
418 <listitem><para>Get user group SIDs for user.
423 <term>-U|--uid-to-sid <replaceable>uid</replaceable></term>
424 <listitem><para>Try to convert a UNIX user id to a Windows NT
425 SID. If the uid specified does not refer to one within
426 the idmap uid range then the operation will fail. </para></listitem>
430 <term>--verbose</term>
432 Print additional information about the query results.
437 <term>-Y|--sid-to-gid <replaceable>sid</replaceable></term>
438 <listitem><para>Convert a SID to a UNIX group id. If the SID
439 does not correspond to a UNIX group mapped by <citerefentry>
440 <refentrytitle>winbindd</refentrytitle><manvolnum>8</manvolnum></citerefentry> then
441 the operation will fail. </para></listitem>
452 <title>EXIT STATUS</title>
454 <para>The wbinfo program returns 0 if the operation
455 succeeded, or 1 if the operation failed. If the <citerefentry>
456 <refentrytitle>winbindd</refentrytitle><manvolnum>8</manvolnum>
457 </citerefentry> daemon is not working <command>wbinfo</command> will always return
463 <title>VERSION</title>
465 <para>This man page is correct for version 3 of
466 the Samba suite.</para>
470 <title>SEE ALSO</title>
471 <para><citerefentry><refentrytitle>winbindd</refentrytitle>
472 <manvolnum>8</manvolnum></citerefentry> and <citerefentry><refentrytitle>ntlm_auth</refentrytitle>
473 <manvolnum>1</manvolnum></citerefentry></para>
477 <title>AUTHOR</title>
479 <para>The original Samba software and related utilities
480 were created by Andrew Tridgell. Samba is now developed
481 by the Samba Team as an Open Source project similar
482 to the way the Linux kernel is developed.</para>
484 <para><command>wbinfo</command> and <command>winbindd</command>
485 were written by Tim Potter.</para>
487 <para>The conversion to DocBook for Samba 2.2 was done
488 by Gerald Carter. The conversion to DocBook XML 4.2 for Samba
489 3.0 was done by Alexander Bokovoy.</para>