5 Replies Latest reply on Oct 8, 2012 4:10 AM by Somefname1 Somelname1

    Custom login module not loaded in 7.1, but ok in 7.2

    Somefname1 Somelname1 Newbie

      I made login/password authentification in JNDI context through my custom module. Custom module is empty, it just extends org.jboss.security.auth.spi.UsersRolesLoginModule.

       

      When I use code="org.jboss.security.auth.spi.UsersRolesLoginModule" in login-module of my security-domain (in standalone.xml) everything works fine. When i change login-module string to my custom module <login-module code="some.path.to.MyCustomLogin" flag="required" module="custom_module"> auth brakes down. Client error is: "Authentication failed: all available authentication mechanisms failed".

       

      I figured out, that MyCustomLogin module is not even classloaded.

       

      In AS 7.2 everything works fine: MyCustomLogin gets loaded and client is authentificated, no problems ocur. But AS 7.2 is alpha now, I can't use it in my project.

       

      Please, give a clue, how to get my module loaded. Maybe I can use console to somehow load it? Or in 7.1 I should include my auth class in META-INF/lib of my deployed app?