diff options
-rw-r--r-- | docs-xml/smbdotconf/misc/spotlight.xml | 45 | ||||
-rw-r--r-- | lib/param/param_table.c | 8 | ||||
-rw-r--r-- | source3/param/loadparm.c | 1 |
3 files changed, 54 insertions, 0 deletions
diff --git a/docs-xml/smbdotconf/misc/spotlight.xml b/docs-xml/smbdotconf/misc/spotlight.xml new file mode 100644 index 00000000000..d872bb64043 --- /dev/null +++ b/docs-xml/smbdotconf/misc/spotlight.xml @@ -0,0 +1,45 @@ +<samba:parameter name="spotlight" + context="S" + type="boolean" + xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> +<description> + <para> + This parameter controls whether Samba allows Spotlight + queries on a share. For controlling indexing of filesystems + you also have to use Tracker's own configuration system. + </para> + + <para> + Spotlight has several prerequisites: + </para> + + <itemizedlist> + <listitem><para> + Samba must be configured and built with Spotlight support. + </para></listitem> + + <listitem><para> + The <emphasis>mdssvc</emphasis> RPC service must be + enabled, see below. + </para></listitem> + + <listitem><para> Tracker intergration must be setup and the + share must be indexed by Tracker.</para></listitem> + </itemizedlist> + + <para>For a detailed set of instructions please see <ulink + url="https://wiki.samba.org/index.php/Spotlight">https://wiki.samba.org/index.php/Spotlight</ulink>. + </para> + + <para> + To enable the Spotlight RPC service: + </para> + +<programlisting> +<smbconfsection name="[Global]"/> +<smbconfoption name="rpc_server:mdsvc">embedded</smbconfoption> +</programlisting> + +</description> +<value type="default">no</value> +</samba:parameter> diff --git a/lib/param/param_table.c b/lib/param/param_table.c index ff310381213..148f79c6df4 100644 --- a/lib/param/param_table.c +++ b/lib/param/param_table.c @@ -808,6 +808,14 @@ struct parm_struct parm_table[] = { .enum_list = NULL, }, { + .label = "spotlight", + .type = P_BOOL, + .p_class = P_LOCAL, + .offset = LOCAL_VAR(spotlight), + .special = NULL, + .enum_list = NULL, + }, + { .label = "write ok", .type = P_BOOLREV, .p_class = P_LOCAL, diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index cedaf1a6e60..af74d68fee5 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -185,6 +185,7 @@ static struct loadparm_service sDefault = .access_based_share_enum = false, .bAvailable = true, .read_only = true, + .spotlight = false, .guest_only = false, .administrative_share = false, .guest_ok = false, |