The location of your module in the jboss/lib dir is fine.
You must modify your startup script (run.bat / run.sh) to include your login module jar.
# Add all login modules for JAAS-based security
# and all libraries that are used by them here
I've used this and it works fine!
Thanks...that worked perfectly!!!
The best way to do this is put it in the lib/ext and then use the ProxyLogin module to load your module in auth.conf. This will resolve the classloader issues.
Very nice...even better! That works just fine, and I don't have to worry about one more file to double-check next time I upgrade....
If you use the ProxyLoginModule can you put the jar in your ear file?
I put the custom login module in the deployed ear file. It also works fine.