Security
Highlighted

having problem opening the tab Access Controls

Contributor
2015-05-04 14:09:58,693 ERROR   [55470d36594692be0] __init__:328 - Mako failed to render: 
Traceback (most recent call last):
  File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\splunk\appserver\mrsparkle\controllers\__init__.py", line 324, in render_template
    return templateInstance.render(**template_args)
  File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\mako\template.py", line 283, in render
    return runtime._render(self, self.callable_, args, data)
  File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\mako\runtime.py", line 575, in _render
    **_kwargs_for_callable(callable_, data))
  File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\mako\runtime.py", line 607, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\mako\runtime.py", line 633, in _exec_template
    callable_(context, *args, **kwargs)
  File "C:\Program Files\Splunk\share\splunk\search_mrsparkle\templates/layout/base.html", line 22, in render_body
    <%self:render/>
  File "C:\Program Files\Splunk\share\splunk\search_mrsparkle\templates/layout/base.html", line 37, in render_render
    ## define main HTML wrapper
  File "C:\Program Files\Splunk\share\splunk\search_mrsparkle\templates/layout/base.html", line 79, in render_pagedoc
    % elif APP and APP.get('id'):
  File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\splunk\appserver\mrsparkle\lib\config.py", line 153, in getConfig
    args.update(_get_app_config(namespace))
  File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\splunk\appserver\mrsparkle\lib\config.py", line 98, in _get_app_config
    rawConfig = splunk.bundle.getConf('app', namespace=app)
  File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\splunk\bundle.py", line 39, in getConf
    serverResponse, serverContent = rest.simpleRequest(uri, getargs={'fillcontents':1}, sessionKey=sessionKey)
  File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\splunk\rest\__init__.py", line 514, in simpleRequest
    raise splunk.AuthorizationFailed(extendedMessages=uri)
AuthorizationFailed: [HTTP 403] Client is not authorized to perform requested action; https://127.0.0.1:8089/servicesNS/admin/search/properties/app?fillcontents=1
Collapse

pls send me some help

Tags (2)
0 Karma
Highlighted

Re: having problem opening the tab Access Controls

Champion

With regard to your comment here about what you did that possibly caused this problem (removing the search capability), you could try to give it back to your users (roles) by setting authorize.conf directly. Have a look at the file in your etc/system/local and see if re-adding the capability fixes the issue; it should be [capability::search] (see the docs for more information). If you don't know how to do it, it might be helpful to have a look at the file in default to see what the default capabilities for your admin are.

0 Karma
Highlighted

Re: having problem opening the tab Access Controls

Contributor

im sorry for the trouble @jeffland. please bear with me with this. I need to fix this ASAP 😞 moving forward please have a look with what my authorize.conf contains

[roleuser]
accelerate
search = disabled
changeownpassword = disabled
editwinadmon = disabled
editwinperfmon = disabled
editwinregmon = disabled
editwinwmiconf = disabled
getmetadata = disabled
get
typeahead = disabled
inputfile = disabled
list
inputs = disabled
listpdfserver = disabled
list
winlocalavailablelogs = disabled
output
file = disabled
patterndetect = disabled
request
remotetok = disabled
rest
appsview = disabled
rest
propertiesget = disabled
rest
propertiesset = disabled
schedule
rtsearch = disabled
srchMaxTime = 8640000

0 Karma
Highlighted

Re: having problem opening the tab Access Controls

Champion

What I think you need to do is get back the search capability, especially for your admin role. So look for the [admin] stanza and make sure it says search=enabled under it (This could work based on the assumption this is the cause for the above error).

0 Karma
Highlighted

Re: having problem opening the tab Access Controls

Contributor

what i did was I change the stanza roleuser to roleAdmin .. then it works, for now. I can view already the tabs.

0 Karma