1 <?xml version="1.0" encoding="iso8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
5 <!ENTITY % globalentities SYSTEM './../global.ent'> %globalentities;
7 <refentry id="wbinfo.1">
10 <refentrytitle>wbinfo</refentrytitle>
11 <manvolnum>1</manvolnum>
16 <refname>wbinfo</refname>
17 <refpurpose>Query information from winbind daemon</refpurpose>
22 <command>wbinfo</command>
23 <arg choice="opt">-u</arg>
24 <arg choice="opt">-g</arg>
25 <arg choice="opt">-N netbios-name</arg>
26 <arg choice="opt">-I ip</arg>
27 <arg choice="opt">-n name</arg>
28 <arg choice="opt">-s sid</arg>
29 <arg choice="opt">-U uid</arg>
30 <arg choice="opt">-G gid</arg>
31 <arg choice="opt">-S sid</arg>
32 <arg choice="opt">-Y sid</arg>
33 <arg choice="opt">-t</arg>
34 <arg choice="opt">-m</arg>
35 <arg choice="opt">--sequence</arg>
36 <arg choice="opt">-r user</arg>
37 <arg choice="opt">-a user%password</arg>
38 <arg choice="opt">--set-auth-user user%password</arg>
39 <arg choice="opt">--get-auth-user</arg>
40 <arg choice="opt">-p</arg>
45 <title>DESCRIPTION</title>
47 <para>This tool is part of the <citerefentry><refentrytitle>Samba</refentrytitle>
48 <manvolnum>7</manvolnum></citerefentry> suite.</para>
50 <para>The <command>wbinfo</command> program queries and returns information
51 created and used by the <citerefentry><refentrytitle>winbindd</refentrytitle>
52 <manvolnum>8</manvolnum></citerefentry> daemon. </para>
54 <para>The <citerefentry><refentrytitle>winbindd</refentrytitle>
55 <manvolnum>8</manvolnum></citerefentry> daemon must be configured
56 and running for the <command>wbinfo</command> program to be able
57 to return information.</para>
61 <title>OPTIONS</title>
66 <listitem><para>This option will list all users available
67 in the Windows NT domain for which the <citerefentry><refentrytitle>winbindd</refentrytitle>
68 <manvolnum>8</manvolnum></citerefentry> daemon is operating in. Users in all trusted domains
69 will also be listed. Note that this operation does not assign
70 user ids to any users that have not already been seen by <citerefentry>
71 <refentrytitle>winbindd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
77 <listitem><para>This option will list all groups available
78 in the Windows NT domain for which the <citerefentry><refentrytitle>Samba</refentrytitle>
79 <manvolnum>7</manvolnum></citerefentry> daemon is operating in. Groups in all trusted domains
80 will also be listed. Note that this operation does not assign
81 group ids to any groups that have not already been
82 seen by <citerefentry><refentrytitle>winbindd</refentrytitle>
83 <manvolnum>8</manvolnum></citerefentry>. </para></listitem>
88 <listitem><para>The <parameter>-N</parameter> option
89 queries <citerefentry><refentrytitle>winbindd</refentrytitle>
90 <manvolnum>8</manvolnum></citerefentry> to query the WINS
91 server for the IP address associated with the NetBIOS name
92 specified by the <parameter>name</parameter> parameter.
99 <listitem><para>The <parameter>-I</parameter> option
100 queries <citerefentry><refentrytitle>winbindd</refentrytitle>
101 <manvolnum>8</manvolnum></citerefentry> to send a node status
102 request to get the NetBIOS name associated with the IP address
103 specified by the <parameter>ip</parameter> parameter.
110 <listitem><para>The <parameter>-n</parameter> option
111 queries <citerefentry><refentrytitle>winbindd</refentrytitle>
112 <manvolnum>8</manvolnum></citerefentry> for the SID
113 associated with the name specified. Domain names can be specified
114 before the user name by using the winbind separator character.
115 For example CWDOM1/Administrator refers to the Administrator
116 user in the domain CWDOM1. If no domain is specified then the
117 domain used is the one specified in the <citerefentry><refentrytitle>smb.conf</refentrytitle>
118 <manvolnum>5</manvolnum></citerefentry> <parameter>workgroup
119 </parameter> parameter. </para></listitem>
125 <listitem><para>Use <parameter>-s</parameter> to resolve
126 a SID to a name. This is the inverse of the <parameter>-n
127 </parameter> option above. SIDs must be specified as ASCII strings
128 in the traditional Microsoft format. For example,
129 S-1-5-21-1455342024-3071081365-2475485837-500. </para></listitem>
135 <listitem><para>Try to convert a UNIX user id to a Windows NT
136 SID. If the uid specified does not refer to one within
137 the winbind uid range then the operation will fail. </para></listitem>
143 <listitem><para>Try to convert a UNIX group id to a Windows
144 NT SID. If the gid specified does not refer to one within
145 the winbind gid range then the operation will fail. </para></listitem>
151 <listitem><para>Convert a SID to a UNIX user id. If the SID
152 does not correspond to a UNIX user mapped by <citerefentry>
153 <refentrytitle>winbindd</refentrytitle><manvolnum>8</manvolnum>
154 </citerefentry> then the operation will fail. </para></listitem>
160 <listitem><para>Convert a SID to a UNIX group id. If the SID
161 does not correspond to a UNIX group mapped by <citerefentry>
162 <refentrytitle>winbindd</refentrytitle><manvolnum>8</manvolnum></citerefentry> then
163 the operation will fail. </para></listitem>
170 <listitem><para>Verify that the workstation trust account
171 created when the Samba server is added to the Windows NT
172 domain is working. </para></listitem>
178 <listitem><para>Produce a list of domains trusted by the
179 Windows NT server <citerefentry><refentrytitle>winbindd</refentrytitle>
180 <manvolnum>8</manvolnum></citerefentry> contacts
181 when resolving names. This list does not include the Windows
182 NT domain the server is a Primary Domain Controller for.
187 <term>--sequence</term>
188 <listitem><para>Show sequence numbers of
189 all known domains</para></listitem>
193 <term>-r username</term>
194 <listitem><para>Try to obtain the list of UNIX group ids
195 to which the user belongs. This only works for users
196 defined on a Domain Controller.
202 <term>-a username%password</term>
203 <listitem><para>Attempt to authenticate a user via winbindd.
204 This checks both authenticaion methods and reports its results.
210 <term>--set-auth-user username%password</term>
211 <listitem><para>Store username and password used by winbindd
212 during session setup to a domain controller. This enables
213 winbindd to operate in a Windows 2000 domain with Restrict
214 Anonymous turned on (a.k.a. Permissions compatiable with
215 Windows 2000 servers only).
220 <term>--get-auth-user</term>
221 <listitem><para>Print username and password used by winbindd
222 during session setup to a domain controller. Username
223 and password can be set using '-A'. Only available for
224 root.</para></listitem>
229 <listitem><para>Check whether winbindd is still alive.
230 Prints out either 'succeeded' or 'failed'.
242 <title>EXIT STATUS</title>
244 <para>The wbinfo program returns 0 if the operation
245 succeeded, or 1 if the operation failed. If the <citerefentry>
246 <refentrytitle>winbindd</refentrytitle><manvolnum>8</manvolnum>
247 </citerefentry> daemon is not working <command>wbinfo</command> will always return
253 <title>VERSION</title>
255 <para>This man page is correct for version 3.0 of
256 the Samba suite.</para>
260 <title>SEE ALSO</title>
261 <para><citerefentry><refentrytitle>winbindd</refentrytitle>
262 <manvolnum>8</manvolnum></citerefentry></para>
266 <title>AUTHOR</title>
268 <para>The original Samba software and related utilities
269 were created by Andrew Tridgell. Samba is now developed
270 by the Samba Team as an Open Source project similar
271 to the way the Linux kernel is developed.</para>
273 <para><command>wbinfo</command> and <command>winbindd</command>
274 were written by Tim Potter.</para>
276 <para>The conversion to DocBook for Samba 2.2 was done
277 by Gerald Carter. The conversion to DocBook XML 4.2 for Samba
278 3.0 was done by Alexander Bokovoy.</para>