[JBoss-user] [Security & JAAS/JBoss] - Re: Access to HttpServletRequest in custom LoginModule

2004-07-15 Thread ceasaros
In a javax.servlet.Filter you can acces the authenticated/authorizated Principal where you can add your own values to the Principal. The Principal will travel to the ejb context where you can retrieve the values you put in the Principal. For this you probably need to define your own Principal.

[JBoss-user] [Security & JAAS/JBoss] - Re: Roles dependent on username and a company.

2004-07-15 Thread ceasaros
Thanks for all you're help but I already read that topic and applied it to my own LoginModule. I will try to be more clear now: This is the isMember(Principal member) method I wrote in my custom Group class. | public class MyGroup extends MyPrincipal implements Group { | | ... | |

[JBoss-user] [Security & JAAS/JBoss] - Re: ClientLoginModule works incorectly

2004-07-15 Thread ceasaros
It is build in into JBoss 3.2.4 and thus also 3.2.5. I have an application working with my own Principal on both 3.2.4 and 3.2.5. I added a http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842117#3842117 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=repl

[JBoss-user] [Security & JAAS/JBoss] - Re: Roles dependent on username and a company.

2004-07-14 Thread ceasaros
That's correct I wrote my own getRoleSets() and I can get al the roles for every company for that user, but when the users authorization is checked the boolean isMember(Principal member) method of the Group is called here is where I need to check if the user has the correct role for that compan

[JBoss-user] [Security & JAAS/JBoss] - Re: EJB Security

2004-07-14 Thread ceasaros
Maybe it's possible for you to use a filter instead of a servlet. (servlet2.3 specs). The filter is always executed before handling the request in a servlet. I though you can filter you're request before it's authenticated by Tomcat/JBoss but than again I think the authentication is executed bef

[JBoss-user] [Security & JAAS/JBoss] - Re: Is it possible to deploy a security domain instead of al

2004-07-14 Thread ceasaros
Thanks looks like a solution, I look into it. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842110#3842110 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842110 ---

[JBoss-user] [Security & JAAS/JBoss] - Re: Dynamic login page

2004-07-14 Thread ceasaros
I must be possible to make the login page dynamic using an server side action (e.g. a Struts action, login.do). In this action you can forward to the login in page you want depending on your module. Hope this is what you where looking for. View the original post : http://www.jboss.org/index.ht

[JBoss-user] [Security & JAAS/JBoss] - Re: Roles dependent on username and a company.

2004-07-14 Thread ceasaros
Thank you for your reply but for me this isn't the solution, cause if have a dynamic company. In your solution only the 'id_usuario' can be replaced, what I would like to have is a database query like this: select roles from userroles where userid=? AND company=? In this query both userid and c

[JBoss-user] [Security & JAAS/JBoss] - Roles dependent on username and a company.

2004-07-13 Thread ceasaros
I have a situation in which the roles a Subject gets depends not only on the username but also on for example a company. e.g. user1 has roles 'guest' and 'admin' for company1 but user1 has only role 'guest' for company2. I solved this now by writing my own LoginModule in which I use my own defin

[JBoss-user] [Security & JAAS/JBoss] - Is it possible to deploy a security domain instead of alteri

2004-07-13 Thread ceasaros
It would be nice to be able to deploy the security domain for a web application. (just like a datasource). Now i wrote an ant target that adds a security domain to / modifies an existing security domain in the login-config.xml. The reason I would this is that I can patch a JBoss server with the

[JBoss-user] [Security & JAAS/JBoss] - Re: EJB Security

2004-07-13 Thread ceasaros
You perform the authentication / authorization within the web application environment and not in the ejb application environment. So your principal is only available inside your webserver (tomcat) and not in the ejb application environment. If you don't want security in your webapplication how d

[JBoss-user] [Security & JAAS/JBoss] - Re: JbossSecurityMgrRealm problem in Jboss 3.2.4-tomcat 5.0.

2004-06-28 Thread ceasaros
I'm sorry I can't help you with an anwser, because I'm having the same problem. If there is a solution I would hear it too. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840105#3840105 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting