0 Replies Latest reply on May 24, 2012 5:11 AM by sudhananthan B

    MBean related to JAAS authentication is not present

    sudhananthan B Newbie

      I'm now working on jboss 7 upgradation from jboss 5. I've  been using custom login module i.e my own class extending UsernamePasswordLoginModule class for authentication. While upgrading the configuration changes from login-config.xml has been moved to standalone.xml. Everything related to authentication goes smoothly. But in my case in jboss 5 i used "jboss.security:service=JaasSecurityManager" in order to get some use information like user session count as below:


      MBeanServer server = (MBeanServer) MBeanServerFactory.findMBeanServer(null).get(0);

              String jaasmgrname = "jboss.security:service=JaasSecurityManager";

              ObjectName jaasmgr = new ObjectName(jaasmgrname);

              Object[] params =

              {"SecurityPolicy" };

              String[] signature =

              {"java.lang.String" };

              List<SimplePrincipal> loggedusers = (List<SimplePrincipal>) server.invoke(jaasmgr, "getAuthenticationCachePrincipals", params, signature);


      But in jboss 7 no such MBean is found(I verified by using twiddle-standalone tool). So can any help me

      to get alternate for above issue.


      So the authentication is fine