I wrote a custom login module extending the AbstractServerLoginModule. I have successfully set it up so that it is being called when I try to access a protected page on my website, and it looks up the user and roles via a local-tx-datasource.
I can see from the logging output that it initializes correctly and access the DB to get the data and check the password. However it rejects every login attempt. I have overridden AbstractServerLoginModule's login, initialize, and abort. I can see JBoss calls my subclass's getIdentity and getRoleSets(). I have a hunch that it might be a problem in commit() but I can't tell. Also, in my login() method I set the superclass's loginOk to true. I can't locate the problem. I am unable to turn on the logging trace in AbstractServerLoginModule either, so it's difficult to see what's going on. Surely | <category name="org.jboss.security.auth"> | <priority value="TRACE" /> | </category> will do it? I tried the full class name too. I have my own custom module-options declared in login-config.xml - but AbstractServerLoginModule doesn't need any, is that right? For reasons unknown, the login fails, despite my login() method returning true. Any advice greatly appreciated. Adam <a href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825592#3825592">View the original post</a> <a href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825592>Reply to the post</a> ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user