Skip to content
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

SMB2Client login to share in azure file store results in STATUS_ACCESS_DENIED #52

Closed
nortti opened this issue Aug 27, 2020 · 2 comments
Closed

Comments

@nortti
Copy link

nortti commented Aug 27, 2020

If I'm interpreting MS Docs correctly, SMB 2.1 client should work when secure transfer is disabled in the storage account settings.

Connecting to an Azure File share over SMB without encryption fails when secure transfer is required for the storage account. Examples of insecure connections include those made over SMB 2.1, SMB 3.0 without encryption, or some versions of the Linux SMB client.

image

var client = new SMB2Client();
if (client.Connect(iPAddress, SMBTransportType.DirectTCPTransport)) {
    NTStatus status = client.Login(domain, userName, password); // These are correct.
    // status is NTStatus.STATUS_ACCESS_DENIED
}

Wireshark dump

@TalAloni
Copy link
Owner

Hi,
Note that you provided a text file, not a WireShark capture.

Please provide a WireShark capture of a successful SMB2 connection an addition to the one created with the SMBLibrary that fails.
this way it will be possible to compare between the two.

@nortti
Copy link
Author

nortti commented Aug 28, 2020

Thanks for the quick reply. Using samba/smbclient with SMB2 yields the same error (SMB3 works). Mystery solved, azure file store is SMB3-only.

In reference to Your comment on #51, here you have a major product that requires SMB3.

@nortti nortti closed this as completed Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants