Project

General

Profile

Bug #677

Error when enabling RADIUS user script

Added by Luke Murphey over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
-
Start date:
11/22/2013
Due date:
% Done:

100%


Description

See http://answers.splunk.com//answers/109469/how-to-improve-radius-sample-script-to-read-service-type-from-radius-response

Doing the search, I find this:
RESTException: [HTTP 409] [{'code': None, 'type': 'ERROR', 'text': "In handler 'Scripted-auth': The configuration 'radius_auth_script' already exists."}]
But I did erase the configuration file I added for the script.. is the restart after installing the app not enough, maybe?

History

#1 Updated by Luke Murphey over 10 years ago

Trying to figure out what is happening here. It is possible that a RESTException is now thrown instead of a ResourceNotFound. See http://lukemurphey.net/projects/splunk-radius-auth/repository/revisions/68/entry/trunk/src/bin/radius_auth_rest_handler.py#L471

#2 Updated by Luke Murphey over 10 years ago

I'm having a hard time reproducing the problem.

Here are the most likely candidates:

  • radius_auth_rest_handler::setAuthenticationScriptStatus: enables or disables with a call to "admin/Scripted-auth"
  • radius_auth_rest_handler::configureAuthenticationScript: creates the radius_auth_script stanza
Potential reasons
  1. An existing stanza already exists but the REST handler isn't detecting it
  2. The user lacks admin privileges
Questions I have:
  1. Does the stanza already exist?
  2. Where is the exception being thrown from? Is a stacktrace in the logs?

#3 Updated by Luke Murphey over 10 years ago

Here is the traceback:

Traceback (most recent call last): File "/opt/splunk/etc/apps/radius_auth/bin/radius_auth_rest_handler.py", line 581, in handleEdit self.configureAuthenticationScript(not disabled)
File "/opt/splunk/etc/apps/radius_auth/bin/radius_auth_rest_handler.py", line 201, in wrapper r = fx(self, args, *kwargs)
File "/opt/splunk/etc/apps/radius_auth/bin/radius_auth_rest_handler.py", line 493, in configureAuthenticationScript entity.setEntity( en, sessionKey = self.getSessionKey() )

The issue is in configureAuthenticationScript.

#4 Updated by Luke Murphey over 10 years ago

  • Status changed from New to In Progress

#5 Updated by Luke Murphey over 10 years ago

The issue was caused by a stray authentication stanza being left behind.

#6 Updated by Luke Murphey over 10 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF