source: vendor/3.6.0/docs/manpages/winbindd.8

Last change on this file was 740, checked in by Silvan Scherrer, 13 years ago

Samba Server: update vendor to 3.6.0

File size: 16.0 KB
Line 
1'\" t
2.\" Title: winbindd
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 08/08/2011
6.\" Manual: System Administration tools
7.\" Source: Samba 3.6
8.\" Language: English
9.\"
10.TH "WINBINDD" "8" "08/08/2011" "Samba 3\&.6" "System Administration tools"
11.\" -----------------------------------------------------------------
12.\" * set default formatting
13.\" -----------------------------------------------------------------
14.\" disable hyphenation
15.nh
16.\" disable justification (adjust text to left margin only)
17.ad l
18.\" -----------------------------------------------------------------
19.\" * MAIN CONTENT STARTS HERE *
20.\" -----------------------------------------------------------------
21.SH "NAME"
22winbindd \- Name Service Switch daemon for resolving names from NT servers
23.SH "SYNOPSIS"
24.HP \w'\ 'u
25winbindd [\-D] [\-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 arbitrary 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 configuration the
43\m[blue]\fBidmap config * : range\fR\m[]
44parameter is 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 through the
47/etc/nsswitch\&.conf
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
55pam_winbind
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
64libnss_winbind
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 4
71This feature is only available on IRIX\&. User information traditionally stored in the
72hosts(5)
73file and used by
74gethostbyname(3)
75functions\&. Names are resolved through the WINS server or by broadcast\&.
76.RE
77.PP
78passwd
79.RS 4
80User information traditionally stored in the
81passwd(5)
82file and used by
83getpwent(3)
84functions\&.
85.RE
86.PP
87group
88.RS 4
89Group information traditionally stored in the
90group(5)
91file and used by
92getgrent(3)
93functions\&.
94.RE
95.PP
96For example, the following simple configuration in the
97/etc/nsswitch\&.conf
98file can be used to initially resolve user and group information from
99/etc/passwd
100and
101/etc/group
102and then from the Windows NT server\&.
103.sp
104.if n \{\
105.RS 4
106.\}
107.nf
108passwd: files winbind
109group: files winbind
110## only available on IRIX: use winbind to resolve hosts:
111# hosts: files dns winbind
112## All other NSS enabled systems should use libnss_wins\&.so like this:
113hosts: files dns wins
114
115.fi
116.if n \{\
117.RE
118.\}
119.PP
120The following simple configuration in the
121/etc/nsswitch\&.conf
122file can be used to initially resolve hostnames from
123/etc/hosts
124and then from the WINS server\&.
125.sp
126.if n \{\
127.RS 4
128.\}
129.nf
130hosts: files wins
131.fi
132.if n \{\
133.RE
134.\}
135.SH "OPTIONS"
136.PP
137\-D
138.RS 4
139If specified, this parameter causes the server to operate as a daemon\&. That is, it detaches itself and runs in the background on the appropriate port\&. This switch is assumed if
140winbindd
141is executed on the command line of a shell\&.
142.RE
143.PP
144\-F
145.RS 4
146If specified, this parameter causes the main
147winbindd
148process 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
149winbindd
150under process supervisors such as
151supervise
152and
153svscan
154from Daniel J\&. Bernstein\'s
155daemontools
156package, or the AIX process monitor\&.
157.RE
158.PP
159\-S
160.RS 4
161If specified, this parameter causes
162winbindd
163to log to standard output rather than a file\&.
164.RE
165.PP
166\-d|\-\-debuglevel=level
167.RS 4
168\fIlevel\fR
169is an integer from 0 to 10\&. The default value if this parameter is not specified is 0\&.
170.sp
171The 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\&.
172.sp
173Levels 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\&.
174.sp
175Note that specifying this parameter here will override the
176\m[blue]\fB\%smb.conf.5.html#\fR\m[]
177parameter in the
178smb\&.conf
179file\&.
180.RE
181.PP
182\-V|\-\-version
183.RS 4
184Prints the program version number\&.
185.RE
186.PP
187\-s|\-\-configfile <configuration file>
188.RS 4
189The 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
190smb\&.conf
191for more information\&. The default configuration file name is determined at compile time\&.
192.RE
193.PP
194\-l|\-\-log\-basename=logdirectory
195.RS 4
196Base directory name for log/debug files\&. The extension
197\fB"\&.progname"\fR
198will be appended (e\&.g\&. log\&.smbclient, log\&.smbd, etc\&.\&.\&.)\&. The log file is never removed by the client\&.
199.RE
200.PP
201\-h|\-\-help
202.RS 4
203Print a summary of command line options\&.
204.RE
205.PP
206\-i
207.RS 4
208Tells
209winbindd
210to not become a daemon and detach from the current terminal\&. This option is used by developers when interactive debugging of
211winbindd
212is required\&.
213winbindd
214also logs to standard output, as if the
215\-S
216parameter had been given\&.
217.RE
218.PP
219\-n
220.RS 4
221Disable 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\&.
222.RE
223.PP
224\-Y
225.RS 4
226Single 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\&.
227.RE
228.SH "NAME AND ID RESOLUTION"
229.PP
230Users 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
231winbindd
232performs\&.
233.PP
234As 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\&.
235.PP
236WARNING: 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\&.
237.SH "CONFIGURATION"
238.PP
239Configuration of the
240winbindd
241daemon is done through configuration parameters in the
242\fBsmb.conf\fR(5)
243file\&. All parameters should be specified in the [global] section of smb\&.conf\&.
244.sp
245.RS 4
246.ie n \{\
247\h'-04'\(bu\h'+03'\c
248.\}
249.el \{\
250.sp -1
251.IP \(bu 2.3
252.\}
253
254\m[blue]\fBwinbind separator\fR\m[]
255.RE
256.sp
257.RS 4
258.ie n \{\
259\h'-04'\(bu\h'+03'\c
260.\}
261.el \{\
262.sp -1
263.IP \(bu 2.3
264.\}
265
266\m[blue]\fBidmap config * : range\fR\m[]
267.RE
268.sp
269.RS 4
270.ie n \{\
271\h'-04'\(bu\h'+03'\c
272.\}
273.el \{\
274.sp -1
275.IP \(bu 2.3
276.\}
277
278\m[blue]\fBidmap config * : backend\fR\m[]
279.RE
280.sp
281.RS 4
282.ie n \{\
283\h'-04'\(bu\h'+03'\c
284.\}
285.el \{\
286.sp -1
287.IP \(bu 2.3
288.\}
289
290\m[blue]\fBwinbind cache time\fR\m[]
291.RE
292.sp
293.RS 4
294.ie n \{\
295\h'-04'\(bu\h'+03'\c
296.\}
297.el \{\
298.sp -1
299.IP \(bu 2.3
300.\}
301
302\m[blue]\fBwinbind enum users\fR\m[]
303.RE
304.sp
305.RS 4
306.ie n \{\
307\h'-04'\(bu\h'+03'\c
308.\}
309.el \{\
310.sp -1
311.IP \(bu 2.3
312.\}
313
314\m[blue]\fBwinbind enum groups\fR\m[]
315.RE
316.sp
317.RS 4
318.ie n \{\
319\h'-04'\(bu\h'+03'\c
320.\}
321.el \{\
322.sp -1
323.IP \(bu 2.3
324.\}
325
326\m[blue]\fBtemplate homedir\fR\m[]
327.RE
328.sp
329.RS 4
330.ie n \{\
331\h'-04'\(bu\h'+03'\c
332.\}
333.el \{\
334.sp -1
335.IP \(bu 2.3
336.\}
337
338\m[blue]\fBtemplate shell\fR\m[]
339.RE
340.sp
341.RS 4
342.ie n \{\
343\h'-04'\(bu\h'+03'\c
344.\}
345.el \{\
346.sp -1
347.IP \(bu 2.3
348.\}
349
350\m[blue]\fBwinbind use default domain\fR\m[]
351.RE
352.sp
353.RS 4
354.ie n \{\
355\h'-04'\(bu\h'+03'\c
356.\}
357.el \{\
358.sp -1
359.IP \(bu 2.3
360.\}
361
362\m[blue]\fBwinbind: rpc only\fR\m[]
363Setting this parameter forces winbindd to use RPC instead of LDAP to retrieve information from Domain Controllers\&.
364.RE
365.SH "EXAMPLE SETUP"
366.PP
367To 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\&.
368.PP
369In
370/etc/nsswitch\&.conf
371put the following:
372.sp
373.if n \{\
374.RS 4
375.\}
376.nf
377passwd: files winbind
378group: files winbind
379.fi
380.if n \{\
381.RE
382.\}
383.PP
384In
385/etc/pam\&.d/*
386replace the
387\fI auth\fR
388lines with something like this:
389.sp
390.if n \{\
391.RS 4
392.\}
393.nf
394auth required /lib/security/pam_securetty\&.so
395auth required /lib/security/pam_nologin\&.so
396auth sufficient /lib/security/pam_winbind\&.so
397auth required /lib/security/pam_unix\&.so \e
398 use_first_pass shadow nullok
399.fi
400.if n \{\
401.RE
402.\}
403.sp
404.if n \{\
405.sp
406.\}
407.RS 4
408.it 1 an-trap
409.nr an-no-space-flag 1
410.nr an-break-flag 1
411.br
412.ps +1
413\fBNote\fR
414.ps -1
415.br
416.PP
417The PAM module pam_unix has recently replaced the module pam_pwdb\&. Some Linux systems use the module pam_unix2 in place of pam_unix\&.
418.sp .5v
419.RE
420.PP
421Note in particular the use of the
422\fIsufficient \fR
423keyword and the
424\fIuse_first_pass\fR
425keyword\&.
426.PP
427Now replace the account lines with this:
428.PP
429account required /lib/security/pam_winbind\&.so
430.PP
431The next step is to join the domain\&. To do that use the
432net
433program like this:
434.PP
435net join \-S PDC \-U Administrator
436.PP
437The username after the
438\fI\-U\fR
439can be any Domain user that has administrator privileges on the machine\&. Substitute the name or IP of your PDC for "PDC"\&.
440.PP
441Next copy
442libnss_winbind\&.so
443to
444/lib
445and
446pam_winbind\&.so
447to
448/lib/security\&. A symbolic link needs to be made from
449/lib/libnss_winbind\&.so
450to
451/lib/libnss_winbind\&.so\&.2\&. If you are using an older version of glibc then the target of the link should be
452/lib/libnss_winbind\&.so\&.1\&.
453.PP
454Finally, setup a
455\fBsmb.conf\fR(5)
456containing directives like the following:
457.sp
458.if n \{\
459.RS 4
460.\}
461.nf
462[global]
463 winbind separator = +
464 winbind cache time = 10
465 template shell = /bin/bash
466 template homedir = /home/%D/%U
467 idmap config * : range = 10000\-20000
468 workgroup = DOMAIN
469 security = domain
470 password server = *
471.fi
472.if n \{\
473.RE
474.\}
475.PP
476Now 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
477getent passwd
478and
479getent group
480to confirm the correct operation of winbindd\&.
481.SH "NOTES"
482.PP
483The following notes are useful when configuring and running
484winbindd:
485.PP
486\fBnmbd\fR(8)
487must be running on the local machine for
488winbindd
489to work\&.
490.PP
491PAM 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\&.
492.PP
493If more than one UNIX machine is running
494winbindd, 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
495\m[blue]\fBidmap config * : backend\fR\m[]
496is configured\&.
497.PP
498If the the Windows NT SID to UNIX user and group id mapping file is damaged or destroyed then the mappings will be lost\&.
499.SH "SIGNALS"
500.PP
501The following signals can be used to manipulate the
502winbindd
503daemon\&.
504.PP
505SIGHUP
506.RS 4
507Reload the
508\fBsmb.conf\fR(5)
509file 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\&.
510.RE
511.PP
512SIGUSR2
513.RS 4
514The SIGUSR2 signal will cause
515winbindd
516to write status information to the winbind log file\&.
517.sp
518Log files are stored in the filename specified by the log file parameter\&.
519.RE
520.SH "FILES"
521.PP
522/etc/nsswitch\&.conf(5)
523.RS 4
524Name service switch configuration file\&.
525.RE
526.PP
527/tmp/\&.winbindd/pipe
528.RS 4
529The UNIX pipe over which clients communicate with the
530winbindd
531program\&. For security reasons, the winbind client will only attempt to connect to the winbindd daemon if both the
532/tmp/\&.winbindd
533directory and
534/tmp/\&.winbindd/pipe
535file are owned by root\&.
536.RE
537.PP
538$LOCKDIR/winbindd_privileged/pipe
539.RS 4
540The UNIX pipe over which \'privileged\' clients communicate with the
541winbindd
542program\&. For security reasons, access to some winbindd functions \- like those needed by the
543ntlm_auth
544utility \- 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
545$LOCKDIR/winbindd_privileged
546directory and
547$LOCKDIR/winbindd_privileged/pipe
548file are owned by root\&.
549.RE
550.PP
551/lib/libnss_winbind\&.so\&.X
552.RS 4
553Implementation of name service switch library\&.
554.RE
555.PP
556$LOCKDIR/winbindd_idmap\&.tdb
557.RS 4
558Storage for the Windows NT rid to UNIX user/group id mapping\&. The lock directory is specified when Samba is initially compiled using the
559\fI\-\-with\-lockdir\fR
560option\&. This directory is by default
561/usr/local/samba/var/locks\&.
562.RE
563.PP
564$LOCKDIR/winbindd_cache\&.tdb
565.RS 4
566Storage for cached user and group information\&.
567.RE
568.SH "VERSION"
569.PP
570This man page is correct for version 3 of the Samba suite\&.
571.SH "SEE ALSO"
572.PP
573nsswitch\&.conf(5),
574\fBsamba\fR(7),
575\fBwbinfo\fR(1),
576\fBntlm_auth\fR(8),
577\fBsmb.conf\fR(5),
578\fBpam_winbind\fR(8)
579.SH "AUTHOR"
580.PP
581The 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\&.
582.PP
583wbinfo
584and
585winbindd
586were written by Tim Potter\&.
587.PP
588The 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\&.
Note: See TracBrowser for help on using the repository browser.