71 |
+++ 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 |
72 |
@@ -1,5 +1,7 @@ |
@@ -1,5 +1,7 @@ |
73 |
{ |
{ |
74 |
my $smb_ports = $smb{SMBPorts} || 139; |
- my $smb_ports = $smb{SMBPorts} || 139; |
75 |
|
+ my $smb_ports = $smb{SMBPorts} || "139 445"; |
76 |
|
|
77 |
+ $smb_ports = "$smb_ports 445" unless ( $smb_ports =~ /445/ || $ProtocolOrder{$serverMinProt} <= 5 );# $ProtocolOrder{$serverMinProt} > 5 |
+ $smb_ports = "$smb_ports 445" unless ( $smb_ports =~ /445/ || $ProtocolOrder{$serverMaxProt} <= 5 ); |
78 |
+ |
+ |
79 |
"smb ports = $smb_ports"; |
"smb ports = $smb_ports"; |
80 |
} |
} |