Automatically authenticate using JCIFS in JAVA

Asked

Viewed 330 times

0

I’m building a Java solution where the goal is to be able to get users who are logged in to a Windows domain to automatically authenticate with their Windows credentials when starting a web application. For this I am using the JCIFS library. But when I do the deploy of the application, when executing the command remote.getRemoteUser(); it returns me nothing and not the name of the user who is accessing the page.

Follows my web.xml and I’m using the lib JCIFS-1.2.17.jar:

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

How to solve the reported problem?

  • Could you post your code in formatted text instead of images? Also, what do you mean by "it returns me nothing"? You mean he returns null?

  • Returns an empty string ! I believe that when I call the page it shows a dialog requesting login and password, I can only open the page I called when I pass login and empty password, will that be it ?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.