File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes ACLs in Weblogic 6.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "ACLs in Weblogic 6.1" Watch "ACLs in Weblogic 6.1" New topic
Author

ACLs in Weblogic 6.1

Anand Nagloor
Greenhorn

Joined: Aug 07, 2001
Posts: 6
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

Joined: Mar 07, 2002
Posts: 40
you have to use security constraints in the web.xml file.
Anand Nagloor
Greenhorn

Joined: Aug 07, 2001
Posts: 6
Thanx! I figured out the same.
Does any one have a sample of web.xml for ACLs???
Anand Nagloor
Greenhorn

Joined: Aug 07, 2001
Posts: 6
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

Joined: Jul 24, 2002
Posts: 401
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.
 
jQuery in Action, 2nd edition
 
subject: ACLs in Weblogic 6.1
 
Similar Threads
Custom 404 pages in WebLogic6.1
weblogic shutdown automaticllly
Problems hot-deploying EJBs to an existing application
Doubt On Connection Pool
Start-up and shutdown class