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 = ""; |
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 |
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 |
} |
} |