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

access to Windows 10 not working #278

Closed
rpolzer opened this issue Apr 24, 2021 · 2 comments
Closed

access to Windows 10 not working #278

rpolzer opened this issue Apr 24, 2021 · 2 comments

Comments

@rpolzer
Copy link

rpolzer commented Apr 24, 2021

  • device A running Windows 10 with user A with password, having shares open for access by everybody without credentials
  • device B running Windows 10 with user B without password, having shares open for access by everybody without credentials
  • device C running Android and using jcifs-ng 2.1.5

A and B can use the shares of each other without credentials.
C can use the shares of A only when entering username and password.
C cannot use the shares of B, jcifs asks always for credentials.
I have tried the following combinations, all of them fail:

  • username + no password
  • username + wrong password
  • guest + no password
  • guest + wrong password

Before using jcifs-ng 2.1.5, I used jcifs 1.3.19, which allowed C to use the shares of B without credentials.

@mbechler
Copy link
Contributor

jcifs-ng no longer does permit automatic fallback to guest authentication (which is a special authentication mode in SMB), you would have to request that using the withGuestCredentials(). Have you tried that?

@rpolzer
Copy link
Author

rpolzer commented Apr 26, 2021

Thank you for this hint! Now it works as expected:

Properties p = new Properties();
p.put("jcifs.smb.client.ipcSigningEnforced", "false");
p.put("jcifs.smb.client.useExtendedSecurity", "false");
CIFSContext c = new BaseContext(new PropertyConfiguration(p)).withGuestCrendentials();

@rpolzer rpolzer closed this as completed Apr 26, 2021
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