I wrote a custom login module that extends AbstractServerLoginModule.
I use password-stacking, LDAP does the authentication, and then my custom login module queries the database to get the roles to associated with the user.
I placed this login module into a jar, and then deployed it to /default/lib.
First, is this the correct location to place a custom login module?
Second, I'd like to use EJB3 to do the database query within the custom login module. How do I package my custom login module to accomplish this?