mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
samba: Remove limitation that server only uses SMB2
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -93,7 +93,6 @@ $sambasettings{'MAPTOGUEST'} = 'Bad User';
|
||||
$sambasettings{'LOGLEVEL'} = '3 passdb:5 auth:5 winbind:2';
|
||||
$sambasettings{'WIDELINKS'} = 'on';
|
||||
$sambasettings{'UNIXEXTENSION'} = 'off';
|
||||
$sambasettings{'SMB2'} = 'on';
|
||||
### Values that have to be initialized
|
||||
$sambasettings{'ACTION'} = '';
|
||||
### Samba CUPS Variablen
|
||||
@@ -169,7 +168,6 @@ if ($sambasettings{'ACTION'} eq 'globalresetyes')
|
||||
$sambasettings{'PREFERREDMASTER'} = 'off';
|
||||
$sambasettings{'WIDELINKS'} = 'on';
|
||||
$sambasettings{'UNIXEXTENSION'} = 'off';
|
||||
$sambasettings{'SMB2'} = 'on';
|
||||
$PDCOPTIONS = `cat ${General::swroot}/samba/pdc`;
|
||||
system("/usr/local/bin/sambactrl smbreload");
|
||||
refreshpage();
|
||||
@@ -267,14 +265,6 @@ passdb backend = smbpasswd
|
||||
|
||||
wide links = $sambasettings{'WIDELINKS'}
|
||||
unix extensions = $sambasettings{'UNIXEXTENSION'}
|
||||
END
|
||||
;
|
||||
|
||||
if ($sambasettings{'SMB2'} eq 'on'){
|
||||
print FILE "max protocol = smb2\n";
|
||||
}
|
||||
|
||||
print FILE <<END
|
||||
os level = $sambasettings{'OSLEVEL'}
|
||||
|
||||
map to guest = $sambasettings{'MAPTOGUEST'}
|
||||
@@ -394,9 +384,6 @@ $checked{'WIDELINKS'}{$sambasettings{'WIDELINKS'}} = "checked='checked'";
|
||||
$checked{'UNIXEXTENSION'}{'off'} = '';
|
||||
$checked{'UNIXEXTENSION'}{'on'} = '';
|
||||
$checked{'UNIXEXTENSION'}{$sambasettings{'UNIXEXTENSION'}} = "checked='checked'";
|
||||
$checked{'SMB2'}{'off'} = '';
|
||||
$checked{'SMB2'}{'on'} = '';
|
||||
$checked{'SMB2'}{$sambasettings{'SMB2'}} = "checked='checked'";
|
||||
$checked{'GREEN'}{'off'} = '';
|
||||
$checked{'GREEN'}{'on'} = '';
|
||||
$checked{'GREEN'}{$sambasettings{'GREEN'}} = "checked='checked'";
|
||||
@@ -488,8 +475,6 @@ print <<END
|
||||
<input type='radio' name='WIDELINKS' value='off' $checked{'WIDELINKS'}{'off'} /> off</td></tr>
|
||||
<tr><td align='left' width='40%'>Unix extension</td><td align='left'>on <input type='radio' name='UNIXEXTENSION' value='on' $checked{'UNIXEXTENSION'}{'on'} />/
|
||||
<input type='radio' name='UNIXEXTENSION' value='off' $checked{'UNIXEXTENSION'}{'off'} /> off</td></tr>
|
||||
<tr><td align='left' width='40%'>SMB2 $Lang::tr{'protocol'}</td><td align='left'>on <input type='radio' name='SMB2' value='on' $checked{'SMB2'}{'on'} />/
|
||||
<input type='radio' name='SMB2' value='off' $checked{'SMB2'}{'off'} /> off</td></tr>
|
||||
<tr><td align='left'><br /></td><td></td></tr>
|
||||
<tr bgcolor='$color{'color20'}'><td colspan='2' align='left'><b>$Lang::tr{'security options'}</b></td></tr>
|
||||
<tr><td align='left' width='40%'>$Lang::tr{'security'}</td><td align='left'><select name='SECURITY' style="width: 165px">
|
||||
|
||||
Reference in New Issue
Block a user