source: trunk-3.0/docs/manpages/winbindd.8@ 101

Last change on this file since 101 was 44, checked in by Paul Smedley, 18 years ago

Update source to 3.0.25b

File size: 13.9 KB
Line 
1.\"Generated by db2man.xsl. Don't modify this, modify the source.
2.de Sh \" Subsection
3.br
4.if t .Sp
5.ne 5
6.PP
7\fB\\$1\fR
8.PP
9..
10.de Sp \" Vertical space (when we can't use .PP)
11.if t .sp .5v
12.if n .sp
13..
14.de Ip \" List item
15.br
16.ie \\n(.$>=3 .ne \\$3
17.el .ne 3
18.IP "\\$1" \\$2
19..
20.TH "WINBINDD" 8 "" "" ""
21.SH "NAME"
22winbindd - Name Service Switch daemon for resolving names from NT servers
23.SH "SYNOPSIS"
24.HP 1
25winbindd [-F] [-S] [-i] [-Y] [-d <debug level>] [-s <smb config file>] [-n]
26.SH "DESCRIPTION"
27.PP
28This program is part of the
29\fBsamba\fR(7)
30suite.
31.PP
32winbindd
33is a daemon that provides a number of services to the Name Service Switch capability found in most modern C libraries, to arbitary applications via PAM and
34ntlm_auth
35and to Samba itself.
36.PP
37Even if winbind is not used for nsswitch, it still provides a service to
38smbd,
39ntlm_auth
40and the
41pam_winbind.so
42PAM module, by managing connections to domain controllers. In this configuraiton the
43idmap uid and
44idmap gid parameters are not required. (This is known as `netlogon proxy only mode'.)
45.PP
46The Name Service Switch allows user and system information to be obtained from different databases services such as NIS or DNS. The exact behaviour can be configured throught the
47\fI/etc/nsswitch.conf\fR
48file. Users and groups are allocated as they are resolved to a range of user and group ids specified by the administrator of the Samba system.
49.PP
50The service provided by
51winbindd
52is called `winbind' and can be used to resolve user and group information from a Windows NT server. The service can also provide authentication services via an associated PAM module.
53.PP
54The
55\fIpam_winbind\fR
56module supports the
57\fIauth\fR,
58\fIaccount\fR
59and
60\fIpassword\fR
61module-types. It should be noted that the
62\fIaccount\fR
63module simply performs a getpwnam() to verify that the system can obtain a uid for the user, as the domain controller has already performed access control. If the
64\fIlibnss_winbind\fR
65library has been correctly installed, or an alternate source of names configured, this should always succeed.
66.PP
67The following nsswitch databases are implemented by the winbindd service:
68.PP
69hosts
70.RS 3n
71This feature is only available on IRIX. User information traditionally stored in the
72\fIhosts(5)\fR
73file and used by
74gethostbyname(3)
75functions. Names are resolved through the WINS server or by broadcast.
76.RE
77.PP
78passwd
79.RS 3n
80User information traditionally stored in the
81\fIpasswd(5)\fR
82file and used by
83getpwent(3)
84functions.
85.RE
86.PP
87group
88.RS 3n
89Group information traditionally stored in the
90\fIgroup(5)\fR
91file and used by
92getgrent(3)
93functions.
94.RE
95.PP
96For example, the following simple configuration in the
97\fI/etc/nsswitch.conf\fR
98file can be used to initially resolve user and group information from
99\fI/etc/passwd \fR
100and
101\fI/etc/group\fR
102and then from the Windows NT server.
103
104.sp
105
106.nf
107
108passwd: files winbind
109group: files winbind
110## only available on IRIX; Linux users should us libnss_wins.so
111hosts: files dns winbind
112
113.fi
114
115.PP
116The following simple configuration in the
117\fI/etc/nsswitch.conf\fR
118file can be used to initially resolve hostnames from
119\fI/etc/hosts\fR
120and then from the WINS server.
121
122.nf
123
124hosts: files wins
125
126.fi
127.SH "OPTIONS"
128.PP
129-F
130.RS 3n
131If specified, this parameter causes the main
132winbindd
133process to not daemonize, i.e. double-fork and disassociate with the terminal. Child processes are still created as normal to service each connection request, but the main process does not exit. This operation mode is suitable for running
134winbindd
135under process supervisors such as
136supervise
137and
138svscan
139from Daniel J. Bernstein's
140daemontools
141package, or the AIX process monitor.
142.RE
143.PP
144-S
145.RS 3n
146If specified, this parameter causes
147winbindd
148to log to standard output rather than a file.
149.RE
150.PP
151-V
152.RS 3n
153Prints the program version number.
154.RE
155.PP
156-s <configuration file>
157.RS 3n
158The file specified contains the configuration details required by the server. The information in this file includes server-specific information such as what printcap file to use, as well as descriptions of all the services that the server is to provide. See
159\fIsmb.conf\fR
160for more information. The default configuration file name is determined at compile time.
161.RE
162.PP
163-d|--debuglevel=level
164.RS 3n
165\fIlevel\fR
166is an integer from 0 to 10. The default value if this parameter is not specified is zero.
167.sp
168The higher this value, the more detail will be logged to the log files about the activities of the server. At level 0, only critical errors and serious warnings will be logged. Level 1 is a reasonable level for day-to-day running - it generates a small amount of information about operations carried out.
169.sp
170Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic.
171.sp
172Note that specifying this parameter here will override the
173
174parameter in the
175\fIsmb.conf\fR
176file.
177.RE
178.PP
179-l|--logfile=logdirectory
180.RS 3n
181Base directory name for log/debug files. The extension
182\fB".progname"\fR
183will be appended (e.g. log.smbclient, log.smbd, etc...). The log file is never removed by the client.
184.RE
185.PP
186-h|--help
187.RS 3n
188Print a summary of command line options.
189.RE
190.PP
191-i
192.RS 3n
193Tells
194winbindd
195to not become a daemon and detach from the current terminal. This option is used by developers when interactive debugging of
196winbindd
197is required.
198winbindd
199also logs to standard output, as if the
200-S
201parameter had been given.
202.RE
203.PP
204-n
205.RS 3n
206Disable caching. This means winbindd will always have to wait for a response from the domain controller before it can respond to a client and this thus makes things slower. The results will however be more accurate, since results from the cache might not be up-to-date. This might also temporarily hang winbindd if the DC doesn't respond.
207.RE
208.PP
209-Y
210.RS 3n
211Single daemon mode. This means winbindd will run as a single process (the mode of operation in Samba 2.2). Winbindd's default behavior is to launch a child process that is responsible for updating expired cache entries.
212.RE
213.SH "NAME AND ID RESOLUTION"
214.PP
215Users and groups on a Windows NT server are assigned a security id (SID) which is globally unique when the user or group is created. To convert the Windows NT user or group into a unix user or group, a mapping between SIDs and unix user and group ids is required. This is one of the jobs that
216winbindd
217performs.
218.PP
219As winbindd users and groups are resolved from a server, user and group ids are allocated from a specified range. This is done on a first come, first served basis, although all existing users and groups will be mapped as soon as a client performs a user or group enumeration command. The allocated unix ids are stored in a database and will be remembered.
220.PP
221WARNING: The SID to unix id database is the only location where the user and group mappings are stored by winbindd. If this store is deleted or corrupted, there is no way for winbindd to determine which user and group ids correspond to Windows NT user and group rids.
222.PP
223See the
224
225or the old
226
227parameters in
228\fIsmb.conf\fR
229for options for sharing this database, such as via LDAP.
230.SH "CONFIGURATION"
231.PP
232Configuration of the
233winbindd
234daemon is done through configuration parameters in the
235\fBsmb.conf\fR(5)
236file. All parameters should be specified in the [global] section of smb.conf.
237.TP 3n
238\(bu
239
240winbind separator
241.TP 3n
242\(bu
243
244idmap uid
245.TP 3n
246\(bu
247
248idmap gid
249.TP 3n
250\(bu
251
252idmap backend
253.TP 3n
254\(bu
255
256winbind cache time
257.TP 3n
258\(bu
259
260winbind enum users
261.TP 3n
262\(bu
263
264winbind enum groups
265.TP 3n
266\(bu
267
268template homedir
269.TP 3n
270\(bu
271
272template shell
273.TP 3n
274\(bu
275
276winbind use default domain
277.TP 3n
278\(bu
279
280winbind: rpc only Setting this parameter forces winbindd to use RPC instead of LDAP to retrieve information from Domain Controllers.
281.SH "EXAMPLE SETUP"
282.PP
283To setup winbindd for user and group lookups plus authentication from a domain controller use something like the following setup. This was tested on an early Red Hat Linux box.
284.PP
285In
286\fI/etc/nsswitch.conf\fR
287put the following:
288
289.sp
290
291.nf
292
293passwd: files winbind
294group: files winbind
295
296.fi
297
298.PP
299In
300\fI/etc/pam.d/*\fR
301replace the
302\fI auth\fR
303lines with something like this:
304
305.sp
306
307.nf
308
309auth required /lib/security/pam_securetty.so
310auth required /lib/security/pam_nologin.so
311auth sufficient /lib/security/pam_winbind.so
312auth required /lib/security/pam_unix.so \
313 use_first_pass shadow nullok
314
315.fi
316
317.sp
318.it 1 an-trap
319.nr an-no-space-flag 1
320.nr an-break-flag 1
321.br
322\fBNote\fR
323.PP
324The PAM module pam_unix has recently replaced the module pam_pwdb. Some Linux systems use the module pam_unix2 in place of pam_unix.
325.PP
326Note in particular the use of the
327\fIsufficient \fR
328keyword and the
329\fIuse_first_pass\fR
330keyword.
331.PP
332Now replace the account lines with this:
333.PP
334account required /lib/security/pam_winbind.so
335.PP
336The next step is to join the domain. To do that use the
337net
338program like this:
339.PP
340net join -S PDC -U Administrator
341.PP
342The username after the
343\fI-U\fR
344can be any Domain user that has administrator privileges on the machine. Substitute the name or IP of your PDC for "PDC".
345.PP
346Next copy
347\fIlibnss_winbind.so\fR
348to
349\fI/lib\fR
350and
351\fIpam_winbind.so \fR
352to
353\fI/lib/security\fR. A symbolic link needs to be made from
354\fI/lib/libnss_winbind.so\fR
355to
356\fI/lib/libnss_winbind.so.2\fR. If you are using an older version of glibc then the target of the link should be
357\fI/lib/libnss_winbind.so.1\fR.
358.PP
359Finally, setup a
360\fBsmb.conf\fR(5)
361containing directives like the following:
362
363.sp
364
365.nf
366
367[global]
368 winbind separator = +
369 winbind cache time = 10
370 template shell = /bin/bash
371 template homedir = /home/%D/%U
372 idmap uid = 10000-20000
373 idmap gid = 10000-20000
374 workgroup = DOMAIN
375 security = domain
376 password server = *
377
378.fi
379
380.PP
381Now start winbindd and you should find that your user and group database is expanded to include your NT users and groups, and that you can login to your unix box as a domain user, using the DOMAIN+user syntax for the username. You may wish to use the commands
382getent passwd
383and
384getent group
385to confirm the correct operation of winbindd.
386.SH "NOTES"
387.PP
388The following notes are useful when configuring and running
389winbindd:
390.PP
391\fBnmbd\fR(8)
392must be running on the local machine for
393winbindd
394to work.
395.PP
396PAM is really easy to misconfigure. Make sure you know what you are doing when modifying PAM configuration files. It is possible to set up PAM such that you can no longer log into your system.
397.PP
398If more than one UNIX machine is running
399winbindd, then in general the user and groups ids allocated by winbindd will not be the same. The user and group ids will only be valid for the local machine, unless a shared
400
401is configured.
402.PP
403If the the Windows NT SID to UNIX user and group id mapping file is damaged or destroyed then the mappings will be lost.
404.SH "SIGNALS"
405.PP
406The following signals can be used to manipulate the
407winbindd
408daemon.
409.PP
410SIGHUP
411.RS 3n
412Reload the
413\fBsmb.conf\fR(5)
414file and apply any parameter changes to the running version of winbindd. This signal also clears any cached user and group information. The list of other domains trusted by winbindd is also reloaded.
415.RE
416.PP
417SIGUSR2
418.RS 3n
419The SIGUSR2 signal will cause
420winbindd
421to write status information to the winbind log file.
422.sp
423Log files are stored in the filename specified by the log file parameter.
424.RE
425.SH "FILES"
426.PP
427\fI/etc/nsswitch.conf(5)\fR
428.RS 3n
429Name service switch configuration file.
430.RE
431.PP
432/tmp/.winbindd/pipe
433.RS 3n
434The UNIX pipe over which clients communicate with the
435winbindd
436program. For security reasons, the winbind client will only attempt to connect to the winbindd daemon if both the
437\fI/tmp/.winbindd\fR
438directory and
439\fI/tmp/.winbindd/pipe\fR
440file are owned by root.
441.RE
442.PP
443$LOCKDIR/winbindd_privileged/pipe
444.RS 3n
445The UNIX pipe over which 'privileged' clients communicate with the
446winbindd
447program. For security reasons, access to some winbindd functions - like those needed by the
448ntlm_auth
449utility - is restricted. By default, only users in the 'root' group will get this access, however the administrator may change the group permissions on $LOCKDIR/winbindd_privileged to allow programs like 'squid' to use ntlm_auth. Note that the winbind client will only attempt to connect to the winbindd daemon if both the
450\fI$LOCKDIR/winbindd_privileged\fR
451directory and
452\fI$LOCKDIR/winbindd_privileged/pipe\fR
453file are owned by root.
454.RE
455.PP
456/lib/libnss_winbind.so.X
457.RS 3n
458Implementation of name service switch library.
459.RE
460.PP
461$LOCKDIR/winbindd_idmap.tdb
462.RS 3n
463Storage for the Windows NT rid to UNIX user/group id mapping. The lock directory is specified when Samba is initially compiled using the
464\fI--with-lockdir\fR
465option. This directory is by default
466\fI/usr/local/samba/var/locks \fR.
467.RE
468.PP
469$LOCKDIR/winbindd_cache.tdb
470.RS 3n
471Storage for cached user and group information.
472.RE
473.SH "VERSION"
474.PP
475This man page is correct for version 3.0 of the Samba suite.
476.SH "SEE ALSO"
477.PP
478\fInsswitch.conf(5)\fR,
479\fBsamba\fR(7),
480\fBwbinfo\fR(1),
481\fBntlm_auth\fR(8),
482\fBsmb.conf\fR(5),
483\fBpam_winbind\fR(8)
484.SH "AUTHOR"
485.PP
486The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed.
487.PP
488wbinfo
489and
490winbindd
491were written by Tim Potter.
492.PP
493The conversion to DocBook for Samba 2.2 was done by Gerald Carter. The conversion to DocBook XML 4.2 for Samba 3.0 was done by Alexander Bokovoy.
494
Note: See TracBrowser for help on using the repository browser.