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

2006-11-06 Thread yj4jboss
Hello, First of all Loads of thnx for the previous help ;0) I have a new issue with JAAS which i hope you might enlighten me on...I am rather new to this but i must say that it works great !! I am using Seam, Hibernate, Ajax and Facelet to build a web application ... I have two

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

2006-11-06 Thread jaikiran
I havent used Seam and Facelets and am ill-equipped to give you the exact answers. anonymous wrote : It seems that the page is not correctly rendered when the above code is used. | Any errors that you are seeing when the page is rendered? anonymous wrote : I have come across Custom JAAS

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

2006-11-05 Thread jaikiran
I tried your example and it did not work even in my case. Did some changes and it started working. Here's what i did: 1) Change the schema of the tables: User table: | | CREATE TABLE `users` ( | `userid` varchar(255) NOT NULL default '', | `Password` varchar(255) NOT NULL default

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

2006-11-04 Thread jaikiran
In your login-config.xml: | module-option | name=usersProperties | SELECT password for principals WHERE principalId=? | /module-option | module-option |

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

2006-11-04 Thread jaikiran
Hang on a moment, even though the properties that you mentioned in the config are wrong, JBoss fires the default queries for the users and roles. Your logs mention: anonymous wrote : 20:01:05,281 DEBUG [RealmBase] Username admin does NOT have role user | 20:01:05,281 TRACE

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

2006-11-04 Thread yj4jboss
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

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

2006-11-04 Thread jaikiran
You mentioned, your web.xml contains: security-constraint | web-resource-collection | web-resource-nameAll resources/web-resource-name | descriptionProtects all resources/description | url-pattern/*/url-pattern |

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

2006-11-03 Thread jaikiran
anonymous wrote : Also i would like to be able to have the all the logs of the DatabaseServerLoginModule. Have a look at Q4 at: http://wiki.jboss.org/wiki/Wiki.jsp?page=SecurityFAQ to enable TRACE level logs of jboss security package. View the original post :