Hello there,

I programmed a custom login module for JBoss (it extends org.jboss.security.auth.spi.UsernamePasswordLoginModule) and defined in login-config.xml:

<application-policy name = "test">
       <authentication>
          <login-module code = "test.auth.CustomLoginModule"
             flag = "required">
          </login-module>
       </authentication>
</application-policy>

This class’s code is very simple, it returns always the same password and role, just for testing...

Then I made a jar file (test-auth.jar) with that class and put it in /server/default/lib (this is the server config I’m running).
Then I start up JBoss and deploy an app which uses that security domain, but when I try to access it I get:


11:35:39,676 ERROR [LogInterceptor] RuntimeException:
java.util.MissingResourceException: Can't find resource for bundle sun.security.util.Resources, key unable to instantiate LoginModule:
at java.util.ResourceBundle.getObject(ResourceBundle.java:314)
at java.util.ResourceBundle.getObject(ResourceBundle.java:311)
at java.util.ResourceBundle.getString(ResourceBundle.java:274)
at sun.security.util.ResourcesMgr.getString(ResourcesMgr.java:36)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:707)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:462)
at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:417)
at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:244)
at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:219)
at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:158)
---------------------------- and lot more...


I read a lot of docs about JBossSX and custom Login Modules, but none of them explicity says how to package your custom code.

Did I misplaced the jar ?
Do I need to use ProxyLoginModule ??

Environment: JBoss 3.2.0 w/Tomcat.

Any help will be appreciated.

Thank in advance for your time,
Regards,




------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to