- 31
- 0
- 约3.1千字
- 约 3页
- 2022-04-18 发布于福建
- 举报
jcifs 的 NTLM HTTP 验证及所犯错误
一、错误提示: 0xC0000022: jcifs.smb.SmbAuthException: Access is denied
The NTLMHTTPSSOFilter that used to be included with JCIFS cannot support NTLMv2.
1) jcifs.smb.lmCompatibility = 0 or 1: Send LM 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 配置:下面黑体配置,解决了错误。
?xml version=1.0 encoding=UTF-8?
web-app xmlns:xsi= /2001/XMLSchema-instance
xmlns= /xml/ns/javaee
xmlns:web= /xml/ns/javaee/web-app_2_5.xsd
xsi:schemaLocation= /xml/ns/javaee
/xml/ns/javaee/web-app_2_5.xsd id=WebApp_ID version=2.5
display-nameITSystemSSO/display-name
filter
filter-nameWebServicesFilter/filter-name
filter-classcom.channelsoft.sso.ipfilter.IpFilter/filter-class
/filter
filter-mapping
filter-nameWebServicesFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping
filter
filter-nameNtlmHttpFilter/filter-name
filter-classjcifs.http.NtlmHttpFilter/filter-class
init-param
param-namejcifs.http.domainController/param-name
param-value/param-value
/init-param
init-param
param-namejcifs.smb.lmCompatibility/param-name
param-value0/param-value
/init-param
init-param
param-namejcifs.smb.client.useExtenededSecurity/param-name
param-valuefalse/param-value
/init-param
init-param
param-namejcifs.smb.client.soTimeout/param-name
param-value35000/param-value
/init-param
/filter
filter-mapping
filter-nameNtlmHttpFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping
filter
filter-nameDenyFilter/filter-name
filter-classcom.channelsoft.sso.deny.DenyAll/filter-class
/
您可能关注的文档
最近下载
- 2024年武汉交通职业学院高职单招(英语/数学/语文)笔试题库含答案解析.docx VIP
- 2025年江苏农林职业技术学院单招《数学》试卷带答案详解(新).docx VIP
- 黑布林系列英语课外读物《绿野仙踪 》英译汉.pdf VIP
- 2026年增值税法新政解读考试测试卷及答案.docx VIP
- 储能技术-电化学储能课件课件 .ppt VIP
- 电化学储能的概念与作用ConceptandFunction.pptx VIP
- 高中数学竞赛专题大全竞赛专题9平面几何50题竞赛真题强化训练含解析.docx VIP
- 1_黄委会面试真题.pdf VIP
- 普通党员2025年度组织生活会个人“五个方面”剖析发言材料(通用)范文.docx VIP
- 直线与圆的方程教学设计 .pdf
原创力文档

文档评论(0)