<?xml version="1.0" encoding="UTF-8"?>
<ajxpdriver name="smb" enabled="false" label="CONF_MESSAGE[Samba]" description="CONF_MESSAGE[Browse a Samba Server]" mixins="credentials_consumer,filesystem_commons,slug_provider,template_provider" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
    <client_settings icon="plugins/access.fs/icon.png" description_template="{HOST}{PATH}" iconClass="icon-sitemap">
        <resources>
            <i18n namespace="smb_access" path="plugins/access.smb/i18n"/>
            <js className="FSActions" file="plugins/access.fs/res/build/FSActions.js" depends="PydioComponents"/>
        </resources>
    </client_settings>
	<server_settings>
		<param name="HOST" type="string" label="CONF_MESSAGE[Host]" description="CONF_MESSAGE[Server IP or name, do not use add slashes or backward slashes]" mandatory="true" default="SERVER_IP"/>
		<param name="PATH" type="string" label="CONF_MESSAGE[Uri]" description="CONF_MESSAGE[Path to the share and complementary URI if necessary]" mandatory="false"/>
		<param name="DOMAIN" type="string" label="CONF_MESSAGE[Domain]" description="CONF_MESSAGE[Default domain to use with session credentials. The domain name ends with '/' or '\' depend on your system. Example: MyDomain\ or YourDomain/. Default is /]" mandatory="false"/>
		<param name="CHMOD_VALUE" type="string" label="CONF_MESSAGE[File Creation Mask]" description="CONF_MESSAGE[Optionnaly apply a chmod operation. Value must be numeric, like 0777, 0644, etc.]" default="0666"/>
		<param name="SESSION_CREDENTIALS_AUTHFRONT" type="string" label="CONF_MESSAGE[Session Credentials Authfront]" description="CONF_MESSAGE[Set this workspace to use only credentials from a specific authfront. Leave empty by default, can be useful to restrict credentials to e.g. CAS authfront (use authfront.cas value in that case).]" default=""/>
        <param name="ANONYMOUS_FORBIDDEN" type="boolean" label="CONF_MESSAGE[Forbid anonymous connection]" description="CONF_MESSAGE[If no user/password are provided, throw an authentication exception, never try to login anonymously to remote share.]"/>
        <global_param name="SMBCLIENT" type="legend" label="CONF_MESSAGE[Smbclient]" description="CONF_MESSAGE[SMBCLIENT: the path to smbclient executable is considered to be in the path by default. Please use CONF_DIR/conf.access.smb.inc file to set it to a different binary.]" mandatory="true" default="smbclient"/>
        <global_param name="SMB_PATH_TMP" type="string" label="CONF_MESSAGE[Path Tmp]" description="CONF_MESSAGE[OS Path Temporary if not the default one]" mandatory="true" default="/tmp"/>
        <global_param name="SMB_ENABLE_ZIP" type="boolean" label="CONF_MESSAGE[Enable Zip]" description="CONF_MESSAGE[Enable zip creation for repositories using Samba access. Make sure that you are using a very fast network, otherwise it will be very long!]" mandatory="false" default="false"/>
        <global_param name="SMB_DISABLE_BUFFER" type="boolean" label="CONF_MESSAGE[Disable smb buffer option]" description="CONF_MESSAGE[The setting socket options SO_RCVBUF=8192 sometimes can seriously degrade performance]" mandatory="false" default="false"/>
        <global_param group="MIXIN_MESSAGE[Metadata and indexation]" name="DEFAULT_METASOURCES" type="string" label="MIXIN_MESSAGE[Default Metasources]" description="MIXIN_MESSAGE[Comma separated list of metastore and meta plugins, that will be automatically applied to all repositories created with this driver]" mandatory="false" default="metastore.serial,meta.filehasher,index.lucene"/>
    </server_settings>
	<registry_contributions>
        <external_file filename="plugins/access.fs/fsTemplatePart.xml" include="client_configs/*" exclude=""/>
		<external_file filename="plugins/access.fs/fsActions.xml" include="actions/*" exclude=""/>
		<external_file filename="plugins/access.fs/manifest.xml" include="registry_contributions/client_configs/*" exclude=""/>
		<external_file filename="plugins/access.fs/fsActions.xml" include="client_configs/*" exclude=""/>
		<external_file filename="plugins/access.fs/manifest.xml" include="registry_contributions/hooks/*" exclude=""/>
        <client_configs>
            <component_config component="FoldersTree">
                <property name="display" value="d"/>
            </component_config>
        </client_configs>
	</registry_contributions>
	<dependencies>
		<pluginClass pluginName="access.fs"/>
	</dependencies>
	<class_definition filename="plugins/access.smb/SMBAccessDriver.php" classname="Pydio\Access\Driver\StreamProvider\SMB\SMBAccessDriver"/>
    <class_stream_wrapper filename="plugins/access.smb/SMBAccessWrapper.php" classname="Pydio\Access\Driver\StreamProvider\SMB\SMBAccessWrapper" protocol="ajxp.smb"/>
</ajxpdriver>
