Ignore:
Timestamp:
Mar 1, 2010, 3:05:48 PM (15 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3.x to 3.3.11

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/docs/manpages/ntlm_auth.1

    r368 r411  
    1 '\" t
    21.\"     Title: ntlm_auth
    32.\"    Author: [see the "AUTHOR" section]
    4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
    5 .\"      Date: 01/14/2010
     3.\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
     4.\"      Date: 02/22/2010
    65.\"    Manual: User Commands
    76.\"    Source: Samba 3.3
    87.\"  Language: English
    98.\"
    10 .TH "NTLM_AUTH" "1" "01/14/2010" "Samba 3\&.3" "User Commands"
     9.TH "NTLM_AUTH" "1" "02/22/2010" "Samba 3\&.3" "User Commands"
     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"
    22170ntlm_auth \- tool to allow external access to Winbind\'s NTLM authentication function
    23 .SH "SYNOPSIS"
     171.SH "Synopsis"
     172.fam C
    24173.HP \w'\ 'u
    25 ntlm_auth [\-d\ debuglevel] [\-l\ logdir] [\-s\ <smb\ config\ file>]
     174\FCntlm_auth\F[] [\-d\ debuglevel] [\-l\ logdir] [\-s\ <smb\ config\ file>]
     175.fam
    26176.SH "DESCRIPTION"
    27177.PP
     
    30180suite\&.
    31181.PP
    32 ntlm_auth
    33 is a helper utility that authenticates users using NT/LM authentication\&. It returns 0 if the users is authenticated successfully and 1 if access was denied\&. ntlm_auth uses winbind to access the user and authentication data for a domain\&. This utility is only indended to be used by other programs (currently
     182\FCntlm_auth\F[]
     183is a helper utility that authenticates users using NT/LM authentication\&. It returns 0 if the users is authenticated successfully and 1 if access was denied\&. ntlm_auth uses winbind to access the user and authentication data for a domain\&. This utility is only intended to be used by other programs (currently
    34184Squid
    35185and
     
    42192.PP
    43193Some of these commands also require access to the directory
    44 winbindd_privileged
     194\FCwinbindd_privileged\F[]
    45195in
    46 $LOCKDIR\&. This should be done either by running this command as root or providing group access to the
    47 winbindd_privileged
     196\FC$LOCKDIR\F[]\&. This should be done either by running this command as root or providing group access to the
     197\FCwinbindd_privileged\F[]
    48198directory\&. For security reasons, this directory should not be world\-accessable\&.
    49199.SH "OPTIONS"
     
    68218.sp
    69219Requires access to the directory
    70 winbindd_privileged
     220\FCwinbindd_privileged\F[]
    71221in
    72 $LOCKDIR\&. The protocol used is described here:
     222\FC$LOCKDIR\F[]\&. The protocol used is described here:
    73223http://devel\&.squid\-cache\&.org/ntlm/squid_helper_protocol\&.html\&. This protocol has been extended to allow the NTLMSSP Negotiate packet to be included as an argument to the
    74 YR
     224\FCYR\F[]
    75225command\&. (Thus avoiding loss of information in the protocol exchange)\&.
    76226.RE
     
    81231.sp
    82232This helper is a client, and as such may be run by any user\&. The protocol used is effectively the reverse of the previous protocol\&. A
    83 YR
     233\FCYR\F[]
    84234command (without any arguments) starts the authentication exchange\&.
    85235.RE
     
    88238.RS 4
    89239Server\-side helper that implements GSS\-SPNEGO\&. This uses a protocol that is almost the same as
    90 squid\-2\&.5\-ntlmssp, but has some subtle differences that are undocumented outside the source at this stage\&.
     240\FCsquid\-2\&.5\-ntlmssp\F[], but has some subtle differences that are undocumented outside the source at this stage\&.
    91241.sp
    92242Requires access to the directory
    93 winbindd_privileged
     243\FCwinbindd_privileged\F[]
    94244in
    95 $LOCKDIR\&.
     245\FC$LOCKDIR\F[]\&.
    96246.RE
    97247.PP
     
    106256.sp
    107257This protocol consists of lines in the form:
    108 Parameter: value
     258\FCParameter: value\F[]
    109259and
    110 Parameter:: Base64\-encode value\&. The presence of a single period
    111 \&.
     260\FCParameter:: Base64\-encode value\F[]\&. The presence of a single period
     261\FC\&.\F[]
    112262indicates that one side has finished supplying data to the other\&. (Which in turn could cause the helper to authenticate the user)\&.
    113263.sp
     
    143293.RS 4
    144294The 8 byte
    145 LANMAN Challenge
     295\FCLANMAN Challenge\F[]
    146296value, generated randomly by the server, or (in cases such as MSCHAPv2) generated in some way by both the server and the client\&.
    147297.PP \fBExample\ \&7.\ \&\fR LANMAN\-Challege: 0102030405060708
     
    151301.RS 4
    152302The 24 byte
    153 LANMAN Response
     303\FCLANMAN Response\F[]
    154304value, calculated from the user\'s password and the supplied
    155 LANMAN Challenge\&. Typically, this is provided over the network by a client wishing to authenticate\&.
     305\FCLANMAN Challenge\F[]\&. Typically, this is provided over the network by a client wishing to authenticate\&.
    156306.PP \fBExample\ \&8.\ \&\fR LANMAN\-Response: 0102030405060708090A0B0C0D0E0F101112131415161718
    157307.RE
     
    160310.RS 4
    161311The >= 24 byte
    162 NT Response
     312\FCNT Response\F[]
    163313calculated from the user\'s password and the supplied
    164 LANMAN Challenge\&. Typically, this is provided over the network by a client wishing to authenticate\&.
     314\FCLANMAN Challenge\F[]\&. Typically, this is provided over the network by a client wishing to authenticate\&.
    165315.PP \fBExample\ \&9.\ \&\fR NT\-Response: 0102030405060708090A0B0C0D0E0F101112131415161718
    166316.RE
     
    188338.\}
    189339.RS 4
     340.BM yellow
    190341.it 1 an-trap
    191342.nr an-no-space-flag 1
     
    200351                a newline\&.  They may also need to decode strings from
    201352                the helper, which likewise may have been base64 encoded\&..sp .5v
     353.EM yellow
    202354.RE
    203355.RE
     
    256408.RS 4
    257409Perform Diagnostics on the authentication chain\&. Uses the password from
    258 \-\-password
     410\FC\-\-password\F[]
    259411or prompts for one\&.
    260412.RE
     
    277429\m[blue]\fB\%smb.conf.5.html#\fR\m[]
    278430parameter in the
    279 smb\&.conf
     431\FCsmb\&.conf\F[]
    280432file\&.
    281433.RE
     
    289441.RS 4
    290442The 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
    291 smb\&.conf
     443\FCsmb\&.conf\F[]
    292444for more information\&. The default configuration file name is determined at compile time\&.
    293445.RE
     
    307459.PP
    308460To setup ntlm_auth for use by squid 2\&.5, with both basic and NTLMSSP authentication, the following should be placed in the
    309 squid\&.conf
     461\FCsquid\&.conf\F[]
    310462file\&.
    311463.sp
     
    313465.RS 4
    314466.\}
     467.fam C
     468.ps -1
    315469.nf
     470.if t \{\
     471.sp -1
     472.\}
     473.BB lightgray adjust-for-leading-newline
     474.sp -1
     475
    316476auth_param ntlm program ntlm_auth \-\-helper\-protocol=squid\-2\&.5\-ntlmssp
    317477auth_param basic program ntlm_auth \-\-helper\-protocol=squid\-2\&.5\-basic
     
    319479auth_param basic realm Squid proxy\-caching web server
    320480auth_param basic credentialsttl 2 hours
     481.EB lightgray adjust-for-leading-newline
     482.if t \{\
     483.sp 1
     484.\}
    321485.fi
     486.fam
     487.ps +1
    322488.if n \{\
    323489.RE
     
    327493.\}
    328494.RS 4
     495.BM yellow
    329496.it 1 an-trap
    330497.nr an-no-space-flag 1
     
    337504.PP
    338505This example assumes that ntlm_auth has been installed into your path, and that the group permissions on
    339 winbindd_privileged
     506\FCwinbindd_privileged\F[]
    340507are as described above\&.
    341508.sp .5v
     509.EM yellow
    342510.RE
    343511.PP
    344512To setup ntlm_auth for use by squid 2\&.5 with group limitation in addition to the above example, the following should be added to the
    345 squid\&.conf
     513\FCsquid\&.conf\F[]
    346514file\&.
    347515.sp
     
    349517.RS 4
    350518.\}
     519.fam C
     520.ps -1
    351521.nf
     522.if t \{\
     523.sp -1
     524.\}
     525.BB lightgray adjust-for-leading-newline
     526.sp -1
     527
    352528auth_param ntlm program ntlm_auth \-\-helper\-protocol=squid\-2\&.5\-ntlmssp \-\-require\-membership\-of=\'WORKGROUP\eDomain Users\'
    353529auth_param basic program ntlm_auth \-\-helper\-protocol=squid\-2\&.5\-basic \-\-require\-membership\-of=\'WORKGROUP\eDomain Users\'
     530.EB lightgray adjust-for-leading-newline
     531.if t \{\
     532.sp 1
     533.\}
    354534.fi
     535.fam
     536.ps +1
    355537.if n \{\
    356538.RE
Note: See TracChangeset for help on using the changeset viewer.