Changeset 411 for branches/samba-3.3.x/docs/manpages/ntlm_auth.1
- Timestamp:
- Mar 1, 2010, 3:05:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/docs/manpages/ntlm_auth.1
r368 r411 1 '\" t2 1 .\" Title: ntlm_auth 3 2 .\" Author: [see the "AUTHOR" section] 4 .\" Generator: DocBook XSL Stylesheets v1.7 5.2<http://docbook.sf.net/>5 .\" Date: 0 1/14/20103 .\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/> 4 .\" Date: 02/22/2010 6 5 .\" Manual: User Commands 7 6 .\" Source: Samba 3.3 8 7 .\" Language: English 9 8 .\" 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 .. 11 159 .\" ----------------------------------------------------------------- 12 160 .\" * set default formatting … … 19 167 .\" * MAIN CONTENT STARTS HERE * 20 168 .\" ----------------------------------------------------------------- 21 .SH "N AME"169 .SH "Name" 22 170 ntlm_auth \- tool to allow external access to Winbind\'s NTLM authentication function 23 .SH "SYNOPSIS" 171 .SH "Synopsis" 172 .fam C 24 173 .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 26 176 .SH "DESCRIPTION" 27 177 .PP … … 30 180 suite\&. 31 181 .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 in dended to be used by other programs (currently182 \FCntlm_auth\F[] 183 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 intended to be used by other programs (currently 34 184 Squid 35 185 and … … 42 192 .PP 43 193 Some of these commands also require access to the directory 44 winbindd_privileged 194 \FCwinbindd_privileged\F[] 45 195 in 46 $LOCKDIR\&. This should be done either by running this command as root or providing group access to the47 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[] 48 198 directory\&. For security reasons, this directory should not be world\-accessable\&. 49 199 .SH "OPTIONS" … … 68 218 .sp 69 219 Requires access to the directory 70 winbindd_privileged 220 \FCwinbindd_privileged\F[] 71 221 in 72 $LOCKDIR\&. The protocol used is described here:222 \FC$LOCKDIR\F[]\&. The protocol used is described here: 73 223 http://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[] 75 225 command\&. (Thus avoiding loss of information in the protocol exchange)\&. 76 226 .RE … … 81 231 .sp 82 232 This 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[] 84 234 command (without any arguments) starts the authentication exchange\&. 85 235 .RE … … 88 238 .RS 4 89 239 Server\-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\&. 91 241 .sp 92 242 Requires access to the directory 93 winbindd_privileged 243 \FCwinbindd_privileged\F[] 94 244 in 95 $LOCKDIR\&.245 \FC$LOCKDIR\F[]\&. 96 246 .RE 97 247 .PP … … 106 256 .sp 107 257 This protocol consists of lines in the form: 108 Parameter: value 258 \FCParameter: value\F[] 109 259 and 110 Parameter:: Base64\-encode value\&. The presence of a single period111 \ &.260 \FCParameter:: Base64\-encode value\F[]\&. The presence of a single period 261 \FC\&.\F[] 112 262 indicates that one side has finished supplying data to the other\&. (Which in turn could cause the helper to authenticate the user)\&. 113 263 .sp … … 143 293 .RS 4 144 294 The 8 byte 145 LANMAN Challenge 295 \FCLANMAN Challenge\F[] 146 296 value, generated randomly by the server, or (in cases such as MSCHAPv2) generated in some way by both the server and the client\&. 147 297 .PP \fBExample\ \&7.\ \&\fR LANMAN\-Challege: 0102030405060708 … … 151 301 .RS 4 152 302 The 24 byte 153 LANMAN Response 303 \FCLANMAN Response\F[] 154 304 value, 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\&. 156 306 .PP \fBExample\ \&8.\ \&\fR LANMAN\-Response: 0102030405060708090A0B0C0D0E0F101112131415161718 157 307 .RE … … 160 310 .RS 4 161 311 The >= 24 byte 162 NT Response 312 \FCNT Response\F[] 163 313 calculated 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\&. 165 315 .PP \fBExample\ \&9.\ \&\fR NT\-Response: 0102030405060708090A0B0C0D0E0F101112131415161718 166 316 .RE … … 188 338 .\} 189 339 .RS 4 340 .BM yellow 190 341 .it 1 an-trap 191 342 .nr an-no-space-flag 1 … … 200 351 a newline\&. They may also need to decode strings from 201 352 the helper, which likewise may have been base64 encoded\&..sp .5v 353 .EM yellow 202 354 .RE 203 355 .RE … … 256 408 .RS 4 257 409 Perform Diagnostics on the authentication chain\&. Uses the password from 258 \ -\-password410 \FC\-\-password\F[] 259 411 or prompts for one\&. 260 412 .RE … … 277 429 \m[blue]\fB\%smb.conf.5.html#\fR\m[] 278 430 parameter in the 279 smb\&.conf 431 \FCsmb\&.conf\F[] 280 432 file\&. 281 433 .RE … … 289 441 .RS 4 290 442 The 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[] 292 444 for more information\&. The default configuration file name is determined at compile time\&. 293 445 .RE … … 307 459 .PP 308 460 To 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[] 310 462 file\&. 311 463 .sp … … 313 465 .RS 4 314 466 .\} 467 .fam C 468 .ps -1 315 469 .nf 470 .if t \{\ 471 .sp -1 472 .\} 473 .BB lightgray adjust-for-leading-newline 474 .sp -1 475 316 476 auth_param ntlm program ntlm_auth \-\-helper\-protocol=squid\-2\&.5\-ntlmssp 317 477 auth_param basic program ntlm_auth \-\-helper\-protocol=squid\-2\&.5\-basic … … 319 479 auth_param basic realm Squid proxy\-caching web server 320 480 auth_param basic credentialsttl 2 hours 481 .EB lightgray adjust-for-leading-newline 482 .if t \{\ 483 .sp 1 484 .\} 321 485 .fi 486 .fam 487 .ps +1 322 488 .if n \{\ 323 489 .RE … … 327 493 .\} 328 494 .RS 4 495 .BM yellow 329 496 .it 1 an-trap 330 497 .nr an-no-space-flag 1 … … 337 504 .PP 338 505 This example assumes that ntlm_auth has been installed into your path, and that the group permissions on 339 winbindd_privileged 506 \FCwinbindd_privileged\F[] 340 507 are as described above\&. 341 508 .sp .5v 509 .EM yellow 342 510 .RE 343 511 .PP 344 512 To 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[] 346 514 file\&. 347 515 .sp … … 349 517 .RS 4 350 518 .\} 519 .fam C 520 .ps -1 351 521 .nf 522 .if t \{\ 523 .sp -1 524 .\} 525 .BB lightgray adjust-for-leading-newline 526 .sp -1 527 352 528 auth_param ntlm program ntlm_auth \-\-helper\-protocol=squid\-2\&.5\-ntlmssp \-\-require\-membership\-of=\'WORKGROUP\eDomain Users\' 353 529 auth_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 .\} 354 534 .fi 535 .fam 536 .ps +1 355 537 .if n \{\ 356 538 .RE
Note:
See TracChangeset
for help on using the changeset viewer.