如何设置JMX远程以使用LDAP身份验证

时间:2018-07-09 19:32:42

标签: authentication tomcat ldap jmx

我正在尝试为JMX设置LDAP身份验证,以便当我通过服务器启动jconsole到jmx监视tomcat时,而不是使用服务器的jmxremote.access和jmxremote.password文件中指定的用户名和密码时,我d将我的身份验证用于ldap服务器。

最近几天,我一直在努力使它运行起来,并且能够将一些内容编译在一起,但是我仍然无法工作,并且对是否缺少某些东西感到好奇。

我已经将这些行添加到了tomcat的setenv.sh中:

  • Dcom.sun.management.jmxremote
  • Dcom.sun.management.jmxremote.port =(我的港口)
  • Djava.rmi.server.hostname =(我的服务器)
  • Dcom.sun.management.jmxremote.ssl = false
  • Dcom.sun.management.jmxremote.password.file =(密码文件的路径)
  • Dcom.sun.management.jmxremote.access.file =(我的访问文件的路径)
  • Dcom.sun.management.jmxremote.login.config = MyConfig
  • Djava.security.auth.login.config =(MyConfig的路径)

ldap配置文件的内容

ldap.config

jmxremote.access的内容:

monitorRole只读

jmxremote.password的内容

monitorRole测试

我无法以任何身份登录(即使指定的用户monitorRole也是如此)。我想知道是否有人以前这样做过,可以给我一些提示或为我指明正确的方向。

谢谢!

0 个答案:

没有答案
相关问题