mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
samba: Remove socket options
It is not useful to set this on a modern server. The Linux kernel will be tuning any send and receive buffer sizes. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -95,7 +95,6 @@ $sambasettings{'MAPTOGUEST'} = 'Bad User';
|
||||
$sambasettings{'LOGLEVEL'} = '3 passdb:5 auth:5 winbind:2';
|
||||
$sambasettings{'DOSCHARSET'} = 'CP850';
|
||||
$sambasettings{'UNIXCHARSET'} = 'UTF8';
|
||||
$sambasettings{'SOCKETOPTIONS'} = 'TCP_NODELAY SO_KEEPALIVE';
|
||||
$sambasettings{'WIDELINKS'} = 'on';
|
||||
$sambasettings{'UNIXEXTENSION'} = 'off';
|
||||
$sambasettings{'SMB2'} = 'on';
|
||||
@@ -176,7 +175,6 @@ if ($sambasettings{'ACTION'} eq 'globalresetyes')
|
||||
$sambasettings{'LOCALMASTER'} = 'off';
|
||||
$sambasettings{'DOMAINMASTER'} = 'off';
|
||||
$sambasettings{'PREFERREDMASTER'} = 'off';
|
||||
$sambasettings{'SOCKETOPTIONS'} = 'TCP_NODELAY SO_KEEPALIVE';
|
||||
$sambasettings{'WIDELINKS'} = 'on';
|
||||
$sambasettings{'UNIXEXTENSION'} = 'off';
|
||||
$sambasettings{'SMB2'} = 'on';
|
||||
@@ -303,7 +301,6 @@ null passwords = yes
|
||||
|
||||
bind interfaces only = true
|
||||
interfaces = $sambasettings{'INTERFACES'}
|
||||
socket options = $sambasettings{'SOCKETOPTIONS'}
|
||||
remote announce = $sambasettings{'REMOTEANNOUNCE'}
|
||||
remote browse sync = $sambasettings{'REMOTESYNC'}
|
||||
|
||||
@@ -535,7 +532,6 @@ print <<END
|
||||
<tr><td align='left'><br /></td><td /></tr>
|
||||
<tr bgcolor='$color{'color20'}'><td colspan='2' align='left'><b>$Lang::tr{'network options'}</b></td></tr>
|
||||
<tr><td align='left' width='40%'>$Lang::tr{'os level'}</td><td align='left'><input type='text' name='OSLEVEL' value='$sambasettings{'OSLEVEL'}' size="30" /></td></tr>
|
||||
<tr><td align='left' width='40%'>$Lang::tr{'socket options'}</td><td align='left'><input type='text' name='SOCKETOPTIONS' value='$sambasettings{'SOCKETOPTIONS'}' size="30" /></td></tr>
|
||||
<tr><td align='left' width='40%'>$Lang::tr{'remote announce'}</td><td align='left'><input type='text' name='REMOTEANNOUNCE' value='$sambasettings{'REMOTEANNOUNCE'}' size="30" /></td></tr>
|
||||
<tr><td align='left' width='40%'>$Lang::tr{'remote browse sync'}</td><td align='left'><input type='text' name='REMOTESYNC' value='$sambasettings{'REMOTESYNC'}' size="30" /></td></tr>
|
||||
END
|
||||
|
||||
@@ -36,6 +36,7 @@ restore_backup ${NAME}
|
||||
# Migrate configuration from Samba 3.6 to 4.x
|
||||
sed -i /var/ipfire/samba/smb.conf \
|
||||
-e "/^display charset =/d" \
|
||||
-e "/^socket options =/d" \
|
||||
-e "/^syslog/d" \
|
||||
-e "s/^security = share$/security = user/"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user