/[smeserver]/rpms/e-smith-samba/sme10/e-smith-samba-2.6.0-bz10963-bz10576-minprot-SMB2.patch
ViewVC logotype

Diff of /rpms/e-smith-samba/sme10/e-smith-samba-2.6.0-bz10963-bz10576-minprot-SMB2.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.2 by jpp, Tue Jun 23 18:06:00 2020 UTC Revision 1.4 by jpp, Sat Apr 17 01:32:00 2021 UTC
# Line 41  diff -Nur e-smith-samba-2.6.0.old/root/e Line 41  diff -Nur e-smith-samba-2.6.0.old/root/e
41  diff -Nur e-smith-samba-2.6.0.old/root/etc/e-smith/templates/etc/smb.conf/11minProtocol e-smith-samba-2.6.0/root/etc/e-smith/templates/etc/smb.conf/11minProtocol  diff -Nur e-smith-samba-2.6.0.old/root/etc/e-smith/templates/etc/smb.conf/11minProtocol e-smith-samba-2.6.0/root/etc/e-smith/templates/etc/smb.conf/11minProtocol
42  --- e-smith-samba-2.6.0.old/root/etc/e-smith/templates/etc/smb.conf/11minProtocol       1969-12-31 19:00:00.000000000 -0500  --- e-smith-samba-2.6.0.old/root/etc/e-smith/templates/etc/smb.conf/11minProtocol       1969-12-31 19:00:00.000000000 -0500
43  +++ e-smith-samba-2.6.0/root/etc/e-smith/templates/etc/smb.conf/11minProtocol   2020-06-23 13:57:34.819000000 -0400  +++ e-smith-samba-2.6.0/root/etc/e-smith/templates/etc/smb.conf/11minProtocol   2020-06-23 13:57:34.819000000 -0400
44  @@ -0,0 +1,24 @@  @@ -0,0 +1,16 @@
45  +{  +{
46  +# Normally this should not be set as the automatic negotiation phase in the SMB protocol takes care of choosing the appropiate protocol.  +# Normally this should not be set as the automatic negotiation phase in the SMB protocol takes care of choosing the appropiate protocol.
47  +    $OUT = "";  +    $OUT = "";
# Line 56  diff -Nur e-smith-samba-2.6.0.old/root/e Line 56  diff -Nur e-smith-samba-2.6.0.old/root/e
56  +    $OUT .= "client min protocol = $clientMinProt\n";  +    $OUT .= "client min protocol = $clientMinProt\n";
57  +    $OUT .= "server min protocol = $serverMinProt";  +    $OUT .= "server min protocol = $serverMinProt";
58  +  +
 +    if ($smb{ClientMinProtocol})  
 +    {  
 +        $OUT .= "client min protocol = $smb{ClientMinProtocol}\n";  
 +    }  
 +    if ($smb{ServerMinProtocol})  
 +    {  
 +        $OUT .= "server min protocol = $smb{ServerMinProtocol}";  
 +    }  
59  +}  +}
60  +  +
61  diff -Nur e-smith-samba-2.6.0.old/root/etc/e-smith/templates/etc/smb.conf/11smbPorts e-smith-samba-2.6.0/root/etc/e-smith/templates/etc/smb.conf/11smbPorts  diff -Nur e-smith-samba-2.6.0.old/root/etc/e-smith/templates/etc/smb.conf/11smbPorts e-smith-samba-2.6.0/root/etc/e-smith/templates/etc/smb.conf/11smbPorts
# Line 71  diff -Nur e-smith-samba-2.6.0.old/root/e Line 63  diff -Nur e-smith-samba-2.6.0.old/root/e
63  +++ e-smith-samba-2.6.0/root/etc/e-smith/templates/etc/smb.conf/11smbPorts      2020-06-23 13:57:48.232000000 -0400  +++ e-smith-samba-2.6.0/root/etc/e-smith/templates/etc/smb.conf/11smbPorts      2020-06-23 13:57:48.232000000 -0400
64  @@ -1,5 +1,7 @@  @@ -1,5 +1,7 @@
65   {   {
66      my $smb_ports = $smb{SMBPorts} || 139;  -   my $smb_ports = $smb{SMBPorts} || 139;
67    +   my $smb_ports = $smb{SMBPorts} || "139 445";
68    
69  +   $smb_ports = "$smb_ports 445" unless ( $smb_ports =~ /445/ || $ProtocolOrder{$serverMinProt} <= 5 );  +   $smb_ports = "$smb_ports 445" unless ( $smb_ports =~ /445/ || $ProtocolOrder{$serverMaxProt} <= 5 );
70  +  +
71      "smb ports = $smb_ports";      "smb ports = $smb_ports";
72   }   }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed