From f26b9c79380e438d408f101708a71defc4607491 Mon Sep 17 00:00:00 2001 From: Marc de Courville Date: Sat, 6 Jun 2020 15:41:25 +0200 Subject: [PATCH] Tryin to fix WD Cloud NAS smbv1 login see https://github.com/AgNO3/jcifs-ng/issues/226 --- src/com/archos/filecorelibrary/jcifs/JcifsUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/archos/filecorelibrary/jcifs/JcifsUtils.java b/src/com/archos/filecorelibrary/jcifs/JcifsUtils.java index ef3cbcf9..a5c45e13 100644 --- a/src/com/archos/filecorelibrary/jcifs/JcifsUtils.java +++ b/src/com/archos/filecorelibrary/jcifs/JcifsUtils.java @@ -126,6 +126,8 @@ private static CIFSContext createContextOnly(boolean isSmb2) { prop.put("jcifs.smb.client.useSMB2Negotiation", "false"); // get around https://github.com/AgNO3/jcifs-ng/issues/40 prop.put("jcifs.smb.client.ipcSigningEnforced", "false"); + // see https://github.com/AgNO3/jcifs-ng/issues/226 + prop.put("jcifs.smb.useRawNTLM", "true"); } // makes Guest work on Win10 https://github.com/AgNO3/jcifs-ng/issues/186 and must be true otherwise interferes with WD MyCloud cf. https://github.com/AgNO3/jcifs-ng/issues/225