Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

Python SDK - 403 with AD account

$
0
0

Good evening, everyone!

 

I have been using the Python SDK for quite some time now and just recently I've run into a situation where making simple queries results in a 403 when using a service account within AD. If I use a local account within Solarwinds, I do not get this error--however, I am required to use an AD account for compliance purposes.

 

This simple query creates the swis object, but the query returns the below error. When I use a local account, it works fine. Any thoughts on where I could check next?

 

#Create connection to Solarwinds.

 

swis = orionsdk.SwisClient("URL", sys.argv[1], sys.argv[2])


print ( swis.query("SELECT BranchNumber FROM Orion.NodesCustomProperties"))

 

Traceback (most recent call last):

  File "swBranchNumNameCompare.py", line 13, in <module>

    print ( swis.query("SELECT BranchNumber FROM Orion.NodesCustomProperties"))

  File "C:\Users\user\AppData\Roaming\Python\Python36\site-packages\orionsdk\swisclient.py", line 24, in query

    {'query': query, 'parameters': params}).json()

  File "C:\Users\user\AppData\Roaming\Python\Python36\site-packages\orionsdk\swisclient.py", line 59, in _req

    resp.raise_for_status()

  File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\requests\models.py", line 935, in raise_for_status

    raise HTTPError(http_error_msg, response=self)

requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://url:17778/SolarWinds/InformationService/v3/Json/Query


Viewing all articles
Browse latest Browse all 2677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>