Ignore FSDriverRequired when attempting to get DFS information for a BadNetworkName handler
See original GitHub issueHi, the following error occurred:
Failed to authenticate with server: SpnegoError (1): SpnegoError (16): Operation not supported or available, Context: Retrieving NTLM store without NTLM_USER_FILE set to a filepath, Context: Unable to negotiate common mechanism
My code:
from smbclient import listdir, mkdir, register_session, rmdir, scandir, open_file
register_session(server=host, username=username, password=password)
with open_file(r"\\" + os.environ['fsxDns'] + "\\" + eKey, mode="w") as fd:
fd.write(eObjBody)
Traceback:
Traceback (most recent call last):
File "/opt/python/smbprotocol/session.py", line 278, in connect
out_token = context.step(in_token)
File "/opt/python/spnego/_negotiate.py", line 124, in step
mech_token_in, mech_list_mic, is_spnego = self._step_spnego_input(in_token=in_token)
File "/opt/python/spnego/_negotiate.py", line 171, in _step_spnego_input
mech_list = self._rebuild_context_list(mech_types=in_token.mech_types)
File "/opt/python/spnego/_negotiate.py", line 416, in _rebuild_context_list
raise BadMechanismError(context_msg="Unable to negotiate common mechanism", base_error=last_err)
spnego.exceptions.BadMechanismError: SpnegoError (1): SpnegoError (16): Operation not supported or available, Context: Retrieving NTLM store without NTLM_USER_FILE set to a filepath, Context: Unable to negotiate common mechanism
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/task/lambda_function.py", line 57, in lambda_handler
with open_file(r"\\" + os.environ['fsxDns'] + "\\" + eKey, mode="w") as fd:
File "/opt/python/smbclient/_os.py", line 369, in open_file
raw_fd = file_class(path, mode=mode, share_access=share_access, desired_access=desired_access,
File "/opt/python/smbclient/_io.py", line 377, in __init__
tree, fd_path = get_smb_tree(path, **kwargs)
File "/opt/python/smbclient/_pool.py", line 310, in get_smb_tree
session = register_session(server, username=username, password=password, port=port, encrypt=encrypt,
File "/opt/python/smbclient/_pool.py", line 383, in register_session
session.connect()
File "/opt/python/smbprotocol/session.py", line 280, in connect
raise SMBAuthenticationError("Failed to authenticate with server: %s" % str(err.message))
smbprotocol.exceptions.SMBAuthenticationError: Failed to authenticate with server: SpnegoError (1): SpnegoError (16): Operation not supported or available, Context: Retrieving NTLM store without NTLM_USER_FILE set to a filepath, Context: Unable to negotiate common mechanism
Any help will be appericated. Thank you 😄
Issue Analytics
- State:
- Created a year ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
procmon-parser/consts.py at master - GitHub
Python types for constant values in Procmon. """ import enum. from collections import OrderedDict. class RuleAction(enum.IntEnum):. EXCLUDE = 0. INCLUDE = 1.
Read more >Automated Malware Analysis Report for Process Monitor.exe
Exclude process from analysis (whitelisted): MpCmdRun.exe, ... Report size getting too big, too many NtDeviceIoControlFile calls found.
Read more >Viewing online file analysis results for 'ProcmonX.exe'
Indicators. Not all malicious and suspicious indicators are displayed. Get your own cloud service or the full version to view all details.
Read more >Attachment 2809 Details for Bug 19953 - Univention Bugzilla
Some compilers >+ * can use this information for optimizations. ... --localstatedir=/var --disable-pulse --disable-nl > find -name Makefile | while read i; ...
Read more >SecondWrite DeepView
A process attempted to delay the analysis task. ... this can be used to detect virtual machines that have a low amount of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m going to keep this open as a reminder to ignore
FSDriverRequired
in that particular bit of code. It would have hopefully made the problem clearer.ahhhh got it, I missed to add the share name in that string. Many thanks!