form based login in jboss using login-config not working



jboss-web.xml contains

<h1>Please Authenticate</h1>
<form method="POST" action="j_security_check">
User Name: <input type="text" name="j_username" /><br />
Password: <input type="password" name="j_password" /><br />
<input type="submit" value="Login" />
web.xml contains
<description>A test app for security</description>
<web-resource-name>All resources</web-resource-name>
<description>Protects all resources</description>



login-config.xml conatins
<application-policy name = "wizomLogin">
<login-module code =
"" flag =
<module-option name = "dsJndiName">java:mySqlWizom</module-option>
<module-option name = "principalsQuery">Select password from userInfo
where userInfo.username=?</module-option>
<module-option name = "rolesQuery">Select role,'Roles' from wizomRole
where wizomRole.username=?</module-option>
<module-option name="unauthenticatedIdentity">guest</module-option>
database conatins tables
userInfo with username and password
wizom wizom
wizomRole with username and role
wizom WebUserApp

still login does not work
instead if i used application policy that reads username password
roles from file that will work.

please post me the solution.




Pay me loads of money and I will send you the solution. Otherwise,
piss off and never post here again!

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question