[jcifs] NTML Authentication problems
Enrico Drusiani
EDrusiani at zensistemi.com
Mon Nov 26 09:48:00 GMT 2007
Hello everyone
i'm trying to integrate Jcifs NTML authentication on an jboss project
i've a OpenLDAP test server, but i'm not under a domain of any kind
on starting jboss, i get
ERROR [STDERR] #JCIFS PROPERTIES
but that seems just something made for showing up properties.
and when i try to access the web application at
http://localhost:8080/webapplication/index.jsp
ERROR [[default]] Servlet.service() for servlet default threw exception
java.lang.NullPointerException
jcifs.smb.SmbSession.getChallengeForDomain(SmbSession.java:109)
jcifs.http.NtlmHttpFilter.negotiate(NtlmHttpFilter.java:150)
jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:114)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
but it seems i was authenticated somehow, because the login popup didn't
show up.
my web.xml has the following lines:
<!-- jcifs - NTML Authentication -->
<filter>
<filter-name>NtlmHttpFilter</filter-name>
<filter-class>jcifs.http.NtlmHttpFilter</filter-class>
<init-param>
<param-name>jcifs.netbios.wins</param-name>
<param-value><ip address></param-value>
</init-param>
<init-param>
<param-name>jcifs.smb.client.domain</param-name>
<param-value><domain name on OpenLDAP</param-value>
</init-param>
<init-param>
<param-name>jcifs.smb.client.username</param-name>
<param-value><admin username></param-value>
</init-param>
<init-param>
<param-name>jcifs.smb.client.password</param-name>
<param-value><admin password></param-value>
</init-param>
<init-param>
<param-name>jcifs.util.loglevel</param-name>
<param-value>4</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>NtlmHttpFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Please, i'd like an hint on what could be the problem's root
Thanks to everyone
Enrico Drusiani
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the jcifs
mailing list