config SAMBA4_SERVER_ACL
	bool "ACL support (xattr)"
	depends on PACKAGE_samba4-server
	select PACKAGE_acl
	help
		installs: sharesec
			modules: vfs_acl_xattr vfs_acl_tdb vfs_posixacl

		Extended access control list support
	default n

config SAMBA4_SERVER_AD_DC
	bool "Active Directory Domain Controller support (requires krb5-server) (EXPERIMENTAL)"
	depends on PACKAGE_samba4-server
	select PACKAGE_python-base
	select PACKAGE_python-crypto
	select PACKAGE_libopenssl
	select PACKAGE_libgnutls
	select PACKAGE_libopenldap
	help
		installs: samba (meta-daemon) python-crypt ntlm_auth
			scripts: samba-tool

		Run as a Active Directory Domain Controller
		see: https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Active_Directory_Domain_Controller
		HINT: see section (# Using the Domain Controller as a File Server)
		NOTE: Extroot is recommend for this setup, as it is not optimized to run completely from RAM/tempfs!
	default n

config SAMBA4_SERVER_AVAHI
	bool "Avahi support"
	depends on PACKAGE_samba4-server
	select SAMBA4_SERVER_VFS
	select PACKAGE_libavahi-client
	help
		Announce Samba resources via DNS/DNS-SD using the Avahi daemon, for Linux/Mac clients.
	default y

config SAMBA4_SERVER_VFS
	bool "Common VFS modules"
	depends on PACKAGE_samba4-server
	help
		installs:
			modules: (vfs_btrfs) vfs_fruit vfs_shadow_copy2 vfs_recycle vfs_fake_perms vfs_readonly vfs_cap vfs_offline vfs_crossrename vfs_catia vfs_streams_xattr

		Commonly used VFS modules, vfs_btrfs requires kmod-fs-btrfs to be selected separately
        default y

config SAMBA4_SERVER_QUOTAS
	bool "Disk quota support"
	depends on PACKAGE_samba4-server
	help
		installs:
			modules: vfs_default_quota

		Support for disk quotas using the quotas VFS module (vfs_default_quota)
	default n

config SAMBA4_SERVER_VFSX
	bool "Extended VFS modules"
	depends on PACKAGE_samba4-server
	help
		installs:
			modules: vfs_virusfilter vfs_shell_snap vfs_commit vfs_worm vfs_xattr_tdb vfs_aio_fork vfs_aio_pthread (vfs_linux_xfs_sgid) vfs_netatalk vfs_dirsort vfs_fileid

		Additional VFS modules that aren't commonly used, vfs_linux_xfs_sgid requires kmod-fs-xfs to be selected separately
	default n

config SAMBA4_SERVER_NETBIOS
	bool "NetBIOS support"
	depends on PACKAGE_samba4-server
	help
		installs: nmbd (daemon)

		Announce Samba resources via NetBIOS using the nmbd daemon
		WSD (Web Services for Devices) replaces the functionality of NetBIOS and is provided by the wsdd2 package (selected by default).
		Note: As of Windows 10 Fall Creators Update (1709) NetBIOS isn't supported unless the old SMB1 feature is reinstalled (not recommended).
		Network shares can be directly accessed via network paths '\\hostname\sharename' and mounted via 'map network drive' without NetBIOS or WSD.
	default n

config SAMBA4_SERVER_WINBIND
	bool "Winbind support"
	depends on PACKAGE_samba4-server
	depends on SAMBA4_SERVER_AD_DC
	help
		installs: winbindd (daemon) wbinfo

		Support using domain users and groups in local commands, such as chown and chgrp.
		Display domain users and groups in local command's output, such as ls.
		see: https://wiki.samba.org/index.php/Configuring_Winbindd_on_a_Samba_AD_DC
	default n
