0 Replies Latest reply on Jan 18, 2008 10:32 AM by boniek

    Jconsole, JBoss and LDAP authentication

      I can't get this to work. It works for anything I have tried, but JBossAS.
      I'm using jdk 1.6u4 and JBoss 4.2.1

      cd /opt/java/demo/jni/Poller/
      and then run this:

      /opt/java/bin/java -Dcom.sun.management.jmxremote.port=9998 -Dcom.sun.management.jmxremote.login.config=LDAPAuth -Djava.security.auth.login.config=/opt/jboss/jmxauth.config -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.access.file=/opt/jboss/jmxremote.access SimpleServer


      jmxauth.config
      LDAPAuth {
       com.sun.security.auth.module.LdapLoginModule REQUIRED
       userProvider="ldap://host:port/ldapstring"
       userFilter="(&(uid={USERNAME})(objectClass=inetorgperson))"
       useSSL=false;
       };


      jmxremote.access
      admin readwrite


      And it works.
      When running JBoss with same options - it doesn't