Skip to main content
Level 2
Mar 29, 2016 4:56 PM UTC
Solved

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

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.
dgainor123Accepted solution
Level 2
Mar 29, 2016 6:08 PM UTC

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_
New Member
Mar 29, 2016 5:40 PM UTC

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. 

Translate
Kunal_Gaba_
New Member
Mar 29, 2016 5:44 PM UTC

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. 

Translate
Level 2
Mar 29, 2016 6:00 PM UTC

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"

Translate
Kunal_Gaba_
New Member
Mar 29, 2016 6:05 PM UTC

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. 

Translate
dgainor123AuthorAccepted solution
Level 2
Mar 29, 2016 6:08 PM UTC

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"]

Translate