一、错误提示:0xC0000022: jcifs.smb.SmbAuthException: Access is denied
The NTLM HTTP SSO Filter that used to be included withJCIFS cannot support NTLMv2.
1) jcifs.smb.lmCompatibility = 0 or 1: SendLM and NTLM
2) jcifs.smb.lmCompatibility = 2: Send NTLM in both fields
3) jcifs.smb.lmCompatibility = 3, 4, or 5: Send just LMv2
1、使用包:jcifs-1.3.14.jar
2、Eclipse的web工程中的web.xml配置:下面黑体配置,解决了错误。
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"version="2.5">
ITSystemSSO
WebServicesFilter
com.channelsoft.sso.ipfilter.IpFilter
WebServicesFilter
/*
NtlmHttpFilter
jcifs.http.NtlmHttpFilter
jcifs.http.domainController
10.130.1.9
jcifs.smb.lmCompatibility
0
jcifs.smb.client.useExtenededSecurity
false
jcifs.smb.client.soTimeout
35000
NtlmHttpFilter
/*
DenyFilter
com.channelsoft.sso.deny.DenyAll
DenyFilter
/*
index.html
index.htm
index.jsp
default.html
default.htm
default.jsp
3、说明
二、错误提示:jcifs.smb.SmbException: NTLMv2 requires extendedsecurity (jcifs.smb.client.useExtendedSecurity must be
true ifjcifs.smb.lmCompatibility >=
3)
如果已经增加了上面黑体部分,则需重启tomcat服务器。
三、调试java web程序,时替换jar包,旧jar包修改名称后继续保存在\WebContent\WEB-INF\lib文件夹下,加载旧包,而没有重新加载新包。