Hello,
Anyway,this is the involved source code from the CIFS kernel module in fs/smb/client/fs_context.c (linux 6.1.66):
I would like to suggest opening a new discussion.in dmesg I get:I am sure that the sharename, my username and my password are correct, as I use the same when I connect the Time Capsule with Finder on my Macbook Air.Code:
[520241.361295] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers[520241.363054] CIFS: Attempting to mount \\192.168.1.2\TIMECAPSULE[520241.371934] CIFS: VFS: cifs_mount failed w/return code = -6
hopelfully, I can solve this with your help.
Anyway,this is the involved source code from the CIFS kernel module in fs/smb/client/fs_context.c (linux 6.1.66):
Code:
[..] 337 static int 338 cifs_parse_smb_version(struct fs_context *fc, char *value, struct smb3_fs_context *ctx, bool is_smb3) 339 { 340 substring_t args[MAX_OPT_ARGS]; 341 342 switch (match_token(value, cifs_smb_version_tokens, args)) { 343 #ifdef CONFIG_CIFS_ALLOW_INSECURE_LEGACY 344 case Smb_1: 345 if (disable_legacy_dialects) { 346 cifs_errorf(fc, "mount with legacy dialect disabled\n"); 347 return 1; 348 } 349 if (is_smb3) { 350 cifs_errorf(fc, "vers=1.0 (cifs) not permitted when mounting with smb3\n"); 351 return 1; 352 } 353 cifs_errorf(fc, "Use of the less secure dialect vers=1.0 is not recommended unless required for acces 353 s to very old servers\n"); 354 ctx->ops = &smb1_operations; 355 ctx->vals = &smb1_values; 356 break; [..]
Statistics: Posted by Aki — 2024-08-21 17:29