The bundle that we need to configure has the package name of org.apache.sling.extensions.webconsolesecurityprovider.internal.SlingWebConsoleSecurityProvider. In the OSGi console, you can set the users by doing the following:
- Navigate to /system/console/configMgr
- Click the "edit" button next to "Apache Sling Web Console Security Provider"
- Add users/groups to the appropriate field. It expects a comma-separated list (i.e admin,testuser, ...)
- Click save
The content of this file must specify the values for the allowed users and groups for the OSGi console. Here is a sample content of the config file, allowing the user "admin" and the group "administrators" to have access:
groups=["administrators"]
users=["admin"]
If you wanted to allow several users/groups, again this is a comma-separated list. For example, if you wanted to allow both the "admin" user and "test" user, it would look like the following:
users=["admin","test"]
Source: http://www.6dglobal.com/blog/cq55-osgi-systemconsole-permissions-2012-09-07
Source: http://www.6dglobal.com/blog/cq55-osgi-systemconsole-permissions-2012-09-07
No comments:
Post a Comment
If you have any doubts or questions, please let us know.