• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to solve the security problem to run "getHostName()"?

 
rugia baku
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a domain administrator and I want to get client's windows domain user name and host name in my JSP. However it can just return the ip or null. I have not idea how can I solve it. I just know it is the problem of security manager. Please help thank you. I am using XAMPP 5.6.12 in Windows.

P.S. I have already set "enableLookups" to be "true" in xampp\tomcat\conf\server.xml
 
A.J. Côté
Ranch Hand
Posts: 417
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might need to use some kind of plugin to enable that although tomcat seems to support it natively:
https://tomcat.apache.org/tomcat-7.0-doc/windows-auth-howto.html
http://www.luigidragone.com/software/ntlm-authentication-in-java/
http://projects.spring.io/spring-security-kerberos/

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!