Ignore:
Timestamp:
Jan 15, 2010, 8:21:06 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.10 (docs)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/docs/manpages/winbindd.8

    r342 r368  
     1'\" t
    12.\"     Title: winbindd
    23.\"    Author: [see the "AUTHOR" section]
    3 .\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
    4 .\"      Date: 10/12/2009
     4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
     5.\"      Date: 01/14/2010
    56.\"    Manual: System Administration tools
    67.\"    Source: Samba 3.3
    78.\"  Language: English
    89.\"
    9 .TH "WINBINDD" "8" "10/12/2009" "Samba 3\&.3" "System Administration tools"
    10 .\" -----------------------------------------------------------------
    11 .\" * (re)Define some macros
    12 .\" -----------------------------------------------------------------
    13 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    14 .\" toupper - uppercase a string (locale-aware)
    15 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    16 .de toupper
    17 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
    18 \\$*
    19 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
    20 ..
    21 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    22 .\" SH-xref - format a cross-reference to an SH section
    23 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    24 .de SH-xref
    25 .ie n \{\
    26 .\}
    27 .toupper \\$*
    28 .el \{\
    29 \\$*
    30 .\}
    31 ..
    32 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    33 .\" SH - level-one heading that works better for non-TTY output
    34 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    35 .de1 SH
    36 .\" put an extra blank line of space above the head in non-TTY output
    37 .if t \{\
    38 .sp 1
    39 .\}
    40 .sp \\n[PD]u
    41 .nr an-level 1
    42 .set-an-margin
    43 .nr an-prevailing-indent \\n[IN]
    44 .fi
    45 .in \\n[an-margin]u
    46 .ti 0
    47 .HTML-TAG ".NH \\n[an-level]"
    48 .it 1 an-trap
    49 .nr an-no-space-flag 1
    50 .nr an-break-flag 1
    51 \." make the size of the head bigger
    52 .ps +3
    53 .ft B
    54 .ne (2v + 1u)
    55 .ie n \{\
    56 .\" if n (TTY output), use uppercase
    57 .toupper \\$*
    58 .\}
    59 .el \{\
    60 .nr an-break-flag 0
    61 .\" if not n (not TTY), use normal case (not uppercase)
    62 \\$1
    63 .in \\n[an-margin]u
    64 .ti 0
    65 .\" if not n (not TTY), put a border/line under subheading
    66 .sp -.6
    67 \l'\n(.lu'
    68 .\}
    69 ..
    70 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    71 .\" SS - level-two heading that works better for non-TTY output
    72 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    73 .de1 SS
    74 .sp \\n[PD]u
    75 .nr an-level 1
    76 .set-an-margin
    77 .nr an-prevailing-indent \\n[IN]
    78 .fi
    79 .in \\n[IN]u
    80 .ti \\n[SN]u
    81 .it 1 an-trap
    82 .nr an-no-space-flag 1
    83 .nr an-break-flag 1
    84 .ps \\n[PS-SS]u
    85 \." make the size of the head bigger
    86 .ps +2
    87 .ft B
    88 .ne (2v + 1u)
    89 .if \\n[.$] \&\\$*
    90 ..
    91 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    92 .\" BB/BE - put background/screen (filled box) around block of text
    93 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    94 .de BB
    95 .if t \{\
    96 .sp -.5
    97 .br
    98 .in +2n
    99 .ll -2n
    100 .gcolor red
    101 .di BX
    102 .\}
    103 ..
    104 .de EB
    105 .if t \{\
    106 .if "\\$2"adjust-for-leading-newline" \{\
    107 .sp -1
    108 .\}
    109 .br
    110 .di
    111 .in
    112 .ll
    113 .gcolor
    114 .nr BW \\n(.lu-\\n(.i
    115 .nr BH \\n(dn+.5v
    116 .ne \\n(BHu+.5v
    117 .ie "\\$2"adjust-for-leading-newline" \{\
    118 \M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
    119 .\}
    120 .el \{\
    121 \M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
    122 .\}
    123 .in 0
    124 .sp -.5v
    125 .nf
    126 .BX
    127 .in
    128 .sp .5v
    129 .fi
    130 .\}
    131 ..
    132 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    133 .\" BM/EM - put colored marker in margin next to block of text
    134 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    135 .de BM
    136 .if t \{\
    137 .br
    138 .ll -2n
    139 .gcolor red
    140 .di BX
    141 .\}
    142 ..
    143 .de EM
    144 .if t \{\
    145 .br
    146 .di
    147 .ll
    148 .gcolor
    149 .nr BH \\n(dn
    150 .ne \\n(BHu
    151 \M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[]
    152 .in 0
    153 .nf
    154 .BX
    155 .in
    156 .fi
    157 .\}
    158 ..
     10.TH "WINBINDD" "8" "01/14/2010" "Samba 3\&.3" "System Administration tools"
    15911.\" -----------------------------------------------------------------
    16012.\" * set default formatting
     
    16719.\" * MAIN CONTENT STARTS HERE *
    16820.\" -----------------------------------------------------------------
    169 .SH "Name"
     21.SH "NAME"
    17022winbindd \- Name Service Switch daemon for resolving names from NT servers
    171 .SH "Synopsis"
    172 .fam C
     23.SH "SYNOPSIS"
    17324.HP \w'\ 'u
    174 \FCwinbindd\F[] [\-D] [\-F] [\-S] [\-i] [\-Y] [\-d\ <debug\ level>] [\-s\ <smb\ config\ file>] [\-n]
    175 .fam
     25winbindd [\-D] [\-F] [\-S] [\-i] [\-Y] [\-d\ <debug\ level>] [\-s\ <smb\ config\ file>] [\-n]
    17626.SH "DESCRIPTION"
    17727.PP
     
    18030suite\&.
    18131.PP
    182 \FCwinbindd\F[]
     32winbindd
    18333is 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
    184 \FCntlm_auth\F[]
     34ntlm_auth
    18535and to Samba itself\&.
    18636.PP
    18737Even if winbind is not used for nsswitch, it still provides a service to
    188 \FCsmbd\F[],
    189 \FCntlm_auth\F[]
     38smbd,
     39ntlm_auth
    19040and the
    191 \FCpam_winbind\&.so\F[]
     41pam_winbind\&.so
    19242PAM module, by managing connections to domain controllers\&. In this configuraiton the
    19343\m[blue]\fBidmap uid\fR\m[]
     
    19747.PP
    19848The 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
    199 \FC/etc/nsswitch\&.conf\F[]
     49/etc/nsswitch\&.conf
    20050file\&. 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\&.
    20151.PP
    20252The service provided by
    203 \FCwinbindd\F[]
     53winbindd
    20454is 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\&.
    20555.PP
    20656The
    207 \FCpam_winbind\F[]
     57pam_winbind
    20858module supports the
    20959\fIauth\fR,
     
    21464\fIaccount\fR
    21565module 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
    216 \FClibnss_winbind\F[]
     66libnss_winbind
    21767library has been correctly installed, or an alternate source of names configured, this should always succeed\&.
    21868.PP
     
    22272.RS 4
    22373If 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
    224 \FCwinbindd\F[]
     74winbindd
    22575is executed on the command line of a shell\&.
    22676.RE
     
    22979.RS 4
    23080This feature is only available on IRIX\&. User information traditionally stored in the
    231 \FChosts(5)\F[]
     81hosts(5)
    23282file and used by
    233 \FCgethostbyname(3)\F[]
     83gethostbyname(3)
    23484functions\&. Names are resolved through the WINS server or by broadcast\&.
    23585.RE
     
    23888.RS 4
    23989User information traditionally stored in the
    240 \FCpasswd(5)\F[]
     90passwd(5)
    24191file and used by
    242 \FCgetpwent(3)\F[]
     92getpwent(3)
    24393functions\&.
    24494.RE
     
    24797.RS 4
    24898Group information traditionally stored in the
    249 \FCgroup(5)\F[]
     99group(5)
    250100file and used by
    251 \FCgetgrent(3)\F[]
     101getgrent(3)
    252102functions\&.
    253103.RE
    254104.PP
    255105For example, the following simple configuration in the
    256 \FC/etc/nsswitch\&.conf\F[]
     106/etc/nsswitch\&.conf
    257107file can be used to initially resolve user and group information from
    258 \FC/etc/passwd \F[]
     108/etc/passwd
    259109and
    260 \FC/etc/group\F[]
     110/etc/group
    261111and then from the Windows NT server\&.
    262112.sp
     
    264114.RS 4
    265115.\}
    266 .fam C
    267 .ps -1
    268116.nf
    269 .if t \{\
    270 .sp -1
    271 .\}
    272 .BB lightgray adjust-for-leading-newline
    273 .sp -1
    274 
    275117passwd:         files winbind
    276118group:          files winbind
     
    280122hosts:          files dns wins
    281123
    282 .EB lightgray adjust-for-leading-newline
    283 .if t \{\
    284 .sp 1
    285 .\}
    286124.fi
    287 .fam
    288 .ps +1
    289125.if n \{\
    290126.RE
     
    292128.PP
    293129The following simple configuration in the
    294 \FC/etc/nsswitch\&.conf\F[]
     130/etc/nsswitch\&.conf
    295131file can be used to initially resolve hostnames from
    296 \FC/etc/hosts\F[]
     132/etc/hosts
    297133and then from the WINS server\&.
    298134.sp
     
    300136.RS 4
    301137.\}
    302 .fam C
    303 .ps -1
    304138.nf
    305 .if t \{\
    306 .sp -1
    307 .\}
    308 .BB lightgray adjust-for-leading-newline
    309 .sp -1
    310 
    311139hosts:          files wins
    312 .EB lightgray adjust-for-leading-newline
    313 .if t \{\
    314 .sp 1
    315 .\}
    316140.fi
    317 .fam
    318 .ps +1
    319141.if n \{\
    320142.RE
     
    325147.RS 4
    326148If specified, this parameter causes the main
    327 \FCwinbindd\F[]
     149winbindd
    328150process 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
    329 \FCwinbindd\F[]
     151winbindd
    330152under process supervisors such as
    331 \FCsupervise\F[]
     153supervise
    332154and
    333 \FCsvscan\F[]
     155svscan
    334156from Daniel J\&. Bernstein\'s
    335 \FCdaemontools\F[]
     157daemontools
    336158package, or the AIX process monitor\&.
    337159.RE
     
    340162.RS 4
    341163If specified, this parameter causes
    342 \FCwinbindd\F[]
     164winbindd
    343165to log to standard output rather than a file\&.
    344166.RE
     
    354176.sp
    355177Note that specifying this parameter here will override the
    356 \m[blue]\fBlog level\fR\m[]
     178\m[blue]\fB\%smb.conf.5.html#\fR\m[]
    357179parameter in the
    358 \FCsmb\&.conf\F[]
     180smb\&.conf
    359181file\&.
    360182.RE
    361183.PP
    362 \-V
     184\-V|\-\-version
    363185.RS 4
    364186Prints the program version number\&.
    365187.RE
    366188.PP
    367 \-s <configuration file>
     189\-s|\-\-configfile <configuration file>
    368190.RS 4
    369191The 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
    370 \FCsmb\&.conf\F[]
     192smb\&.conf
    371193for more information\&. The default configuration file name is determined at compile time\&.
    372194.RE
     
    387209.RS 4
    388210Tells
    389 \FCwinbindd\F[]
     211winbindd
    390212to not become a daemon and detach from the current terminal\&. This option is used by developers when interactive debugging of
    391 \FCwinbindd\F[]
     213winbindd
    392214is required\&.
    393 \FCwinbindd\F[]
     215winbindd
    394216also logs to standard output, as if the
    395 \FC\-S\F[]
     217\-S
    396218parameter had been given\&.
    397219.RE
     
    409231.PP
    410232Users 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
    411 \FC winbindd\F[]
     233winbindd
    412234performs\&.
    413235.PP
     
    418240.PP
    419241Configuration of the
    420 \FCwinbindd\F[]
     242winbindd
    421243daemon is done through configuration parameters in the
    422244\fBsmb.conf\fR(5)
     
    559381.PP
    560382In
    561 \FC/etc/nsswitch\&.conf\F[]
     383/etc/nsswitch\&.conf
    562384put the following:
    563385.sp
     
    565387.RS 4
    566388.\}
    567 .fam C
    568 .ps -1
    569389.nf
    570 .if t \{\
    571 .sp -1
    572 .\}
    573 .BB lightgray adjust-for-leading-newline
    574 .sp -1
    575 
    576390passwd: files winbind
    577391group:  files winbind
    578 .EB lightgray adjust-for-leading-newline
    579 .if t \{\
    580 .sp 1
    581 .\}
    582392.fi
    583 .fam
    584 .ps +1
    585393.if n \{\
    586394.RE
     
    588396.PP
    589397In
    590 \FC/etc/pam\&.d/*\F[]
     398/etc/pam\&.d/*
    591399replace the
    592400\fI auth\fR
     
    596404.RS 4
    597405.\}
    598 .fam C
    599 .ps -1
    600406.nf
    601 .if t \{\
    602 .sp -1
    603 .\}
    604 .BB lightgray adjust-for-leading-newline
    605 .sp -1
    606 
    607407auth  required    /lib/security/pam_securetty\&.so
    608408auth  required    /lib/security/pam_nologin\&.so
     
    610410auth  required    /lib/security/pam_unix\&.so \e
    611411                  use_first_pass shadow nullok
    612 .EB lightgray adjust-for-leading-newline
    613 .if t \{\
    614 .sp 1
    615 .\}
    616412.fi
    617 .fam
    618 .ps +1
    619 .if n \{\
    620 .RE
    621 .\}
    622 .sp
    623 .if n \{\
    624 .sp
    625 .\}
    626 .RS 4
    627 .BM yellow
     413.if n \{\
     414.RE
     415.\}
     416.sp
     417.if n \{\
     418.sp
     419.\}
     420.RS 4
    628421.it 1 an-trap
    629422.nr an-no-space-flag 1
     
    637430The PAM module pam_unix has recently replaced the module pam_pwdb\&. Some Linux systems use the module pam_unix2 in place of pam_unix\&.
    638431.sp .5v
    639 .EM yellow
    640432.RE
    641433.PP
     
    648440Now replace the account lines with this:
    649441.PP
    650 \FCaccount required /lib/security/pam_winbind\&.so \F[]
     442account required /lib/security/pam_winbind\&.so
    651443.PP
    652444The next step is to join the domain\&. To do that use the
    653 \FCnet\F[]
     445net
    654446program like this:
    655447.PP
    656 \FCnet join \-S PDC \-U Administrator\F[]
     448net join \-S PDC \-U Administrator
    657449.PP
    658450The username after the
     
    661453.PP
    662454Next copy
    663 \FClibnss_winbind\&.so\F[]
     455libnss_winbind\&.so
    664456to
    665 \FC/lib\F[]
     457/lib
    666458and
    667 \FCpam_winbind\&.so \F[]
     459pam_winbind\&.so
    668460to
    669 \FC/lib/security\F[]\&. A symbolic link needs to be made from
    670 \FC/lib/libnss_winbind\&.so\F[]
     461/lib/security\&. A symbolic link needs to be made from
     462/lib/libnss_winbind\&.so
    671463to
    672 \FC/lib/libnss_winbind\&.so\&.2\F[]\&. If you are using an older version of glibc then the target of the link should be
    673 \FC/lib/libnss_winbind\&.so\&.1\F[]\&.
     464/lib/libnss_winbind\&.so\&.2\&. If you are using an older version of glibc then the target of the link should be
     465/lib/libnss_winbind\&.so\&.1\&.
    674466.PP
    675467Finally, setup a
     
    680472.RS 4
    681473.\}
    682 .fam C
    683 .ps -1
    684474.nf
    685 .if t \{\
    686 .sp -1
    687 .\}
    688 .BB lightgray adjust-for-leading-newline
    689 .sp -1
    690 
    691475[global]
    692476        winbind separator = +
     
    699483        security = domain
    700484        password server = *
    701 .EB lightgray adjust-for-leading-newline
    702 .if t \{\
    703 .sp 1
    704 .\}
    705485.fi
    706 .fam
    707 .ps +1
    708486.if n \{\
    709487.RE
     
    711489.PP
    712490Now 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
    713 \FCgetent passwd\F[]
     491getent passwd
    714492and
    715 \FCgetent group \F[]
     493getent group
    716494to confirm the correct operation of winbindd\&.
    717495.SH "NOTES"
    718496.PP
    719497The following notes are useful when configuring and running
    720 \FCwinbindd\F[]:
     498winbindd:
    721499.PP
    722500\fBnmbd\fR(8)
    723501must be running on the local machine for
    724 \FCwinbindd\F[]
     502winbindd
    725503to work\&.
    726504.PP
     
    728506.PP
    729507If more than one UNIX machine is running
    730 \FCwinbindd\F[], 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
     508winbindd, 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
    731509\m[blue]\fBidmap backend\fR\m[]
    732510is configured\&.
     
    736514.PP
    737515The following signals can be used to manipulate the
    738 \FCwinbindd\F[]
     516winbindd
    739517daemon\&.
    740518.PP
     
    749527.RS 4
    750528The SIGUSR2 signal will cause
    751 \FC winbindd\F[]
     529winbindd
    752530to write status information to the winbind log file\&.
    753531.sp
     
    756534.SH "FILES"
    757535.PP
    758 \FC/etc/nsswitch\&.conf(5)\F[]
     536/etc/nsswitch\&.conf(5)
    759537.RS 4
    760538Name service switch configuration file\&.
     
    764542.RS 4
    765543The UNIX pipe over which clients communicate with the
    766 \FCwinbindd\F[]
     544winbindd
    767545program\&. For security reasons, the winbind client will only attempt to connect to the winbindd daemon if both the
    768 \FC/tmp/\&.winbindd\F[]
     546/tmp/\&.winbindd
    769547directory and
    770 \FC/tmp/\&.winbindd/pipe\F[]
     548/tmp/\&.winbindd/pipe
    771549file are owned by root\&.
    772550.RE
     
    775553.RS 4
    776554The UNIX pipe over which \'privileged\' clients communicate with the
    777 \FCwinbindd\F[]
     555winbindd
    778556program\&. For security reasons, access to some winbindd functions \- like those needed by the
    779 \FCntlm_auth\F[]
     557ntlm_auth
    780558utility \- 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
    781 \FC$LOCKDIR/winbindd_privileged\F[]
     559$LOCKDIR/winbindd_privileged
    782560directory and
    783 \FC$LOCKDIR/winbindd_privileged/pipe\F[]
     561$LOCKDIR/winbindd_privileged/pipe
    784562file are owned by root\&.
    785563.RE
     
    795573\fI\-\-with\-lockdir\fR
    796574option\&. This directory is by default
    797 \FC/usr/local/samba/var/locks \F[]\&.
     575/usr/local/samba/var/locks\&.
    798576.RE
    799577.PP
     
    807585.SH "SEE ALSO"
    808586.PP
    809 \FCnsswitch\&.conf(5)\F[],
     587nsswitch\&.conf(5),
    810588\fBsamba\fR(7),
    811589\fBwbinfo\fR(1),
     
    817595The 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\&.
    818596.PP
    819 \FCwbinfo\F[]
     597wbinfo
    820598and
    821 \FCwinbindd\F[]
     599winbindd
    822600were written by Tim Potter\&.
    823601.PP
Note: See TracChangeset for help on using the changeset viewer.