Closed lermana closed 2 years ago
One thing I'm noticing is that the value of require_signing seems to change over the course of the request -- could that be the server telling me I need to handle signing
That's correct, the require_signing
option when you register the session is just you telling the client not to mandate signing from it's end. The server can still response in the Negotiate response that it requires signing turning it on for the connection. This logic is covered at https://github.com/jborean93/smbprotocol/blob/98422c904cfb7242e654570125a1d5d71fcb49f7/smbprotocol/connection.py#L809-L813
Now the error you are getting back is an authentication failure. The server is explicitly rejecting your username/password for some reason. The best thing you can do here is check the Security
event logs for when you attempted to connect and look at the reason and sub reason why the authentication failed. For example this is what I see when I sent the wrong password.
Hopefully that can give you enough info to start digging into why it's rejecting your authentication.
Thanks for the quick reply, @jborean93 -- very helpful.
Hello, thanks for putting together this library!
I am having trouble authenticating to an enterprise network drive using a service account, and I've turned on logging to get more clarity. Here's how I'm trying to connect:
One thing I'm noticing is that the value of
require_signing
seems to change over the course of the request -- could that be the server telling me I need to handle signing, or is there something in the code here that's overriding what I'm trying to set?My error: