1 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
5 <refentrytitle>wbinfo</refentrytitle>
6 <manvolnum>1</manvolnum>
11 <refname>wbinfo</refname>
12 <refpurpose>Query information from winbind daemon</refpurpose>
17 <command>wbinfo</command>
18 <arg choice="opt">-u</arg>
19 <arg choice="opt">-g</arg>
20 <arg choice="opt">-n name</arg>
21 <arg choice="opt">-s sid</arg>
22 <arg choice="opt">-U uid</arg>
23 <arg choice="opt">-G gid</arg>
24 <arg choice="opt">-S sid</arg>
25 <arg choice="opt">-Y sid</arg>
26 <arg choice="opt">-t</arg>
27 <arg choice="opt">-m</arg>
28 <arg choice="opt">-a user%password</arg>
29 <arg choice="opt">-p</arg>
34 <title>DESCRIPTION</title>
36 <para>This tool is part of the <ulink url="samba.7.html">
37 Samba</ulink> suite.</para>
39 <para>The <command>wbinfo</command> program queries and returns information
40 created and used by the <ulink url="winbindd.8.html"><command>
41 winbindd(8)</command></ulink> daemon. </para>
43 <para>The <command>winbindd(8)</command> daemon must be configured
44 and running for the <command>wbinfo</command> program to be able
45 to return information.</para>
49 <title>OPTIONS</title>
54 <listitem><para>This option will list all users available
55 in the Windows NT domain for which the <command>winbindd(8)
56 </command> daemon is operating in. Users in all trusted domains
57 will also be listed. Note that this operation does not assign
58 user ids to any users that have not already been seen by
59 <command>winbindd(8)</command>.</para></listitem>
64 <listitem><para>This option will list all groups available
65 in the Windows NT domain for which the <command>winbindd(8)
66 </command> daemon is operating in. Groups in all trusted domains
67 will also be listed. Note that this operation does not assign
68 group ids to any groups that have not already been seen by
69 <command>winbindd(8)</command>. </para></listitem>
75 <listitem><para>The <parameter>-n</parameter> option
76 queries <command>winbindd(8)</command> for the SID
77 associated with the name specified. Domain names can be specified
78 before the user name by using the winbind separator character.
79 For example CWDOM1/Administrator refers to the Administrator
80 user in the domain CWDOM1. If no domain is specified then the
81 domain used is the one specified in the <filename>smb.conf</filename>
82 <parameter>workgroup</parameter> parameter. </para></listitem>
88 <listitem><para>Use <parameter>-s</parameter> to resolve
89 a SID to a name. This is the inverse of the <parameter>-n
90 </parameter> option above. SIDs must be specified as ASCII strings
91 in the traditional Microsoft format. For example,
92 S-1-5-21-1455342024-3071081365-2475485837-500. </para></listitem>
98 <listitem><para>Try to convert a UNIX user id to a Windows NT
99 SID. If the uid specified does not refer to one within
100 the winbind uid range then the operation will fail. </para></listitem>
106 <listitem><para>Try to convert a UNIX group id to a Windows
107 NT SID. If the gid specified does not refer to one within
108 the winbind gid range then the operation will fail. </para></listitem>
114 <listitem><para>Convert a SID to a UNIX user id. If the SID
115 does not correspond to a UNIX user mapped by <command>
116 winbindd(8)</command> then the operation will fail. </para></listitem>
122 <listitem><para>Convert a SID to a UNIX group id. If the SID
123 does not correspond to a UNIX group mapped by <command>
124 winbindd(8)</command> then the operation will fail. </para></listitem>
131 <listitem><para>Verify that the workstation trust account
132 created when the Samba server is added to the Windows NT
133 domain is working. </para></listitem>
139 <listitem><para>Produce a list of domains trusted by the
140 Windows NT server <command>winbindd(8)</command> contacts
141 when resolving names. This list does not include the Windows
142 NT domain the server is a Primary Domain Controller for.
147 <term>-a username%password</term>
148 <listitem><para>Attempt to authenticate a user via winbindd.
149 This checks both authenticaion methods and reports its results.
155 <listitem><para>Attempt a simple 'ping' check that the winbindd
164 <title>EXIT STATUS</title>
166 <para>The wbinfo program returns 0 if the operation
167 succeeded, or 1 if the operation failed. If the <command>winbindd(8)
168 </command> daemon is not working <command>wbinfo</command> will always return
174 <title>VERSION</title>
176 <para>This man page is correct for version 2.2 of
177 the Samba suite.</para>
181 <title>SEE ALSO</title>
182 <para><ulink url="winbindd.8.html"><command>winbindd(8)</command>
187 <title>AUTHOR</title>
189 <para>The original Samba software and related utilities
190 were created by Andrew Tridgell. Samba is now developed
191 by the Samba Team as an Open Source project similar
192 to the way the Linux kernel is developed.</para>
194 <para><command>wbinfo</command> and <command>winbindd</command>
195 were written by Tim Potter.</para>
197 <para>The conversion to DocBook for Samba 2.2 was done
198 by Gerald Carter</para>