In a Windows-centric environment, you may wish to use NTLM authentication rather than a
login dialog box. Each user will be "pre-authenticated" and identified based on their
workstation login.

This works for IE and for Firefox, but Firefox users must manually turn on NTLM support.

To use NTLM you just need to change JspWiki's web.xml to specify its a version 2.3 servlet
(Tomcat 4+) and then add a servlet filter to set the response's remote user.

Its easy to do that, just change the second line of web.xml to
{{{<!DOCTYPE web-app
     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
}}}

then add the filter specification before the first {{<servlet>}} tag. Order matters to Tomcat.
{{{
<filter>
    <filter-name>NtlmHttpFilter</filter-name>
    <filter-class>jcifs.http.NtlmHttpFilter</filter-class>

    <init-param>
        <param-name>jcifs.smb.client.domain</param-name>
        <param-value>YOURDOMAINNAME</param-value>
    </init-param> 

    <init-param>
        <param-name>jcifs.netbios.wins</param-name>
        <param-value>1.2.3.4</param-value>
    </init-param>
</filter>

<filter-mapping>
    <filter-name>NtlmHttpFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>
}}}

In the above, replace YOURDOMAINNAME with your NTLM domain name and replace
1.2.3.4 with the ip address of your WINS server. Use {{ipconfig /all}} to find out
the ip numbers of your WINS server.

And of course, you need to add the [JCIFS jar file|http://jcifs.samba.org/src/] to WEB-INF/lib.

For more information on how this works, see the
[JCIFS|http://jcifs.samba.org/src/docs/ntlmhttpauth.html] site.