Bug #677
Error when enabling RADIUS user script
100%
Description
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
- An existing stanza already exists but the REST handler isn't detecting it
- The user lacks admin privileges
- Does the stanza already exist?
- 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