Koozali.org: home of the SME Server

Samba and MFP - Setting version

Offline nicolatiana

  • *
  • 721
  • +0/-0
Samba and MFP - Setting version
« on: June 30, 2022, 12:36:52 PM »
After move from Sme9 to Sme my Ricoh's MFP printer stopped working with ScanToFolder options.


I suppose the cause in SMB version (Printer seem working only with SMBV1) so I should try to config correct DB parameters server side in Samba. On printer side there's no option to configure SMB version (i'm waitin replay to possible firmware upgrade).

config setprop smb ServerMaxProtocol NT3


is actual setting.

config setprop smb ServerMinProtocol NT1


is this correct to have server enable to reply to SMB1/2/3 calls ?

 
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia.

Offline Gary Douglas

  • *
  • 68
  • +1/-0
Re: Samba and MFP - Setting version
« Reply #1 on: June 30, 2022, 12:42:44 PM »
You could try updating the Ricoh's firmware.
It was a while ago I had the same problem, updated firmware then googled the issue.
Came up with the following;

Ricoh Aficio MP C3503 = 192.168.1.100  admin /  no-password

Choose TELNET and insert the Ricohs IP address and connect
username: admin    Password: usually blank

msh> smb client auth
(This Displays the current SMB setting)
0 value = SMB1.0 client uses NTLM/LM authentication
1 value = SMB2.0 client uses NTLMv2/NTLM/LM authentication.

msh> smb client auth 1
(This Enables NTLMv2 /smb2)

msh> logout
(Saves data)

Offline nicolatiana

  • *
  • 721
  • +0/-0
Re: Samba and MFP - Setting version
« Reply #2 on: July 04, 2022, 08:43:49 AM »
Many thanks !


I'll give it a try as soon as possible.
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia.

Offline nicolatiana

  • *
  • 721
  • +0/-0
Re: Samba and MFP - Setting version
« Reply #3 on: July 19, 2022, 06:36:04 PM »
After modification in MFP and tricking SMB I'm able to browse again the entire network.

Quote

[root@sme9-file ~]# config show smb
smb=service
    DeadTime=10080
    KeepVersions=disabled
    OpLocks=enabled
    OsLevel=35
    RecycleBin=disabled
    RoamingProfiles=no
    ServerMaxProtocol=NT3
    ServerMinProtocol=NT1
    ServerName=sme9-file
    ServerRole=WS
    ShadowCount=10
    ShadowDir=/home/e-smith/files/.shadow
    UnixCharSet=UTF8
    UseClientDriver=yes
    Workgroup=chesterperryw
    status=enabled

Thx.
« Last Edit: July 19, 2022, 07:04:44 PM by nicolatiana »
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia.

Offline ReetP

  • *
  • 3,722
  • +5/-0
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Samba and MFP - Setting version
« Reply #5 on: July 20, 2022, 03:53:19 AM »
available value depends on samba version. You are always better to do man smb.cnf to check this on the machine.


however i am pretty pleased to have it fail proof seeing this test with non existing options. 

Code: [Select]
our %ProtocolOrder = (      CORE => 1, # samba client default without explicit option; not available for server
                                COREPLUS => 2, # not available for server
                                LANMAN1 => 3, #samba server default without explicit option
                                LANMAN2 => 4,
                                NT1 => 5, # CIFS or SMB1
                                SMB2_02 => 6,
                                SMB2_10 => 7,
                                SMB2 => 7, # yes SMB2 default to 2_10
                                SMB2_22 => 8,
                                SMB2_24 => 9,
                                SMB3_00 => 10,
                                SMB3_02 => 11,
                                SMB3_10 => 12,
                                SMB3_11 => 13,
                                'SMB3' => 13 # yes SMB3 default to SMB3_11
                        );
    $clientMaxProt = $smb{ClientMaxProtocol} || "SMB3";
    $serverMaxProt = $smb{ServerMaxProtocol} || "SMB3";
    #checking option is possible
    $clientMaxProt = ( exists($ProtocolOrder{$clientMaxProt}) ) ? $clientMaxProt : "SMB3";

did similar for min protocol

Offline nicolatiana

  • *
  • 721
  • +0/-0
Re: Samba and MFP - Setting version
« Reply #6 on: July 20, 2022, 11:03:02 AM »
Many thanks guys.


As always I made jams ....  :-D


Nicola
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia.

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Samba and MFP - Setting version
« Reply #7 on: July 20, 2022, 01:07:37 PM »
keep on the good work.  you help making it better ;)