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">-h name</arg>
21 <arg choice="opt">-i ip</arg>
22 <arg choice="opt">-n name</arg>
23 <arg choice="opt">-s sid</arg>
24 <arg choice="opt">-U uid</arg>
25 <arg choice="opt">-G gid</arg>
26 <arg choice="opt">-S sid</arg>
27 <arg choice="opt">-Y sid</arg>
28 <arg choice="opt">-t</arg>
29 <arg choice="opt">-m</arg>
30 <arg choice="opt">-r user</arg>
31 <arg choice="opt">-a user%password</arg>
32 <arg choice="opt">-A user%password</arg>
37 <title>DESCRIPTION</title>
39 <para>This tool is part of the <ulink url="samba.7.html">
40 Samba</ulink> suite.</para>
42 <para>The <command>wbinfo</command> program queries and returns information
43 created and used by the <ulink url="winbindd.8.html"><command>
44 winbindd(8)</command></ulink> daemon. </para>
46 <para>The <command>winbindd(8)</command> daemon must be configured
47 and running for the <command>wbinfo</command> program to be able
48 to return information.</para>
52 <title>OPTIONS</title>
57 <listitem><para>This option will list all users available
58 in the Windows NT domain for which the <command>winbindd(8)
59 </command> daemon is operating in. Users in all trusted domains
60 will also be listed. Note that this operation does not assign
61 user ids to any users that have not already been seen by
62 <command>winbindd(8)</command>.</para></listitem>
67 <listitem><para>This option will list all groups available
68 in the Windows NT domain for which the <command>winbindd(8)
69 </command> daemon is operating in. Groups in all trusted domains
70 will also be listed. Note that this operation does not assign
71 group ids to any groups that have not already been seen by
72 <command>winbindd(8)</command>. </para></listitem>
78 <listitem><para>The <parameter>-h</parameter> option
79 queries <command>winbindd(8)</command> to query the WINS
80 server for the IP address associated with the NetBIOS name
81 specified by the <parameter>name</parameter> parameter.
88 <listitem><para>The <parameter>-i</parameter> option
89 queries <command>winbindd(8)</command> to send a node status
90 request to get the NetBIOS name associated with the IP address
91 specified by the <parameter>ip</parameter> parameter.
98 <listitem><para>The <parameter>-n</parameter> option
99 queries <command>winbindd(8)</command> for the SID
100 associated with the name specified. Domain names can be specified
101 before the user name by using the winbind separator character.
102 For example CWDOM1/Administrator refers to the Administrator
103 user in the domain CWDOM1. If no domain is specified then the
104 domain used is the one specified in the <filename>smb.conf</filename>
105 <parameter>workgroup</parameter> parameter. </para></listitem>
111 <listitem><para>Use <parameter>-s</parameter> to resolve
112 a SID to a name. This is the inverse of the <parameter>-n
113 </parameter> option above. SIDs must be specified as ASCII strings
114 in the traditional Microsoft format. For example,
115 S-1-5-21-1455342024-3071081365-2475485837-500. </para></listitem>
121 <listitem><para>Try to convert a UNIX user id to a Windows NT
122 SID. If the uid specified does not refer to one within
123 the winbind uid range then the operation will fail. </para></listitem>
129 <listitem><para>Try to convert a UNIX group id to a Windows
130 NT SID. If the gid specified does not refer to one within
131 the winbind gid range then the operation will fail. </para></listitem>
137 <listitem><para>Convert a SID to a UNIX user id. If the SID
138 does not correspond to a UNIX user mapped by <command>
139 winbindd(8)</command> then the operation will fail. </para></listitem>
145 <listitem><para>Convert a SID to a UNIX group id. If the SID
146 does not correspond to a UNIX group mapped by <command>
147 winbindd(8)</command> then the operation will fail. </para></listitem>
154 <listitem><para>Verify that the workstation trust account
155 created when the Samba server is added to the Windows NT
156 domain is working. </para></listitem>
162 <listitem><para>Produce a list of domains trusted by the
163 Windows NT server <command>winbindd(8)</command> contacts
164 when resolving names. This list does not include the Windows
165 NT domain the server is a Primary Domain Controller for.
171 <term>-r username</term>
172 <listitem><para>Try to obtain the list of UNIX group ids
173 to which the user belongs. This only works for users
174 defined on a Domain Controller.
180 <term>-a username%password</term>
181 <listitem><para>Attempt to authenticate a user via winbindd.
182 This checks both authenticaion methods and reports its results.
188 <term>-A username%password</term>
189 <listitem><para>Store username and password used by winbindd
190 during session setup to a domain controller. This enables
191 winbindd to operate in a Windows 2000 domain with Restrict
192 Anonymous turned on (a.k.a. Permissions compatiable with
193 Windows 2000 servers only).
201 <title>EXIT STATUS</title>
203 <para>The wbinfo program returns 0 if the operation
204 succeeded, or 1 if the operation failed. If the <command>winbindd(8)
205 </command> daemon is not working <command>wbinfo</command> will always return
211 <title>VERSION</title>
213 <para>This man page is correct for version 2.2 of
214 the Samba suite.</para>
218 <title>SEE ALSO</title>
219 <para><ulink url="winbindd.8.html"><command>winbindd(8)</command>
224 <title>AUTHOR</title>
226 <para>The original Samba software and related utilities
227 were created by Andrew Tridgell. Samba is now developed
228 by the Samba Team as an Open Source project similar
229 to the way the Linux kernel is developed.</para>
231 <para><command>wbinfo</command> and <command>winbindd</command>
232 were written by Tim Potter.</para>
234 <para>The conversion to DocBook for Samba 2.2 was done
235 by Gerald Carter</para>