Giving a user access to administration console

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2010 05:14 AM
Best reguards,
Pedro
- Labels:
-
Archive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2010 06:34 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2010 07:12 AM
Couldn't find anything in manuals or forums. Haven't got an answer on my post either.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2010 08:03 AM
web.xml
Admin Authentication Filter ( you can remove the usage of admin filter , this would be wrong idea, but you can do this)
class

you can create some cind of group for "admin" users and checking this in the class adminAuthfilter if they are in this group then give them access.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2010 10:11 AM
you can create some cind of group for "admin" users and checking this in the class adminAuthfilter if they are in this group then give them access.
that seems ideal, but i still needed to remove the access to the dictionary space and i think that if i make a user an admin, i cant stop him from accessing a space.
i tried removing these fields:
You can do this by editing :
web.xml
Admin Authentication Filter ( you can remove the usage of admin filter , this would be wrong idea, but you can do this)
classrg.alfresco.web.app.servlet.AdminAuthenticationFilter , this class checks if current user is admin or not .
but i still couldnt create a user using with a user that wasnt an admin.
Am i missing something?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2010 11:19 AM
for instance:
you have to code in that class ( you would replace that class with your own and inherit it ) next: if current user in in group : LIKE_ADMIN_GROUP filter it.
and you create in alfresco group LIKE_ADMIN_GROUP and this should do it.**
** this filter like authentification filter filters who has access to what .
if (isAdmin) {//add hire : //get all users from that groupauthorities = this.getAuthorityService() .getContainedAuthorities(AuthorityType.USER, "GROUP_NAME_GROUP", immediate);//get current userString currentUserName=Application.getCurrentUser(FacesContext.getCurrentInstance()).getUserName();//check if current user is in this groupfor (String authority : authorities) {NodeRef ref = this.getPersonService().getPerson(authority);String userName= this.getNodeService().getProperty(ref, ContentModel.PROP_USERNAME);if(userName.equals(currentUserName))//current user is in this group{ chain.doFilter(req, res);}}this sould do it, you would have acces to admin parts, also you can create multiple filters, and define some kind of security for your self. So have funn coding this out, but I think this is more or less what you need to make it nice and net .PS: change classs of filter admin authentification filter according to what you jave coded out. chain.doFilter(req, res); //if is admin go to the page like /jsp/admin/…. } else { httpResponse.sendError(HttpServletResponse.SC_FORBIDDEN); //return 403 } }

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2010 12:42 PM
And I'm afraid I would like some more detailed instructions on how to do this.
Savic, could you edit your post to make it complete and maybe give some more hints?
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2010 10:20 AM
I will send you code soon( monday or tuesday) and I guess you will have solved problem. If this time frame is ok, if not you could $$ to someone to get you the code faster.
send me the version of your alfresco.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2010 06:36 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2010 06:43 AM
