-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SMBAuthenticationError sometimes #272
Comments
Solved by indicate ntlm authentication explicitly |
Can you share more details on how you are creating the connection. Are you using explicit credentials or relying on the ccached ticket? It sounds like there might either be some sort of race condition or something else where |
@jborean93 I set
|
Setting an explicit username and password in the If you can still replicate the problem could you try and share the traceback? import traceback
try:
code_that_fails()
except:
traceback.print_exc()
raise |
I'm seeing this as well, where intermittently it fails. If the request is retried it succeeds.
I'm not using ClientConfig though. Should I be using that?
|
I went through the readme and it does recommend ClientConfig for global configuration and retest and see if the issue goes away. Based on your comment, it does not look like I need to explicitly set the auth_protocol. I'm going to try without that and report back if the intermittent issue disappears. Thanks. |
It's been ~24 hours now and I have not seen the error occur after I incorporated
|
Setting the client config should work and ensure a consisten authentication method. There's certainly a chance that some re-auth step for something like DFS or opening a sub share in an operation may not be passing through the credentials used in the initial call which we should fix up but we would need to know those details to fix it. |
Sometimes the command like
smbclient.listdir
has the following error, but sometimes not:When I restart my application, sometimes it works fine.
When regiester session, it seems successful:
The smb protocal is v2. Do I need to do more config?
The text was updated successfully, but these errors were encountered: