Hello Scott and thank you for answering,

I think I don't understand the whole thing, though it's clear to me when I use 
Weblogic. Maybe you can help me to improve my undestanding of jboss, can't you ?

What I understand :

Application developer want to restraitn access to specific URL and so use a 
<security-constraint> with a <auth-constraint>. From what I understand, the 
<role-name> of the <auth-constraint> are "logical" roles, ie, roles that as a 
business sense from the application developer point of view.  In my case, the 
logical role is "utilisateurCollaborateur". For each <role-name> you use in the 
<auth-constraint>, you have to add a <security-role> in you web.xml

As the application developer is not the application deployer, there has to be a 
way to do the mapping that says which users have the roles the application 
developer need to deal with. Actually, I believe the way to do that is the use 
of jboss-web.xml.
In Jboss-web.xml, for each role you mentioned in the <auth-constraint>, you 
have to the mapping "role-name" <--> "principal-name", where principal-name is 
the name of a user or a group you can find in you security realm. You can have 
several realm users/groups that builds a single role. That allows to avoid 
spreading application specific groups in the realm that exists anyway. As the 
realm is managed elsewhere and in it users may belong to specific group (I 
don't say role here), the whole thing has sense to me, and that's what I 
understand from the jboss documentation that I read carefully. This allow the 
application developer to use request.isUserInRole too, using <security-role>, 
instead of real groups of the db.

If it's not the way it works, can you tell me where I'm wrong ?

I'm looking forward to your answer.
Dom

"[EMAIL PROTECTED]" wrote : the only use of principal-name in the security-role 
is to assign additional roles to run-as principals. Authenticated users obtain 
their roles from the jaas login.

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

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


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to