[jcifs] NtlmHttpFilter does not work on windows 2003

Laszlo Czegledi laszlo.czegledi at kirowski.com
Thu Oct 28 10:16:54 GMT 2004


Hi all,

we are having problem with NtlmHttpFilter to get it work on windows 2003 Active 
Domain Controller (it does work on windows 2000, either with jcifs-0.9.7.jar or 
jcifs-1.1.0.jar).
It works for the first time until we restart Tomcat, then we get the login 
dialog box and server log contains:
NtlmHttpFilter: FOLDESIWM01\user1: 0xC000006D: jcifs.smb.SmbAuthException: Logon
 failure: unknown user name or bad password.

Unfortunatelly we find the same problem in our client's environment.


Our environment: win2k3, j2sdk1.4.2_05, tomcat 5.0.27, jcifs-1.1.0.jar
web.xml:

<web-app>

<filter>
    <filter-name>ntlm</filter-name> 
    <filter-class>jcifs.http.NtlmHttpFilter</filter-class> 
<!-- Same result when tested with either wins or domainController.
    <init-param>
        <param-name>jcifs.netbios.wins</param-name>
        <param-value>10.3.8.4</param-value>
    </init-param>
-->

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

    <init-param>
        <param-name>jcifs.http.domainController</param-name>
        <param-value>10.3.8.4</param-value>
    </init-param>

    <init-param>
        <param-name>jcifs.smb.client.username</param-name>
        <param-value>user1</param-value>
    </init-param>
    <init-param>
        <param-name>jcifs.smb.client.password</param-name>
        <param-value>User1</param-value>
    </init-param>

    <init-param>
        <param-name>jcifs.util.loglevel</param-name>
        <param-value>10</param-value>
    </init-param>

</filter>
<filter-mapping>
    <filter-name>ntlm</filter-name> 
    <url-pattern>/*</url-pattern> 
</filter-mapping>


<servlet>
    <servlet-name>NtlmHttpAuthExample</servlet-name> 
    <servlet-class>NtlmHttpAuthExample</servlet-class> 
</servlet>

<servlet-mapping>
    <servlet-name>NtlmHttpAuthExample</servlet-name> 
    <url-pattern>/NtlmHttpAuthExample</url-pattern> 
</servlet-mapping>

</web-app>


Any ideas?

Thanks,
Laszlo



More information about the jcifs mailing list