简体   繁体   English

通过AJP将远程用户传递给tomcat

[英]Pass remote user to tomcat over AJP

I'm using Kerberos + LDAP for authentication on Apache. 我正在使用Kerberos + LDAP在Apache上进行身份验证。 I've then created an AJP from Apache to Tomcat. 然后,我已经创建了从Apache到Tomcat的AJP。

Since Apache handles the authentication, is there a way to securely pass the remote user to tomcat? 由于Apache处理身份验证,有没有办法安全地将远程用户传递给tomcat?

Specifically, the first thing I want to achieve is using Kerberos + LDAP from Apache over AJP to Tomcat Manager. 具体来说,我要实现的第一件事是通过AJP使用Kerberos + LDAP从Apache到Tomcat Manager。

I'd like Tomcat to allow any user that is passed into it from Apache. 我希望Tomcat允许从Apache传递到它的任何用户。

It already happens. 它已经发生了。 Just call HttpServletRequest.getRemoteUser() in your code. 只需在您的代码中调用HttpServletRequest.getRemoteUser()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM