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

STATUS_ACCESS_DENIED(3221225506/3221225506): Could not connect to <smb drive folder path> #803

Open
kadirchisty opened this issue Nov 30, 2023 · 5 comments

Comments

@kadirchisty
Copy link

After activating SMB data-in-transit encryption on smb shares, we are facing below error from SMBJ jar.

STATUS_ACCESS_DENIED(3221225506/3221225506): Could not connect to
com.hierynomus.mssmb2.SMBApiException: STATUS_ACCESS_DENIED(3221225506/3221225506): Could not connect to
at com.hierynomus.smbj.session.Session.connectTree(Session.java:169) ~[smbj-0.6.0.jar:0.6.0]
at com.hierynomus.smbj.session.Session.connectShare(Session.java:139) ~[smbj-0.6.0.jar:0.6.0]

Recommendation is to use SMB 3.0 protocol.

Any help on how we can make use of SMB 3.0 protocol with smbj jar is much appreciated.

@hierynomus
Copy link
Owner

What is the SmbConfig you're using?

@kadirchisty
Copy link
Author

Hi @hierynomus,

SmbConfig.builder().withDfsEnabled(true).withMultiProtocolNegotiate(true).build();

@kadirchisty
Copy link
Author

@hierynomus - Please let's know incase of any updates

@hierynomus
Copy link
Owner

Have you tried adding withEncryption(true) to the SmbConfig?

@kadirchisty
Copy link
Author

@hierynomus Thanks for quick response. With above change in smbjConfig and upgrading to latest smbj library version, it is connecting without issues.

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