This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

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 to WEB-INF/lib.

For more information on how this works, see the JCIFS site.

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
doc
NikitaResume.doc 57.9 kB 1 17-Feb-2012 09:09 182.72.46.34
pdf
tahir.pdf 53.2 kB 1 17-Feb-2012 09:08 182.72.46.34
« This particular version was published on 27-Jan-2006 23:12 by rpalvesky.