Ralph Böhme | 2 Sep 13:57 2014

Re: [PATCH v2] Add OS X Spotlight support


On Tue, Aug 12, 2014 at 03:39:50PM +0200, Ralph Böhme wrote:
> Hi
> here's the updated patchset.
> git: <https://github.com/slowfranklin/samba>
> Instructions:
> - install tracker and libtracker-sparql-dev (or whatever it's called
>   on your system)
> - use a script like the following for starting Samba and a "private"
>   dbus instance: [1]
> - install a dbus-session.conf file in the location referenced in the
>   start script and adust path in listen directive: [2]
> - configure samba with --enable-spotlight
> - smb.conf [3]:
> [global]
>         rpc_server:mdssvc = embedded
> or
>         rpc_daemon:mdssd = fork
>         rpc_server:mdssvc = external
(Continue reading)

Andrew Bartlett | 2 Sep 07:18 2014

sizeof() on constant strings

Just a hint I found out the hard way recently:

char *foo = "ba";
char foo[] = "ba";
give different results when you do sizeof(foo).  See attached test

Andrew Bartlett

Andrew Bartlett
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba

Attachment (test.c): text/x-csrc, 339 bytes
Ralph Böhme | 1 Sep 14:26 2014

[PATCH] vfs_fruit: conversion of AppleDouble files with FinderInfo entry > 32 bytes


attached is a series of two patches. One for demonstrating a bug where
the intended conversion of OS X AppleDouble files with a FinderInfo
entry > 32 bytes is not happening. A second with the fix.

Review and commit appreciated!



SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kontakt <at> sernet.de
From 34efedfabbab90b3d5d15a6e571313ea4a58c59e Mon Sep 17 00:00:00 2001
From: Ralph Boehme <rb <at> sernet.de>
Date: Sat, 30 Aug 2014 10:21:31 +0200
Subject: [PATCH 1/2] s4:torture:vfs_fruit: add test for OS X AppleDouble

Signed-off-by: Ralph Boehme <rb <at> sernet.de>
 source4/torture/vfs/fruit.c | 648 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 648 insertions(+)

diff --git a/source4/torture/vfs/fruit.c b/source4/torture/vfs/fruit.c
(Continue reading)

Stefan (metze) Metzmacher | 1 Sep 14:22 2014

Review for bug 10749

Hi Andrew,

can I get the following bugs reviewed for 4.1.12,
which will be frozen today?


I think these are important to get into the next
release as (at least 10749) will prevent a lot of
problems and possible corrupted ldb/tdb files.


Marc Muehlfeld | 30 Aug 16:08 2014

Flexible Single-Master Operations (FSMO) documentation


I wrote a major extension of the FSMO documentation:


We often had questions on the list about the FSMO roles and the
consequences, when DCs owning roles are offline.

I hope this will be a good reference.


Jeremy Allison | 30 Aug 08:09 2014

Samba gets a shout-out from the Register !

Rather nice article giving us all 'mad props'
for creating and maintaing Samba as
"yoof-speak' would have it :-).


Now all we need to do is to work out how
to get the vendors to give us all 'fat
stacks', in the words of Jessie Pinkman
(sorry for the US TVreferences, but if you
haven't seen "Breaking Bad" yet, you
really should :-).



Jelmer Vernooij | 30 Aug 01:59 2014

[PATCH 1/2] Remove trailing whitespace.

Change-Id: I1e0948da34bac278edc62cd63dedd08112426e7a
Signed-Off-By: Jelmer Vernooij <jelmer <at> samba.org>
 pidl/README | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/pidl/README b/pidl/README
index c6b7e11..7c8ecd1 100644
--- a/pidl/README
+++ b/pidl/README
 <at>  <at>  -1,25 +1,25  <at>  <at> 
-This directory contains the source code of the pidl (Perl IDL) 
-compiler for Samba 4. 
+This directory contains the source code of the pidl (Perl IDL)
+compiler for Samba 4.

 The main sources for pidl are available using Git as part of
 the combined Samba 3 / Samba 4 tree. Use:
 git clone git://git.samba.org/samba.git

-Pidl works by building a parse tree from a .pidl file (a simple 
-dump of it's internal parse tree) or a .idl file 
-(a file format mostly like the IDL file format midl uses). 
-The IDL file parser is in idl.yp (a yacc file converted to 
+Pidl works by building a parse tree from a .pidl file (a simple
+dump of it's internal parse tree) or a .idl file
+(a file format mostly like the IDL file format midl uses).
+The IDL file parser is in idl.yp (a yacc file converted to
(Continue reading)

Jelmer Vernooij | 30 Aug 01:57 2014

[PATCH 1/5] samba.netcmd.domain: Just catch ImportError, not any parsing errors in cmd_domain_export_keytab.

Change-Id: If5710565c74e87fe218a83f31cddcf64605e522e
Signed-Off-By: Jelmer Vernooij <jelmer <at> samba.org>
 python/samba/netcmd/domain.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/python/samba/netcmd/domain.py b/python/samba/netcmd/domain.py
index 2e7a9c7..9a06f5f 100644
--- a/python/samba/netcmd/domain.py
+++ b/python/samba/netcmd/domain.py
 <at>  <at>  -83,6 +83,9  <at>  <at>  def get_testparm_var(testparm, smbconf, varname):

    import samba.dckeytab
+except ImportError:
+   cmd_domain_export_keytab = None
    class cmd_domain_export_keytab(Command):
        """Dump Kerberos keys of the domain into a keytab."""

 <at>  <at>  -104,8 +107,6  <at>  <at>  try:
            lp = sambaopts.get_loadparm()
            net = Net(None, lp)
            net.export_keytab(keytab=keytab, principal=principal)
-   cmd_domain_export_keytab = None

 class cmd_domain_info(Command):

(Continue reading)

Jelmer Vernooij | 30 Aug 01:54 2014

[PATCH 1/3] replace: remove unused and duplicate imports.

Change-Id: I6cfd2cf80efe19fa31bcd6b3881a1eb01f05d1b4
Signed-Off-By: Jelmer Vernooij <jelmer <at> samba.org>
 lib/replace/wscript | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/replace/wscript b/lib/replace/wscript
index a7384e8..91e2c45 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
 <at>  <at>  -5,7 +5,7  <at>  <at>  VERSION = '1.2.1'

 blddir = 'bin'

-import sys, os, Utils
+import sys, os

 # find the buildtools directory
 srcdir = '.'
 <at>  <at>  -14,7 +14,7  <at>  <at>  while not os.path.exists(srcdir+'/buildtools') and len(srcdir.split('/')) < 5:
 sys.path.insert(0, srcdir + '/buildtools/wafsamba')

 import wafsamba, samba_dist
-import Options, os, preproc
+import Options

 samba_dist.DIST_DIRS('lib/replace buildtools:buildtools')


(Continue reading)

Jelmer Vernooij | 30 Aug 01:50 2014

[PATCH 01] source4: Remove script to find unused makefile variables.

Signed-Off-By: Jelmer Vernooij <jelmer <at> samba.org>

 source4/script/find_unused_makefilevars.pl | 55 ------------------------------
 1 file changed, 55 deletions(-)
 delete mode 100755 source4/script/find_unused_makefilevars.pl

diff --git a/source4/script/find_unused_makefilevars.pl b/source4/script/find_unused_makefilevars.pl
deleted file mode 100755
index 23fc36e..0000000
--- a/source4/script/find_unused_makefilevars.pl
+++ /dev/null
 <at>  <at>  -1,55 +0,0  <at>  <at> 
-# Script that reads in Makefile.in and outputs the names of all 
-# used but undefined vars and all defined but unused vars 
-# Copyright Jelmer Vernooij <jelmer <at> samba.org>
-# Arguments:
-#  1: Makefile.in
-my %references;
-my %defines;
-# First, make a list of defines in configure
-$in = shift;
-sub process_file($)
(Continue reading)

Jeremy Allison | 29 Aug 21:05 2014

Where's Jeremy ?

Next week going to be in Bern, Switzerland for the
LibreOffice conference :


I'll be there Wed - Fri (giving a keynote
talk on Wed morning). Feel free to drop
by, say "hi" and talk about Samba !