Broke access to web console, how to get access back? | Community
Skip to main content
Level 2
March 29, 2016
Solved

Broke access to web console, how to get access back?

  • March 29, 2016
  • 5 replies
  • 2708 views

I changed permissions in the sling security configuration.

.webconsolesecurityprovider.internal.SlingWebConsoleSecurityProvider

I added users and now I can not even get the admin to log into the web console.

How can I get reset this and get access back?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by dgainor123

I figured it out. You can edit it in the top window of crx in the jcr:content.

This time I created a group and added that

# Configuration created by Apache Sling JCR Installer
groups=["web-console-access"]
users=["admin"]

5 replies

Kunal_Gaba_
March 29, 2016

You can reset the configuration by updating the OSGI configuration in crx. Open crx/de and update the configuration found here - /apps/sysadmin/config/org.apache.sling.extensions.webconsolesecurityprovider.internal.SlingWebConsoleSecurityProvider and then click on save. 

Kunal_Gaba_
March 29, 2016

Search for SlingWebConsoleSecurityProvider in crx/de. You may find it in libs as well. 

If the configuration does not existthen you can manually create the sling:OsgiConfig node under /apps/sysadmin/config folder and add the multi valued String properties named users and groups to that node. Then just update the properties values and click on save. 

Level 2
March 29, 2016

I can get to the configuration at /apps/system/config.

However, when I try to add a users or groups string it says "No Matching Property Definition Found"

Kunal_Gaba_
March 29, 2016

I think you are trying to add the properties to the config folder. Instead create a new node under config named "org.apache.sling.extensions.webconsolesecurityprovider.internal.SlingWebConsoleSecurityProvider" and type "sling:OsgiConfig". Add users and groups property of String[] type to this node and update the values. 

dgainor123AuthorAccepted solution
Level 2
March 29, 2016

I figured it out. You can edit it in the top window of crx in the jcr:content.

This time I created a group and added that

# Configuration created by Apache Sling JCR Installer
groups=["web-console-access"]
users=["admin"]