Get username of client who connected to web server

后端 未结 5 2048
一整个雨季
一整个雨季 2021-02-15 11:25

Here\'s the scenario. I am code running on a web server in an AD domain. Some client has connected to me. How do I get that client\'s username, without having the client fill ou

5条回答
  •  渐次进展
    2021-02-15 12:07

    I bet you can put Apache web server in front of tomcat so apache can authenticate using NTLM or Kerberos. Then you can use rewrite rules to sent requests to tomcat with username in the plain. This is just an idea, I have not implemented this myself. However we are using Apache Kerberos authentication in our intranet. My suggestion is not to use NTLM, it's outdated and flaky.

提交回复
热议问题