ntlm_auth.1
来自「samba最新软件」· 1 代码 · 共 225 行
1
225 行
.\" Title: ntlm_auth.\" Author: .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>.\" Date: 06/03/2008.\" Manual: .\" Source: .\".TH "NTLM_AUTH" "1" "06/03/2008" "" "".\" disable hyphenation.nh.\" disable justification (adjust text to left margin only).ad l.SH "NAME"ntlm_auth - tool to allow external access to Winbind's NTLM authentication function.SH "SYNOPSIS".HP 10\fBntlm_auth\fR [\-d\ debuglevel] [\-l\ logdir] [\-s\ <smb\ config\ file>].SH "DESCRIPTION".PPThis tool is part of the\fBsamba\fR(7)suite\..PP\fBntlm_auth\fRis 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 squid)\..SH "OPERATIONAL REQUIREMENTS".PPThe\fBwinbindd\fR(8)daemon must be operational for many of these commands to function\..PPSome of these commands also require access to the directory\fIwinbindd_privileged\fRin\fI$LOCKDIR\fR\. This should be done either by running this command as root or providing group access to the\fIwinbindd_privileged\fRdirectory\. For security reasons, this directory should not be world\-accessable\..SH "OPTIONS".PP\-\-helper\-protocol=PROTO.RS 4Operate as a stdio\-based helper\. Valid helper protocols are:.PPsquid\-2\.4\-basic.RS 4Server\-side helper for use with Squid 2\.4\'s basic (plaintext) authentication\..RE.PPsquid\-2\.5\-basic.RS 4Server\-side helper for use with Squid 2\.5\'s basic (plaintext) authentication\..RE.PPsquid\-2\.5\-ntlmssp.RS 4Server\-side helper for use with Squid 2\.5\'s NTLMSSP authentication\..spRequires access to the directory\fIwinbindd_privileged\fRin\fI$LOCKDIR\fR\. The protocol used is described here:\fIhttp://devel\.squid\-cache\.org/ntlm/squid_helper_protocol\.html\fR.RE.PPntlmssp\-client\-1.RS 4Cleint\-side helper for use with arbitary external programs that may wish to use Samba\'s NTLMSSP authentication knowlege\..spThis helper is a client, and as such may be run by any user\. The protocol used is effectivly the reverse of the previous protocol\..RE.PPgss\-spnego.RS 4Server\-side helper that implements GSS\-SPNEGO\. This uses a protocol that is almost the same as\fBsquid\-2\.5\-ntlmssp\fR, but has some subtle differences that are undocumented outside the source at this stage\..spRequires access to the directory\fIwinbindd_privileged\fRin\fI$LOCKDIR\fR\..RE.PPgss\-spnego\-client.RS 4Client\-side helper that implements GSS\-SPNEGO\. This also uses a protocol similar to the above helpers, but is currently undocumented\..RE.RE.PP\-\-username=USERNAME.RS 4Specify username of user to authenticate.RE.PP\-\-domain=DOMAIN.RS 4Specify domain of user to authenticate.RE.PP\-\-workstation=WORKSTATION.RS 4Specify the workstation the user authenticated from.RE.PP\-\-challenge=STRING.RS 4NTLM challenge (in HEXADECIMAL).RE.PP\-\-lm\-response=RESPONSE.RS 4LM Response to the challenge (in HEXADECIMAL).RE.PP\-\-nt\-response=RESPONSE.RS 4NT or NTLMv2 Response to the challenge (in HEXADECIMAL).RE.PP\-\-password=PASSWORD.RS 4User\'s plaintext password.spIf not specified on the command line, this is prompted for when required\..RE.PP\-\-request\-lm\-key.RS 4Retreive LM session key.RE.PP\-\-request\-nt\-key.RS 4Request NT key.RE.PP\-\-diagnostics.RS 4Perform Diagnostics on the authentication chain\. Uses the password from\fB\-\-password\fRor prompts for one\..RE.PP\-\-require\-membership\-of={SID|Name}.RS 4Require that a user be a member of specified group (either name or SID) for authentication to succeed\..RE.PP\-V.RS 4Prints the program version number\..RE.PP\-s <configuration file>.RS 4The 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\fIsmb\.conf\fRfor more information\. The default configuration file name is determined at compile time\..RE.PP\-l|\-\-log\-basename=logdirectory.RS 4Base directory name for log/debug files\. The extension\fB"\.progname"\fRwill be appended (e\.g\. log\.smbclient, log\.smbd, etc\.\.\.)\. The log file is never removed by the client\..RE.PP\-h|\-\-help.RS 4Print a summary of command line options\..RE.SH "EXAMPLE SETUP".PPTo setup ntlm_auth for use by squid 2\.5, with both basic and NTLMSSP authentication, the following should be placed in the\fIsquid\.conf\fRfile\..sp.RS 4.nfauth_param ntlm program ntlm_auth \-\-helper\-protocol=squid\-2\.5\-ntlmsspauth_param basic program ntlm_auth \-\-helper\-protocol=squid\-2\.5\-basicauth_param basic children 5auth_param basic realm Squid proxy\-caching web serverauth_param basic credentialsttl 2 hours.fi.RE.sp.it 1 an-trap.nr an-no-space-flag 1.nr an-break-flag 1.brNote.PPThis example assumes that ntlm_auth has been installed into your path, and that the group permissions on\fIwinbindd_privileged\fRare as described above\..PPTo 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\fIsquid\.conf\fRfile\..sp.RS 4.nfauth_param ntlm program ntlm_auth \-\-helper\-protocol=squid\-2\.5\-ntlmssp \-\-require\-membership\-of=\'WORKGROUP\eDomain Users\'auth_param basic program ntlm_auth \-\-helper\-protocol=squid\-2\.5\-basic \-\-require\-membership\-of=\'WORKGROUP\eDomain Users\'.fi.RE.SH "TROUBLESHOOTING".PPIf you\'re experiencing problems with authenticating Internet Explorer running under MS Windows 9X or Millenium Edition against ntlm_auth\'s NTLMSSP authentication helper (\-\-helper\-protocol=squid\-2\.5\-ntlmssp), then please read\fI the Microsoft Knowledge Base article #239869 and follow instructions described there\fR\&[1]\..SH "VERSION".PPThis man page is correct for version 3\.0 of the Samba suite\..SH "AUTHOR".PPThe 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\..PPThe ntlm_auth manpage was written by Jelmer Vernooij and Andrew Bartlett\..SH "NOTES".IP " 1." 4the Microsoft Knowledge Base article #239869 and follow instructions described there.RS 4\%http://support.microsoft.com/support/kb/articles/Q239/8/69.ASP.RE
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?