[jboss-user] [Security & JAAS/JBoss] - Re: Error 403 when using DatabaseServerLoginModule

yj4jboss do-not-reply at jboss.com
Sat Nov 4 06:08:09 EST 2006


Hello ,
   As it seems, the query for principals is working, with users being correctly authenticated ...its only the second query that is posing problems !! The User Admin has the role Admin in the database and the role constraint has been set as Admin in the web.xml for this resource. 

I suspect the user is not being authorized correctly because the he has no role bound !! But i cannot figure out why ?? Do you have any configs that is working along with a sample db structure.....I am using the a simple db structure like this (found this out one from a wiki !!)


  | Principals Table
  | ==========
  | 
  | PrincipalId varchar(255), PRIMARY
  | Password varchar(255),
  | 
  | 
  | Roles Table
  | =======
  | PrincipalId varchar(255), PRIMARY
  | Role varchar(255),
  | RoleGroup varchar(255)
  | 
  | 

Regards,
Jankee Yogesh
http://www.m-itc.net

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

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



More information about the jboss-user mailing list