You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a code that querying some information from Windows server with pypsrp. The code works fine on all tested instances (10+) with one single exception. I have no access to that particular Windows box so troubleshooting is hardly possible.
Here is the log:
2021-02-26 15:37:32,414 ERROR [48330] [main] Traceback (most recent call last):
File "/opt/app-root/app/query_xxxxxx.py", line 175, in main
exch = MainClass(server=server, port=port, username=username, password=password, ssl=ssl, auth=auth, cert_validation=cert_validation, conf=conf)
File "base.py", line 913, in app.base.MainClass.__init__
File "base.py", line 977, in app.base.MainClass.check_data
File "base.py", line 1096, in app.base.MainClass.run_export
File "/usr/local/lib/python3.6/site-packages/pypsrp/powershell.py", line 205, in __enter__
self.open()
File "/usr/local/lib/python3.6/site-packages/pypsrp/powershell.py", line 513, in open
self.shell.open(options, open_content)
File "/usr/local/lib/python3.6/site-packages/pypsrp/shell.py", line 204, in open
option_set=options)
File "/usr/local/lib/python3.6/site-packages/pypsrp/wsman.py", line 270, in create
option_set, selector_set, timeout)
File "/usr/local/lib/python3.6/site-packages/pypsrp/wsman.py", line 389, in invoke
response = self.transport.send(xml)
File "/usr/local/lib/python3.6/site-packages/pypsrp/wsman.py", line 734, in send
elif self.session.auth.contexts[hostname].response_auth_header == 'kerberos':
KeyError: 'server.host.name'
Some related details:
the server.host.name mentioned above is the one I'm connecting to
the code is executed from Linux box within docker image
KRB5 is properly configured and no authentication issues here, kinit is OK
Can you please take a look on this? Any ideas where to start digging?
The text was updated successfully, but these errors were encountered:
Hi!
I have a code that querying some information from Windows server with pypsrp. The code works fine on all tested instances (10+) with one single exception. I have no access to that particular Windows box so troubleshooting is hardly possible.
Here is the log:
Some related details:
Can you please take a look on this? Any ideas where to start digging?
The text was updated successfully, but these errors were encountered: