1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
4 <!ENTITY % globalentities SYSTEM '../entities/global.entities'> %globalentities;
6 <refentry id="wbinfo.1">
9 <refentrytitle>wbinfo</refentrytitle>
10 <manvolnum>1</manvolnum>
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">-c username</arg>
24 <arg choice="opt">-C groupname</arg>
25 <arg choice="opt">--domain domain</arg>
26 <arg choice="opt">-I ip</arg>
27 <arg choice="opt">-s sid</arg>
28 <arg choice="opt">-u</arg>
29 <arg choice="opt">-U uid</arg>
30 <arg choice="opt">-g</arg>
31 <arg choice="opt">--get-auth-user</arg>
32 <arg choice="opt">-G gid</arg>
33 <arg choice="opt">-m</arg>
34 <arg choice="opt">-n name</arg>
35 <arg choice="opt">-N netbios-name</arg>
36 <arg choice="opt">-o user:group</arg>
37 <arg choice="opt">-O user:group</arg>
38 <arg choice="opt">-p</arg>
39 <arg choice="opt">-r user</arg>
40 <arg choice="opt">--set-auth-user user%password</arg>
41 <arg choice="opt">--sequence</arg>
42 <arg choice="opt">-S sid</arg>
43 <arg choice="opt">-t</arg>
44 <arg choice="opt">-x username</arg>
45 <arg choice="opt">-X groupname</arg>
46 <arg choice="opt">-Y sid</arg>
51 <title>DESCRIPTION</title>
53 <para>This tool is part of the <citerefentry><refentrytitle>samba</refentrytitle>
54 <manvolnum>7</manvolnum></citerefentry> suite.</para>
56 <para>The <command>wbinfo</command> program queries and returns information
57 created and used by the <citerefentry><refentrytitle>winbindd</refentrytitle>
58 <manvolnum>8</manvolnum></citerefentry> daemon. </para>
60 <para>The <citerefentry><refentrytitle>winbindd</refentrytitle>
61 <manvolnum>8</manvolnum></citerefentry> daemon must be configured
62 and running for the <command>wbinfo</command> program to be able
63 to return information.</para>
67 <title>OPTIONS</title>
71 <term>-a username%password</term>
72 <listitem><para>Attempt to authenticate a user via winbindd.
73 This checks both authenticaion methods and reports its results.
79 <listitem><para>Create a local winbind user.
85 <listitem><para>Create a local winbindd group.
90 <term>--domain name</term>
91 <listitem><para>This parameter sets the domain on which any specified
92 operations will performed. If special domain name '.' is used to represent
93 the current domain to which winbindd belongs. Currently only the
94 <option>--sequence</option>,
95 <option>-u</option>, and <option>-g</option> options honor this parameter.
101 <listitem><para>This option will list all groups available
102 in the Windows NT domain for which the <citerefentry><refentrytitle>samba</refentrytitle>
103 <manvolnum>7</manvolnum></citerefentry> daemon is operating in. Groups in all trusted domains
104 will also be listed. Note that this operation does not assign
105 group ids to any groups that have not already been
106 seen by <citerefentry><refentrytitle>winbindd</refentrytitle>
107 <manvolnum>8</manvolnum></citerefentry>. </para></listitem>
111 <term>--get-auth-user</term>
112 <listitem><para>Print username and password used by winbindd
113 during session setup to a domain controller. Username
114 and password can be set using '-A'. Only available for
115 root.</para></listitem>
120 <listitem><para>Try to convert a UNIX group id to a Windows
121 NT SID. If the gid specified does not refer to one within
122 the idmap gid range then the operation will fail. </para></listitem>
127 <listitem><para>The <parameter>-I</parameter> option
128 queries <citerefentry><refentrytitle>winbindd</refentrytitle>
129 <manvolnum>8</manvolnum></citerefentry> to send a node status
130 request to get the NetBIOS name associated with the IP address
131 specified by the <parameter>ip</parameter> parameter.
138 <listitem><para>Produce a list of domains trusted by the
139 Windows NT server <citerefentry><refentrytitle>winbindd</refentrytitle>
140 <manvolnum>8</manvolnum></citerefentry> contacts
141 when resolving names. This list does not include the Windows
142 NT domain the server is a Primary Domain Controller for.
148 <listitem><para>The <parameter>-n</parameter> option
149 queries <citerefentry><refentrytitle>winbindd</refentrytitle>
150 <manvolnum>8</manvolnum></citerefentry> for the SID
151 associated with the name specified. Domain names can be specified
152 before the user name by using the winbind separator character.
153 For example CWDOM1/Administrator refers to the Administrator
154 user in the domain CWDOM1. If no domain is specified then the
155 domain used is the one specified in the <citerefentry><refentrytitle>smb.conf</refentrytitle>
156 <manvolnum>5</manvolnum></citerefentry> <parameter>workgroup
157 </parameter> parameter. </para></listitem>
162 <listitem><para>The <parameter>-N</parameter> option
163 queries <citerefentry><refentrytitle>winbindd</refentrytitle>
164 <manvolnum>8</manvolnum></citerefentry> to query the WINS
165 server for the IP address associated with the NetBIOS name
166 specified by the <parameter>name</parameter> parameter.
171 <term>-o user:group</term>
172 <listitem><para>Add a winbindd local group as a secondary group
173 for the specified winbindd local user.
178 <term>-O user:group</term>
179 <listitem><para>Remove a winbindd local group as a secondary group
180 for the specified winbindd local user.
186 <listitem><para>Check whether winbindd is still alive.
187 Prints out either 'succeeded' or 'failed'.
192 <term>-r username</term>
193 <listitem><para>Try to obtain the list of UNIX group ids
194 to which the user belongs. This only works for users
195 defined on a Domain Controller.
201 <listitem><para>Use <parameter>-s</parameter> to resolve
202 a SID to a name. This is the inverse of the <parameter>-n
203 </parameter> option above. SIDs must be specified as ASCII strings
204 in the traditional Microsoft format. For example,
205 S-1-5-21-1455342024-3071081365-2475485837-500. </para></listitem>
209 <term>--set-auth-user username%password</term>
210 <listitem><para>Store username and password used by winbindd
211 during session setup to a domain controller. This enables
212 winbindd to operate in a Windows 2000 domain with Restrict
213 Anonymous turned on (a.k.a. Permissions compatiable with
214 Windows 2000 servers only).
219 <term>--sequence</term>
220 <listitem><para>Show sequence numbers of
221 all known domains</para></listitem>
226 <listitem><para>Convert a SID to a UNIX user id. If the SID
227 does not correspond to a UNIX user mapped by <citerefentry>
228 <refentrytitle>winbindd</refentrytitle><manvolnum>8</manvolnum>
229 </citerefentry> then the operation will fail. </para></listitem>
234 <listitem><para>Verify that the workstation trust account
235 created when the Samba server is added to the Windows NT
236 domain is working. </para></listitem>
241 <listitem><para>This option will list all users available
242 in the Windows NT domain for which the <citerefentry><refentrytitle>winbindd</refentrytitle>
243 <manvolnum>8</manvolnum></citerefentry> daemon is operating in. Users in all trusted domains
244 will also be listed. Note that this operation does not assign
245 user ids to any users that have not already been seen by <citerefentry>
246 <refentrytitle>winbindd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
252 <listitem><para>Try to convert a UNIX user id to a Windows NT
253 SID. If the uid specified does not refer to one within
254 the idmap uid range then the operation will fail. </para></listitem>
259 <listitem><para>Delete an existing local winbind user.
264 <term>-X group</term>
265 <listitem><para>Delete an existing local winbindd group.
271 <listitem><para>Convert a SID to a UNIX group id. If the SID
272 does not correspond to a UNIX group mapped by <citerefentry>
273 <refentrytitle>winbindd</refentrytitle><manvolnum>8</manvolnum></citerefentry> then
274 the operation will fail. </para></listitem>
286 <title>EXIT STATUS</title>
288 <para>The wbinfo program returns 0 if the operation
289 succeeded, or 1 if the operation failed. If the <citerefentry>
290 <refentrytitle>winbindd</refentrytitle><manvolnum>8</manvolnum>
291 </citerefentry> daemon is not working <command>wbinfo</command> will always return
297 <title>VERSION</title>
299 <para>This man page is correct for version 3.0 of
300 the Samba suite.</para>
304 <title>SEE ALSO</title>
305 <para><citerefentry><refentrytitle>winbindd</refentrytitle>
306 <manvolnum>8</manvolnum></citerefentry></para>
310 <title>AUTHOR</title>
312 <para>The original Samba software and related utilities
313 were created by Andrew Tridgell. Samba is now developed
314 by the Samba Team as an Open Source project similar
315 to the way the Linux kernel is developed.</para>
317 <para><command>wbinfo</command> and <command>winbindd</command>
318 were written by Tim Potter.</para>
320 <para>The conversion to DocBook for Samba 2.2 was done
321 by Gerald Carter. The conversion to DocBook XML 4.2 for Samba
322 3.0 was done by Alexander Bokovoy.</para>