[jboss-user] [Security & JAAS/JBoss] - Re: connect FORM authentication and DatabaseServerLoginModul

atheba do-not-reply at jboss.com
Fri Jul 14 04:49:21 EDT 2006

I have the same problem....

When I use the DatabaseLogin Module with BASIC authentication it all works fine. But as soon as I switch to FORM authentication I get the 
10:38:15,015 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files
java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found

I have the following method called by FACES to handle the login...

public String login(){
boolean loginflag=false;
CallbackHandler cbh = new ABILWebCallBackHandler(idNumber, password, randomcheck);
LoginContext lc = new LoginContext("ABILWeb", cbh);
			Subject sub = lc.getSubject();
return "success";
}catch(Exception e){
return "failed";

My call back handler populates teh username and password in the callbacks[]...

Any suggestions?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958004#3958004

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958004

More information about the jboss-user mailing list