-
1. Re: Restricting access to different portals.
peterj Feb 26, 2008 11:53 AM (in response to dipinpoovathel)Have you read the documentation?
Also see http://www.jboss.com/index.html?module=bb&op=viewtopic&t=98753
and http://www.jboss.com/index.html?module=bb&op=viewtopic&t=115712 -
2. Re: Restricting access to different portals.
dipinpoovathel Feb 27, 2008 3:06 AM (in response to dipinpoovathel)Peter, Thanks for your reply. But this is not the one I want. I have multiple portals, say MyPortal1, MyPortal2, MyPortal3 etc... and I have muliple users. say User1, User2, User3 etc... Some of the user has Admin role and some of them had User role. Now I have to restrict access to MyPortal2 and MyPortal3 for User1. User1 should only have access to MyPortal1. Hope that I didnt confused you more..
-
3. Re: Restricting access to different portals.
peterj Feb 27, 2008 11:28 AM (in response to dipinpoovathel)One possibility. Define a role name Portal1Users. Add User1 to that role. For MyPortal1 assign the role Portal1Users viewrecursive (or personalizerecursive) permission, and remove all other permissions. Repat for the other portals. The User1 should have access to only MyPortal1.
-
4. Re: Restricting access to different portals.
dipinpoovathel Feb 29, 2008 10:55 AM (in response to dipinpoovathel)Thanks Peter. I think this is the way I have to follow. I did a prototype on this and its working good. But I have an issue, if user who doesnt have access to a portal trying access it I am getting Access denied: HTTP 403 Forbidden response error page. I need change that to a custom jsp page. I tried in the way described in refernce guide. I set the pproperties,
control.portal.access_denied
ignore
and
control.portal.resource_uri
/WEB-INF/jsp/error/portal.jsp
in my portal. But its not working. Still its showing Access denied: HTTP 403 Forbidden response error page. Do you know any way to chnage this to a custome jsp page? -
5. Re: Restricting access to different portals.
dipinpoovathel Feb 29, 2008 11:01 AM (in response to dipinpoovathel)Sorry Peter, the properties I set for the portal are
<property> <name>control.portal.access_denied</name> <value>jsp</value> </property>
and<property> <name>control.portal.resource_uri</name> <value>/WEB-INF/jsp/error/portal.jsp</value> </property>
-
6. Re: Restricting access to different portals.
peterj Feb 29, 2008 12:06 PM (in response to dipinpoovathel)I haven't tried this before. Maybe someone else has an can post a reply.
Possible long shot: add an error-page tag to the globla server/xxx/deploy/jboss-web.deployer/conf/web.xml file, and place the referenced html file in the server/xxx/deploy/jboss-web.deployer/ROOT.war directory. -
7. Re: Restricting access to different portals.
dipinpoovathel Mar 1, 2008 10:49 AM (in response to dipinpoovathel)Peter, I tried in that way also but its not working.