Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 9adab841b2346eed28e146b23c25375c > files > 140

exim-doc-4.73-2.fc15.noarch.rpm

<!DOCTYPE html PUBLIC "XSLT-compat">
<html lang="en-GB">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../common.css">
<meta name="author" content="The Exim Project. &lt;http://www.exim.org/&gt;">
<meta name="copyright" content="Copyright ©2010 The Exim Project. All rights reserved">
<meta name="description" content="Exim is a message transfer agent (MTA) developed at the University of Cambridge for use on Unix systems connected to the Internet.">
<meta name="keywords" content="exim,smtp,mta,email">
<meta name="robots" content="noodp,noydir,index,follow">
<meta name="viewport" content="width=device-width">
<title>38. The spa authenticator</title>
<link rel="stylesheet" type="text/css" href="../../../../doc/chapter.css">
<link rel="canonical" href="http://www.exim.org/exim-html-current/doc/html/spec_html/ch38.html">
</head>
<body>
<h1 id="header"><a href="../../../..">Exim Internet Mailer</a></h1>
<div id="outer">
<ul id="nav_flow" class="nav">
<li><a href="../../../../index.html">Home</a></li>
<li><a href="../../../../mirrors.html">Download</a></li>
<li><a href="../../../../docs.html">Documentation</a></li>
<li><a href="../../../../maillist.html">Mailing Lists</a></li>
<li><a href="http://wiki.exim.org/">Wiki</a></li>
<li><a href="http://www.exim.org/bugzilla/">Bugs</a></li>
<li><a href="../../../../credits.html">Credits</a></li>
<li class="search"><form action="http://www.google.com/search" method="get">
<span class="search_field_container"><input type="search" name="q" placeholder="Search Docs" class="search_field"></span><input type="hidden" name="hl" value="en"><input type="hidden" name="ie" value="UTF-8"><input type="hidden" name="as_qdr" value="all"><input type="hidden" name="q" value="site:www.exim.org"><input type="hidden" name="q" value="inurl:exim-html-current">
</form></li>
</ul>
<div id="inner"><div id="content">
<a class="previous_page" href="ch37.html">&lt;-previous</a><a class="next_page" href="ch39.html">next-&gt;</a><div id="chapter" class="chapter">
<h2 id="CHAPspa" class="">Chapter 38 - The spa authenticator</h2>
<p>






The <span class="docbook_command">spa</span> authenticator provides client support for Microsoft’s <span class="docbook_emphasis">Secure
Password Authentication</span> mechanism,
which is also sometimes known as NTLM (NT LanMan). The code for client side of
this authenticator was contributed by Marc Prud’hommeaux, and much of it is
taken from the Samba project (<span class="docbook_emphasis"><a href="http://www.samba.org">http://www.samba.org</a></span>). The code for the
server side was subsequently contributed by Tom Kistner. The mechanism works as
follows:
</p>
<ul>
<li>
<p>
After the AUTH command has been accepted, the client sends an SPA
authentication request based on the user name and optional domain.
</p>
</li>
<li>
<p>
The server sends back a challenge.
</p>
</li>
<li>
<p>
The client builds a challenge response which makes use of the user’s password
and sends it to the server, which then accepts or rejects it.
</p>
</li>
</ul>
<p>
Encryption is used to protect the password in transit.
</p>
<div class="section">
<h3 id="SECID179" class="">1. Using spa as a server</h3>
<p>

The <span class="docbook_command">spa</span> authenticator has just one server option:
</p>
<p>

</p>
<table>






<tr>
<td><span class="docbook_option">server_password</span></td>
<td>Use: <span class="docbook_emphasis">spa</span>
</td>
<td>Type: <span class="docbook_emphasis">string</span>†<span class="docbook_emphasis"></span>
</td>
<td>Default: <span class="docbook_emphasis">unset</span>
</td>
</tr>


</table>
<p>

This option is expanded, and the result must be the cleartext password for the
authenticating user, whose name is at this point in $auth1. For
compatibility with previous releases of Exim, the user name is also placed in
$1. However, the use of this variable for this purpose is now deprecated, as
it can lead to confusion in string expansions that also use numeric variables
for other things. For example:
</p>
<div class="docbook_literallayout"><pre>
spa:
  driver = spa
  public_name = NTLM
  server_password = \
    ${lookup{$auth1}lsearch{/etc/exim/spa_clearpass}{$value}fail}
</pre></div>
<p>
If the expansion is forced to fail, authentication fails. Any other expansion
failure causes a temporary error code to be returned.
</p>
</div>
<div class="section">
<h3 id="SECID180" class="">2. Using spa as a client</h3>
<p>

The <span class="docbook_command">spa</span> authenticator has the following client options:
</p>
<p>

</p>
<table>






<tr>
<td><span class="docbook_option">client_domain</span></td>
<td>Use: <span class="docbook_emphasis">spa</span>
</td>
<td>Type: <span class="docbook_emphasis">string</span>†<span class="docbook_emphasis"></span>
</td>
<td>Default: <span class="docbook_emphasis">unset</span>
</td>
</tr>


</table>
<p>
This option specifies an optional domain for the authentication.
</p>
<p>

</p>
<table>






<tr>
<td><span class="docbook_option">client_password</span></td>
<td>Use: <span class="docbook_emphasis">spa</span>
</td>
<td>Type: <span class="docbook_emphasis">string</span>†<span class="docbook_emphasis"></span>
</td>
<td>Default: <span class="docbook_emphasis">unset</span>
</td>
</tr>


</table>
<p>
This option specifies the user’s password, and must be set.
</p>
<p>

</p>
<table>






<tr>
<td><span class="docbook_option">client_username</span></td>
<td>Use: <span class="docbook_emphasis">spa</span>
</td>
<td>Type: <span class="docbook_emphasis">string</span>†<span class="docbook_emphasis"></span>
</td>
<td>Default: <span class="docbook_emphasis">unset</span>
</td>
</tr>


</table>
<p>
This option specifies the user name, and must be set. Here is an example of a
configuration of this authenticator for use with the mail servers at
<span class="docbook_emphasis">msn.com</span>:
</p>
<div class="docbook_literallayout"><pre>
msn:
  driver = spa
  public_name = MSN
  client_username = msn/msn_username
  client_password = msn_plaintext_password
  client_domain = DOMAIN_OR_UNSET
</pre></div>
<p>


</p>
</div>
</div>
<a class="previous_page" href="ch37.html">&lt;-previous</a><a class="next_page" href="ch39.html">next-&gt;</a>
</div></div>
<iframe id="branding" name="branding" src="../../../../branding/branding.html" height="0" frameborder="no" scrolling="no"></iframe><div id="footer">Website design by <a href="https://secure.grepular.com/">Mike Cardwell</a>, of <a href="http://cardwellit.com/">Cardwell IT Ltd.</a>
</div>
<div class="left_bar"></div>
<div class="right_bar"></div>
<div id="toc">
<ul class="hidden"></ul>
<img src="../../../../doc/contents.png" width="16" height="155">
</div>
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script><script type="text/javascript" src="../../../../common.js"></script><script type="text/javascript" src="../../../../doc/chapter.js"></script>
</body>
</html>