Integrated Windows Authentication (NTLM) in a Java/WebLogic app?

别等时光非礼了梦想. 提交于 2019-11-28 09:33:39
morja

Have a look at jcifs. Although its mechanism is deprecated (it does not support NTLMv2) its still working in my projects. You might have to use an older version. They recommend to use jespa, but its not free.

There is also spnego, it has a filter too. And tomcatspnego. But I dont know how easy they are to use.

Waffle looks also interesting.

Here is another answer with some details: Authenticating against Active Directory with Java on Linux

So far I have only used jcifs, so I can not tell you which other option is the best. Apaches HttpClient also has some capabilities, I used it, but not as SSO in a webapp.

EDIT:

I found another project: ntlm-authentication-in-java, but I have not used or tested it yet.

Peter

Look at this answer, if you use NTLMv1, it gets you the logged in user's username. (does not work with NTLMv2 though..)

WebLogic supports SPNEGO natively and therefore, you do not need to use workarounds. More documentation is available here - http://docs.oracle.com/cd/E21764_01/web.1111/e13707/sso.htm. You can also refer to this blog article for step-by-step process - http://oraclelabspace.blogspot.in/2012/01/configurining-sso-using-kerberosspnego.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!