Hello,
You can look at this post. Note that it's not really helpful, but there are
several difficulties I went through.
http://www.jboss.com/index.html?module=bbop=viewtopict=67273
I opened a RFE concerning the support of role-mapping
regards,
dom
View the original post :
After many research, I think the answer is here :
http://wiki.jboss.org/wiki/Wiki.jsp?page=PortingFromWeblogic
For weblogic users :
There is a important difference between jboss and weblogic for webapp (and I
suppose for EJB too) :
In weblogic : you can map a role to realm groups/users using
Stopping thread. See answer in Servlet newsgroup.
Dom
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3888365#3888365
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888365
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
page.
- I added a piece of code in my 403.jsp. I added 3 lines :
0. System.out.println(request.getRemoteUser()); -- return djeanprost
1. System.out.println(request.isUserInRole(collaborateur)); where
collaborateur is a group of my group table. -- Return true, which is normal to
me.
2
I believe it's in the work dir of your server dir. You have to find out in
which of the sub-dir the jsp is.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3887854#3887854
Reply to the post :
I precise that if in my jboss-web.xml I use a role-name which is not declared
in a security-role of the web.xml, the webapp is not deployed saying there is
a mistake in the jboss-web.xml, which is normal.
So, my problem is that utilisateurCollaborateur is not mapped to the
principal-name I
page.
- I added a piece of code in my 403.jsp. I added 3 lines :
0. System.out.println(request.getRemoteUser()); -- return djeanprost
1. System.out.println(request.isUserInRole(collaborateur)); where
collaborateur is a group of my group table. -- Return true, which is normal to
me.
2
I made a dump of the request.getUserPrincipal(). Here it is :
14:53:46,846 INFO [STDOUT] debut de
org.jboss.web.tomcat.security.JBossGenericPrincipal
name = djeanprost
password = null
realm = [EMAIL PROTECTED]
roles =
debut de tableau
EPArchitectureSI
(request.getRemoteUser()); -- return djeanprost
1. System.out.println(request.isUserInRole(collaborateur)); where
collaborateur is a group of my group table. -- Return true, which is normal to
me.
2. System.out.println(request.isUserInRole(utilisateurCollaborateur)); --
false
utilisateurCollaborateur is a role
10 matches
Mail list logo