mirror of
https://github.com/unraid/webgui.git
synced 2026-01-23 09:59:59 -06:00
104 lines
3.8 KiB
Plaintext
104 lines
3.8 KiB
Plaintext
Menu="SMB:1"
|
|
Title="SMB Settings"
|
|
Tag="windows"
|
|
---
|
|
<?PHP
|
|
/* Copyright 2005-2020, Lime Technology
|
|
* Copyright 2012-2020, Bergware International.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License version 2,
|
|
* as published by the Free Software Foundation.
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*/
|
|
?>
|
|
<form markdown="1" name="SMBEnable" method="POST" action="/update.htm" target="progressFrame">
|
|
|
|
_(Enable SMB)_:
|
|
: <select name="shareSMBEnabled" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
|
|
<?=mk_option($var['shareSMBEnabled'], "no", _('No'))?>
|
|
<?=mk_option($var['shareSMBEnabled'], "yes", _('Yes').' ('._('Workgroup').')')?>
|
|
<?=mk_option($var['shareSMBEnabled'], "ads", _('Yes').' ('._('Active Directory').')')?>
|
|
</select>
|
|
|
|
:help72
|
|
> Select 'Yes (Workgroup)' to enable SMB (Windows Networking) protocol support. This
|
|
> also enables Windows host discovery.
|
|
>
|
|
> Select 'Yes (Active Directory)' to enable Active Directory integration.
|
|
:end
|
|
|
|
_(Hide "dot" files)_:
|
|
: <select name="hideDotFiles" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
|
|
<?=mk_option($var['hideDotFiles'], "no", _('No'))?>
|
|
<?=mk_option($var['hideDotFiles'], "yes", _('Yes'))?>
|
|
</select>
|
|
|
|
:help73
|
|
> If set to 'Yes' then files starting with a '.' (dot) will appear as *hidden files* and normally
|
|
> will not appear in Windows folder lists unless you have "Show hidden files, folders, and drives" enabled
|
|
> in Windows Folder Options.
|
|
|
|
> If set to 'No' then dot files will appear in folder lists the same as any other file.
|
|
:end
|
|
|
|
_(Enhanced macOS interoperability)_:
|
|
: <select name="enableFruit" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
|
|
<?=mk_option($var['enableFruit'], "no", _('No'))?>
|
|
<?=mk_option($var['enableFruit'], "yes", _('Yes'))?>
|
|
</select>
|
|
|
|
:help74
|
|
> When set to 'Yes' provides enhanced compatibility with Apple SMB clients, resulting, for example, in faster
|
|
> Finder browsing, and ability to export Time Machine shares. This may cause some issues with Windows clients, however.
|
|
> Please also refer to the [VFS_FRUIT MAN PAGE](https://www.mankier.com/8/vfs_fruit).
|
|
:end
|
|
|
|
_(Enable NetBIOS)_:
|
|
: <select name="USE_NETBIOS" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
|
|
<?=mk_option($var['USE_NETBIOS'], "no", _('No'))?>
|
|
<?=mk_option($var['USE_NETBIOS'], "yes", _('Yes'))?>
|
|
</select>
|
|
|
|
:help75
|
|
> Select 'Yes' to enable NetBIOS. If enabled, SMBv1 protocol will also be recognized. If disabled,
|
|
> clients must use SMBv2 or higher.
|
|
:end
|
|
|
|
_(Enable WSD)_:
|
|
: <select name="USE_WSD" onchange="checkWSDSettings()" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
|
|
<?=mk_option($var['USE_WSD'], "no", _('No'))?>
|
|
<?=mk_option($var['USE_WSD'], "yes", _('Yes'))?>
|
|
</select>
|
|
|
|
:help76
|
|
> Select 'Yes' to enable WSD (WS-Discovery). The only reason to turn this off is when you are running an
|
|
> old LAN setup based on SMBv1.
|
|
:end
|
|
|
|
_(WSD options [experimental])_:
|
|
: <input type="text" name="WSD_OPT" maxlength="80" class="narrow" value="<?=htmlspecialchars($var['WSD_OPT'])?>" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
|
|
|
|
:help77
|
|
> This is a command line otions string passed to the WSD daemon upon startup. Leave this field blank unless
|
|
> instructed by support to put something here.
|
|
:end
|
|
|
|
|
|
: <input type="submit" name="changeShare" value="_(Apply)_" disabled><input type="button" value="_(Done)_" onclick="done()"><?if ($var['fsState']=="Started"):?>*_(Array must be **Stopped** to change)_*<?endif;?>
|
|
</form>
|
|
|
|
<script>
|
|
function checkWSDSettings() {
|
|
form=document.SMBEnable;
|
|
if (form.USE_WSD.value=="yes") {
|
|
form.WSD_OPT.disabled=false;
|
|
} else {
|
|
form.WSD_OPT.disabled=true;
|
|
}
|
|
}
|
|
$(checkWSDSettings);
|
|
</script>
|