This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ACLs in Weblogic 6.1

 
Anand Nagloor
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was wanting to create ACL's on Servlet in Weblogic 6.1.
In 5.1 we did it in the weblogic.properties.
Can anyone explain how to create one in 6.1
Thanx in Advance!
 
Mon Mayor
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you have to use security constraints in the web.xml file.
 
Anand Nagloor
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx! I figured out the same.
Does any one have a sample of web.xml for ACLs???
 
Anand Nagloor
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How does the role mapping work in the weblogic.xml file??
How do I add the groups created from the console to the weblogic.xml or the web.xml file???
 
Dave Landers
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Anand Nagloor:
How does the role mapping work in the weblogic.xml file??
How do I add the groups created from the console to the weblogic.xml or the web.xml file???

When you add a role mapping in weblogc.xml, you list the principals. These can be either user names or group names that you have defined in the console. For example, look at the example at the bottom of this page:
http://e-docs.bea.com/wls/docs61/webapp/security.html
From that page, you have weblogic.xml with:
<security-role-assignment>
<role-name>mgr</role-name>
<principal-name>al</principal-name>
<principal-name>george</principal-name>
<principal-name>ralph</principal-name>
</security-role-ref>
That maps the role-name "mgr" from the web.xml to the principals al, george, and ralph (which seem to be user names - I suggest using group names here, it is easier to manage).
If you do not have a role mapping in weblogic.xml, the default mapping is that the role name is used as the principal name.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic