Ignore:
Timestamp:
Apr 9, 2010, 3:51:41 PM (15 years ago)
Author:
Silvan Scherrer
Message:

Samba 3.5.x: trunk update to 3.5.2

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/docs/manpages/winbindd.8

    r414 r429  
    1 '\" t
    21.\"     Title: winbindd
    32.\"    Author: [see the "AUTHOR" section]
    4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
    5 .\"      Date: 02/19/2010
     3.\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
     4.\"      Date: 03/30/2010
    65.\"    Manual: System Administration tools
    76.\"    Source: Samba 3.5
    87.\"  Language: English
    98.\"
    10 .TH "WINBINDD" "8" "02/19/2010" "Samba 3\&.5" "System Administration tools"
     9.TH "WINBINDD" "8" "03/30/2010" "Samba 3\&.5" "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..
    11159.\" -----------------------------------------------------------------
    12160.\" * set default formatting
     
    19167.\" * MAIN CONTENT STARTS HERE *
    20168.\" -----------------------------------------------------------------
    21 .SH "NAME"
     169.SH "Name"
    22170winbindd \- Name Service Switch daemon for resolving names from NT servers
    23 .SH "SYNOPSIS"
     171.SH "Synopsis"
     172.fam C
    24173.HP \w'\ 'u
    25 winbindd [\-D] [\-F] [\-S] [\-i] [\-Y] [\-d\ <debug\ level>] [\-s\ <smb\ config\ file>] [\-n]
     174\FCwinbindd\F[] [\-D] [\-F] [\-S] [\-i] [\-Y] [\-d\ <debug\ level>] [\-s\ <smb\ config\ file>] [\-n]
     175.fam
    26176.SH "DESCRIPTION"
    27177.PP
     
    30180suite\&.
    31181.PP
    32 winbindd
     182\FCwinbindd\F[]
    33183is 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
    34 ntlm_auth
     184\FCntlm_auth\F[]
    35185and to Samba itself\&.
    36186.PP
    37187Even if winbind is not used for nsswitch, it still provides a service to
    38 smbd,
    39 ntlm_auth
     188\FCsmbd\F[],
     189\FCntlm_auth\F[]
    40190and the
    41 pam_winbind\&.so
     191\FCpam_winbind\&.so\F[]
    42192PAM module, by managing connections to domain controllers\&. In this configuraiton the
    43193\m[blue]\fBidmap uid\fR\m[]
     
    47197.PP
    48198The 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
    49 /etc/nsswitch\&.conf
     199\FC/etc/nsswitch\&.conf\F[]
    50200file\&. 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\&.
    51201.PP
    52202The service provided by
    53 winbindd
     203\FCwinbindd\F[]
    54204is 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\&.
    55205.PP
    56206The
    57 pam_winbind
     207\FCpam_winbind\F[]
    58208module supports the
    59209\fIauth\fR,
     
    64214\fIaccount\fR
    65215module 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
    66 libnss_winbind
     216\FClibnss_winbind\F[]
    67217library has been correctly installed, or an alternate source of names configured, this should always succeed\&.
    68218.PP
     
    72222.RS 4
    73223If 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
    74 winbindd
     224\FCwinbindd\F[]
    75225is executed on the command line of a shell\&.
    76226.RE
     
    79229.RS 4
    80230This feature is only available on IRIX\&. User information traditionally stored in the
    81 hosts(5)
     231\FChosts(5)\F[]
    82232file and used by
    83 gethostbyname(3)
     233\FCgethostbyname(3)\F[]
    84234functions\&. Names are resolved through the WINS server or by broadcast\&.
    85235.RE
     
    88238.RS 4
    89239User information traditionally stored in the
    90 passwd(5)
     240\FCpasswd(5)\F[]
    91241file and used by
    92 getpwent(3)
     242\FCgetpwent(3)\F[]
    93243functions\&.
    94244.RE
     
    97247.RS 4
    98248Group information traditionally stored in the
    99 group(5)
     249\FCgroup(5)\F[]
    100250file and used by
    101 getgrent(3)
     251\FCgetgrent(3)\F[]
    102252functions\&.
    103253.RE
    104254.PP
    105255For example, the following simple configuration in the
    106 /etc/nsswitch\&.conf
     256\FC/etc/nsswitch\&.conf\F[]
    107257file can be used to initially resolve user and group information from
    108 /etc/passwd
     258\FC/etc/passwd \F[]
    109259and
    110 /etc/group
     260\FC/etc/group\F[]
    111261and then from the Windows NT server\&.
    112262.sp
     
    114264.RS 4
    115265.\}
     266.fam C
     267.ps -1
    116268.nf
     269.if t \{\
     270.sp -1
     271.\}
     272.BB lightgray adjust-for-leading-newline
     273.sp -1
     274
    117275passwd:         files winbind
    118276group:          files winbind
     
    122280hosts:          files dns wins
    123281
     282.EB lightgray adjust-for-leading-newline
     283.if t \{\
     284.sp 1
     285.\}
    124286.fi
     287.fam
     288.ps +1
    125289.if n \{\
    126290.RE
     
    128292.PP
    129293The following simple configuration in the
    130 /etc/nsswitch\&.conf
     294\FC/etc/nsswitch\&.conf\F[]
    131295file can be used to initially resolve hostnames from
    132 /etc/hosts
     296\FC/etc/hosts\F[]
    133297and then from the WINS server\&.
    134298.sp
     
    136300.RS 4
    137301.\}
     302.fam C
     303.ps -1
    138304.nf
     305.if t \{\
     306.sp -1
     307.\}
     308.BB lightgray adjust-for-leading-newline
     309.sp -1
     310
    139311hosts:          files wins
     312.EB lightgray adjust-for-leading-newline
     313.if t \{\
     314.sp 1
     315.\}
    140316.fi
     317.fam
     318.ps +1
    141319.if n \{\
    142320.RE
     
    147325.RS 4
    148326If specified, this parameter causes the main
    149 winbindd
     327\FCwinbindd\F[]
    150328process 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
    151 winbindd
     329\FCwinbindd\F[]
    152330under process supervisors such as
    153 supervise
     331\FCsupervise\F[]
    154332and
    155 svscan
     333\FCsvscan\F[]
    156334from Daniel J\&. Bernstein\'s
    157 daemontools
     335\FCdaemontools\F[]
    158336package, or the AIX process monitor\&.
    159337.RE
     
    162340.RS 4
    163341If specified, this parameter causes
    164 winbindd
     342\FCwinbindd\F[]
    165343to log to standard output rather than a file\&.
    166344.RE
     
    178356\m[blue]\fB\%smb.conf.5.html#\fR\m[]
    179357parameter in the
    180 smb\&.conf
     358\FCsmb\&.conf\F[]
    181359file\&.
    182360.RE
     
    190368.RS 4
    191369The 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
    192 smb\&.conf
     370\FCsmb\&.conf\F[]
    193371for more information\&. The default configuration file name is determined at compile time\&.
    194372.RE
     
    209387.RS 4
    210388Tells
    211 winbindd
     389\FCwinbindd\F[]
    212390to not become a daemon and detach from the current terminal\&. This option is used by developers when interactive debugging of
    213 winbindd
     391\FCwinbindd\F[]
    214392is required\&.
    215 winbindd
     393\FCwinbindd\F[]
    216394also logs to standard output, as if the
    217 \-S
     395\FC\-S\F[]
    218396parameter had been given\&.
    219397.RE
     
    231409.PP
    232410Users 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
    233 winbindd
     411\FC winbindd\F[]
    234412performs\&.
    235413.PP
     
    240418.PP
    241419Configuration of the
    242 winbindd
     420\FCwinbindd\F[]
    243421daemon is done through configuration parameters in the
    244422\fBsmb.conf\fR(5)
     
    381559.PP
    382560In
    383 /etc/nsswitch\&.conf
     561\FC/etc/nsswitch\&.conf\F[]
    384562put the following:
    385563.sp
     
    387565.RS 4
    388566.\}
     567.fam C
     568.ps -1
    389569.nf
     570.if t \{\
     571.sp -1
     572.\}
     573.BB lightgray adjust-for-leading-newline
     574.sp -1
     575
    390576passwd: files winbind
    391577group:  files winbind
     578.EB lightgray adjust-for-leading-newline
     579.if t \{\
     580.sp 1
     581.\}
    392582.fi
     583.fam
     584.ps +1
    393585.if n \{\
    394586.RE
     
    396588.PP
    397589In
    398 /etc/pam\&.d/*
     590\FC/etc/pam\&.d/*\F[]
    399591replace the
    400592\fI auth\fR
     
    404596.RS 4
    405597.\}
     598.fam C
     599.ps -1
    406600.nf
     601.if t \{\
     602.sp -1
     603.\}
     604.BB lightgray adjust-for-leading-newline
     605.sp -1
     606
    407607auth  required    /lib/security/pam_securetty\&.so
    408608auth  required    /lib/security/pam_nologin\&.so
     
    410610auth  required    /lib/security/pam_unix\&.so \e
    411611                  use_first_pass shadow nullok
     612.EB lightgray adjust-for-leading-newline
     613.if t \{\
     614.sp 1
     615.\}
    412616.fi
    413 .if n \{\
    414 .RE
    415 .\}
    416 .sp
    417 .if n \{\
    418 .sp
    419 .\}
    420 .RS 4
     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
    421628.it 1 an-trap
    422629.nr an-no-space-flag 1
     
    430637The PAM module pam_unix has recently replaced the module pam_pwdb\&. Some Linux systems use the module pam_unix2 in place of pam_unix\&.
    431638.sp .5v
     639.EM yellow
    432640.RE
    433641.PP
     
    440648Now replace the account lines with this:
    441649.PP
    442 account required /lib/security/pam_winbind\&.so
     650\FCaccount required /lib/security/pam_winbind\&.so \F[]
    443651.PP
    444652The next step is to join the domain\&. To do that use the
    445 net
     653\FCnet\F[]
    446654program like this:
    447655.PP
    448 net join \-S PDC \-U Administrator
     656\FCnet join \-S PDC \-U Administrator\F[]
    449657.PP
    450658The username after the
     
    453661.PP
    454662Next copy
    455 libnss_winbind\&.so
     663\FClibnss_winbind\&.so\F[]
    456664to
    457 /lib
     665\FC/lib\F[]
    458666and
    459 pam_winbind\&.so
     667\FCpam_winbind\&.so \F[]
    460668to
    461 /lib/security\&. A symbolic link needs to be made from
    462 /lib/libnss_winbind\&.so
     669\FC/lib/security\F[]\&. A symbolic link needs to be made from
     670\FC/lib/libnss_winbind\&.so\F[]
    463671to
    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\&.
     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[]\&.
    466674.PP
    467675Finally, setup a
     
    472680.RS 4
    473681.\}
     682.fam C
     683.ps -1
    474684.nf
     685.if t \{\
     686.sp -1
     687.\}
     688.BB lightgray adjust-for-leading-newline
     689.sp -1
     690
    475691[global]
    476692        winbind separator = +
     
    483699        security = domain
    484700        password server = *
     701.EB lightgray adjust-for-leading-newline
     702.if t \{\
     703.sp 1
     704.\}
    485705.fi
     706.fam
     707.ps +1
    486708.if n \{\
    487709.RE
     
    489711.PP
    490712Now 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
    491 getent passwd
     713\FCgetent passwd\F[]
    492714and
    493 getent group
     715\FCgetent group \F[]
    494716to confirm the correct operation of winbindd\&.
    495717.SH "NOTES"
    496718.PP
    497719The following notes are useful when configuring and running
    498 winbindd:
     720\FCwinbindd\F[]:
    499721.PP
    500722\fBnmbd\fR(8)
    501723must be running on the local machine for
    502 winbindd
     724\FCwinbindd\F[]
    503725to work\&.
    504726.PP
     
    506728.PP
    507729If more than one UNIX machine is running
    508 winbindd, 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
     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
    509731\m[blue]\fBidmap backend\fR\m[]
    510732is configured\&.
     
    514736.PP
    515737The following signals can be used to manipulate the
    516 winbindd
     738\FCwinbindd\F[]
    517739daemon\&.
    518740.PP
     
    527749.RS 4
    528750The SIGUSR2 signal will cause
    529 winbindd
     751\FC winbindd\F[]
    530752to write status information to the winbind log file\&.
    531753.sp
     
    534756.SH "FILES"
    535757.PP
    536 /etc/nsswitch\&.conf(5)
     758\FC/etc/nsswitch\&.conf(5)\F[]
    537759.RS 4
    538760Name service switch configuration file\&.
     
    542764.RS 4
    543765The UNIX pipe over which clients communicate with the
    544 winbindd
     766\FCwinbindd\F[]
    545767program\&. For security reasons, the winbind client will only attempt to connect to the winbindd daemon if both the
    546 /tmp/\&.winbindd
     768\FC/tmp/\&.winbindd\F[]
    547769directory and
    548 /tmp/\&.winbindd/pipe
     770\FC/tmp/\&.winbindd/pipe\F[]
    549771file are owned by root\&.
    550772.RE
     
    553775.RS 4
    554776The UNIX pipe over which \'privileged\' clients communicate with the
    555 winbindd
     777\FCwinbindd\F[]
    556778program\&. For security reasons, access to some winbindd functions \- like those needed by the
    557 ntlm_auth
     779\FCntlm_auth\F[]
    558780utility \- 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
    559 $LOCKDIR/winbindd_privileged
     781\FC$LOCKDIR/winbindd_privileged\F[]
    560782directory and
    561 $LOCKDIR/winbindd_privileged/pipe
     783\FC$LOCKDIR/winbindd_privileged/pipe\F[]
    562784file are owned by root\&.
    563785.RE
     
    573795\fI\-\-with\-lockdir\fR
    574796option\&. This directory is by default
    575 /usr/local/samba/var/locks\&.
     797\FC/usr/local/samba/var/locks \F[]\&.
    576798.RE
    577799.PP
     
    585807.SH "SEE ALSO"
    586808.PP
    587 nsswitch\&.conf(5),
     809\FCnsswitch\&.conf(5)\F[],
    588810\fBsamba\fR(7),
    589811\fBwbinfo\fR(1),
     
    595817The 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\&.
    596818.PP
    597 wbinfo
     819\FCwbinfo\F[]
    598820and
    599 winbindd
     821\FCwinbindd\F[]
    600822were written by Tim Potter\&.
    601823.PP
Note: See TracChangeset for help on using the changeset viewer.