kai/samba-autobuild/.git
7 years agofile_server: Use samba4 auth module for guest logins as well
Andrew Bartlett [Mon, 11 Jun 2012 00:48:32 +0000 (10:48 +1000)]
file_server: Use samba4 auth module for guest logins as well

This is important for consistancy on NTLM logins, as the samba4 stack is used
for all NTLMSSP logins anyway.

Andrew Bartlett

7 years agolib/param: simplfy lp_find_security()
Andrew Bartlett [Mon, 11 Jun 2012 01:12:52 +0000 (11:12 +1000)]
lib/param: simplfy lp_find_security()

All the roles other than ROLE_DOMAIN_MEMBER map to SEC_USER.

Andrew Bartlett

7 years agopyldb: Ensure that the ldb argument is really an ldb before we dereference
Andrew Bartlett [Sun, 10 Jun 2012 10:30:27 +0000 (20:30 +1000)]
pyldb: Ensure that the ldb argument is really an ldb before we dereference

7 years agos3-smbd: Remove unused branches in negprot since security=share was removed
Andrew Bartlett [Sun, 10 Jun 2012 06:08:12 +0000 (16:08 +1000)]
s3-smbd: Remove unused branches in negprot since security=share was removed

7 years agos4-selftest: Test samba-tool drs replicate --local --full-sync
Andrew Bartlett [Fri, 8 Jun 2012 03:37:49 +0000 (13:37 +1000)]
s4-selftest: Test samba-tool drs replicate --local --full-sync

7 years agolibcli/nbt: remove unused system/network.h from libnbt.h
Stefan Metzmacher [Mon, 11 Jun 2012 06:42:29 +0000 (08:42 +0200)]
libcli/nbt: remove unused system/network.h from libnbt.h

This is not needed and breaks the build on AIX:

[ 988/3309] Compiling source4/smb_server/smb/reply.c
"../source4/smb_server/smb/reply.c", line 1093.42: 1506-022 (S) "lseek64" is not a member of "union smb_seek".
"../source4/smb_server/smb/reply.c", line 1093.42: 1506-022 (S) "lseek64" is not a member of "union smb_seek".
"../source4/smb_server/smb/reply.c", line 1093.42: 1506-022 (S) "lseek64" is not a member of "union smb_seek".
"../source4/smb_server/smb/reply.c", line 1093.42: 1506-022 (S) "lseek64" is not a member of "union smb_seek".
"../source4/smb_server/smb/reply.c", line 1109.13: 1506-022 (S) "lseek64" is not a member of "union smb_seek".
"../source4/smb_server/smb/reply.c", line 1110.13: 1506-022 (S) "lseek64" is not a member of "union smb_seek".
"../source4/smb_server/smb/reply.c", line 1111.13: 1506-022 (S) "lseek64" is not a member of "union smb_seek".
"../source4/smb_server/smb/reply.c", line 1113.38: 1506-022 (S) "lseek64" is not a member of "union smb_seek".
Waf: Leaving directory `/opt/home/build/build_farm/samba_4_0_test/bin'
Build failed:  -> task failed (err #1):
{task: cc reply.c -> reply_1.o}

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jun 11 10:32:51 CEST 2012 on sn-devel-104

7 years agolib/ldb/tools: add missing "replace.h"
Stefan Metzmacher [Sun, 10 Jun 2012 20:59:00 +0000 (22:59 +0200)]
lib/ldb/tools: add missing "replace.h"

This has to be the first header!

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jun 11 01:21:01 CEST 2012 on sn-devel-104

7 years agos3/test: make dd call more portable
Björn Jacke [Sun, 10 Jun 2012 19:32:55 +0000 (21:32 +0200)]
s3/test: make dd call more portable

using multiplicative suffixes like K, M etc. in dd isn't portable

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Sun Jun 10 23:29:42 CEST 2012 on sn-devel-104

7 years agos4/pvfs: handle non-POSIX compliant Tru64, NetBSD and FreeBSD errno on O_NOFOLLOW...
Björn Jacke [Sun, 10 Jun 2012 18:17:44 +0000 (20:17 +0200)]
s4/pvfs: handle non-POSIX compliant Tru64, NetBSD and FreeBSD errno on O_NOFOLLOW symlink open calls

see also f75f1d62339f0accb4e574645b1d265c75a01b5b

7 years agos3: fix build on systems without O_NOFOLLOW
Björn Jacke [Sun, 10 Jun 2012 18:00:03 +0000 (20:00 +0200)]
s3: fix build on systems without O_NOFOLLOW

7 years agowafsamba: try to fix the build on AIX with xlc_r
Stefan Metzmacher [Sun, 10 Jun 2012 15:48:15 +0000 (17:48 +0200)]
wafsamba: try to fix the build on AIX with xlc_r

bld.env['CPP'] can be 'None' or '[]', bld.CONFIG_SET("CPP") should return False

File "./buildtools/wafsamba/samba_pidl.py", line 131, in SAMBA_PIDL_LIST
    bld.SAMBA_PIDL(name, p, options=options, output_dir=output_dir, symlink=symlink, generate_tables=generate_tables)
  File "./buildtools/wafsamba/samba_pidl.py", line 65, in SAMBA_PIDL
    cpp = 'CPP="%s"' % bld.CONFIG_GET("CPP")[0]
IndexError: list index out of range

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Jun 10 20:18:49 CEST 2012 on sn-devel-104

7 years agoheimdal:lib/asn1: try to fix the build on IRIX
Stefan Metzmacher [Sun, 10 Jun 2012 14:21:12 +0000 (16:21 +0200)]
heimdal:lib/asn1: try to fix the build on IRIX

cc-1028 cc: ERROR File = ../source4/heimdal/lib/asn1/gen_template.c, Line = 548
  The expression used must have a constant value.

  struct templatehead template = { 0L, &(template). tqh_first };
                                         ^
If this really fixes the IRIX build, we'll propose this for heimdal upstream.

metze

7 years agoRevert "s3:smbd: set req->smb2req->compat_chain_fsp in file_fsp()"
Stefan Metzmacher [Sat, 9 Jun 2012 09:11:26 +0000 (11:11 +0200)]
Revert "s3:smbd: set req->smb2req->compat_chain_fsp in file_fsp()"

This reverts commit c2716a7d5ccf78f9716b703c22e6cf4d4f179656.

This is not needed anymore, as we have file_fsp_smb2() now.

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Jun 10 18:04:21 CEST 2012 on sn-devel-104

7 years agos3: handle non-POSIX compliant Tru64, NetBSD and FreeBSD errno on O_NOFOLLOW symlink...
Björn Jacke [Sun, 7 Jun 2009 11:55:26 +0000 (13:55 +0200)]
s3: handle non-POSIX compliant Tru64, NetBSD and FreeBSD errno on O_NOFOLLOW symlink open calls

or should we leave the NetBSD and FreeBSD platforms just broken? Actually these
two *want* to have broken platforms as they use different errno's than POSIX
demands *interntionally*. The POSIX errno ELOOP for O_NOFOLLOW open calls on
symlinks is clear and unambiguous. See http://gnats.netbsd.org/43154 for the
interesting NetBSD discussion on that.

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Sun Jun 10 16:10:02 CEST 2012 on sn-devel-104

7 years agos3:smb2_ioctl: make use of file_fsp_smb2()
Stefan Metzmacher [Fri, 8 Jun 2012 10:12:59 +0000 (12:12 +0200)]
s3:smb2_ioctl: make use of file_fsp_smb2()

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Jun 10 01:10:15 CEST 2012 on sn-devel-104

7 years agos3:smb2_lock: make use of file_fsp_smb2()
Stefan Metzmacher [Fri, 8 Jun 2012 09:57:21 +0000 (11:57 +0200)]
s3:smb2_lock: make use of file_fsp_smb2()

metze

7 years agos3:smb2_write: make use of file_fsp_smb2()
Stefan Metzmacher [Fri, 8 Jun 2012 09:47:05 +0000 (11:47 +0200)]
s3:smb2_write: make use of file_fsp_smb2()

metze

7 years agos3:smb2_read: make use of file_fsp_smb2()
Stefan Metzmacher [Fri, 8 Jun 2012 09:24:02 +0000 (11:24 +0200)]
s3:smb2_read: make use of file_fsp_smb2()

metze

7 years agos3:smb2_notify: make use of file_fsp_smb2()
Stefan Metzmacher [Fri, 8 Jun 2012 09:05:58 +0000 (11:05 +0200)]
s3:smb2_notify: make use of file_fsp_smb2()

metze

7 years agos3:smb2_setinfo: make use of file_fsp_smb2()
Stefan Metzmacher [Fri, 8 Jun 2012 08:54:46 +0000 (10:54 +0200)]
s3:smb2_setinfo: make use of file_fsp_smb2()

metze

7 years agos3:smb2_getinfo: make use of file_fsp_smb2()
Stefan Metzmacher [Fri, 8 Jun 2012 08:46:13 +0000 (10:46 +0200)]
s3:smb2_getinfo: make use of file_fsp_smb2()

metze

7 years agos3:smb2_find: make use of file_fsp_smb2()
Stefan Metzmacher [Fri, 8 Jun 2012 08:42:43 +0000 (10:42 +0200)]
s3:smb2_find: make use of file_fsp_smb2()

metze

7 years agos3:smb2_break: make use of file_fsp_smb2()
Stefan Metzmacher [Fri, 8 Jun 2012 08:36:24 +0000 (10:36 +0200)]
s3:smb2_break: make use of file_fsp_smb2()

metze

7 years agos3:smb2_close: make use of file_fsp_smb2()
Stefan Metzmacher [Fri, 8 Jun 2012 08:31:58 +0000 (10:31 +0200)]
s3:smb2_close: make use of file_fsp_smb2()

metze

7 years agos3:smb2_flush: make use of file_fsp_smb2()
Stefan Metzmacher [Fri, 8 Jun 2012 08:14:45 +0000 (10:14 +0200)]
s3:smb2_flush: make use of file_fsp_smb2()

metze

7 years agos3:smbd: add file_fsp_smb2()
Stefan Metzmacher [Fri, 8 Jun 2012 08:11:57 +0000 (10:11 +0200)]
s3:smbd: add file_fsp_smb2()

metze

7 years agos3:smb2_write: pass fsp->fnum to init_strict_lock_struct()
Stefan Metzmacher [Fri, 8 Jun 2012 09:19:00 +0000 (11:19 +0200)]
s3:smb2_write: pass fsp->fnum to init_strict_lock_struct()

fsp->fnum is the same as in_file_id_volatile.

When we start to support durable handles we should pass
in_file_id_persistent.

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Jun  9 18:50:32 CEST 2012 on sn-devel-104

7 years agos3:smb2_read: pass fsp->fnum to init_strict_lock_struct()
Stefan Metzmacher [Fri, 8 Jun 2012 09:19:00 +0000 (11:19 +0200)]
s3:smb2_read: pass fsp->fnum to init_strict_lock_struct()

fsp->fnum is the same as in_file_id_volatile.

When we start to support durable handles we should pass
in_file_id_persistent.

metze

7 years agos3:smb2_lock: use fsp->fnum as locking context
Stefan Metzmacher [Fri, 8 Jun 2012 09:19:00 +0000 (11:19 +0200)]
s3:smb2_lock: use fsp->fnum as locking context

fsp->fnum is the same as in_file_id_volatile.

When we start to support durable handles we should pass
in_file_id_persistent.

metze

7 years agos3:smb2_lock: use smb2req->compat_chain_fsp instead of looking it up again
Stefan Metzmacher [Fri, 8 Jun 2012 10:05:56 +0000 (12:05 +0200)]
s3:smb2_lock: use smb2req->compat_chain_fsp instead of looking it up again

metze

7 years agos3:smbd: set req->smb2req->compat_chain_fsp in file_fsp()
Stefan Metzmacher [Sat, 9 Jun 2012 09:09:25 +0000 (11:09 +0200)]
s3:smbd: set req->smb2req->compat_chain_fsp in file_fsp()

metze

7 years agos3:smb2_close: add missing TALLOC_FREE(subreq) in smbd_smb2_request_close_done()
Stefan Metzmacher [Fri, 8 Jun 2012 08:29:44 +0000 (10:29 +0200)]
s3:smb2_close: add missing TALLOC_FREE(subreq) in smbd_smb2_request_close_done()

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Jun  9 13:57:31 CEST 2012 on sn-devel-104

7 years agos3:smbd: readd START_PROFILE(smbd_idle)/END_PROFILE(smbd_idle)
Stefan Metzmacher [Fri, 8 Jun 2012 12:07:51 +0000 (14:07 +0200)]
s3:smbd: readd START_PROFILE(smbd_idle)/END_PROFILE(smbd_idle)

metze

7 years agotdb2: use ccan/err instead of err.h
Rusty Russell [Sat, 9 Jun 2012 06:48:57 +0000 (16:18 +0930)]
tdb2: use ccan/err instead of err.h

Solaris has no err.h, so use CCAN replacement.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date(master): Sat Jun  9 12:07:15 CEST 2012 on sn-devel-104

7 years agoccan: make failtest use ccan/err.
Rusty Russell [Sat, 9 Jun 2012 06:11:23 +0000 (15:41 +0930)]
ccan: make failtest use ccan/err.

As per CCAN commit 48b700953f9c856102e91596103238f5da9ea079.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years agoccan: import err module.from ccan revision 5add556a1cb64b49a664506aa76216d885b22c97
Rusty Russell [Sat, 9 Jun 2012 06:07:20 +0000 (15:37 +0930)]
ccan: import err module.from ccan revision 5add556a1cb64b49a664506aa76216d885b22c97

This allows us to avoid err.h in failtest.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years agos3:smbd: change set_file_oplock() to return NTSTATUS
Michael Adam [Fri, 8 Jun 2012 15:47:31 +0000 (17:47 +0200)]
s3:smbd: change set_file_oplock() to return NTSTATUS

Pair-Programmed-With: Volker Lendecke <vl@samba.org>
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Jun  8 23:20:20 CEST 2012 on sn-devel-104

7 years agos3: Replace an if with a boolean short circuit
Volker Lendecke [Fri, 8 Jun 2012 12:26:52 +0000 (14:26 +0200)]
s3: Replace an if with a boolean short circuit

Signed-off-by: Michael Adam <obnox@samba.org>
7 years agos3: Assigning ?True:False to a bool is a bit pointless
Volker Lendecke [Fri, 8 Jun 2012 12:29:41 +0000 (14:29 +0200)]
s3: Assigning ?True:False to a bool is a bit pointless

Signed-off-by: Michael Adam <obnox@samba.org>
7 years agos3: Remove unnecessary ()
Volker Lendecke [Fri, 8 Jun 2012 12:24:41 +0000 (14:24 +0200)]
s3: Remove unnecessary ()

Signed-off-by: Michael Adam <obnox@samba.org>
7 years agos3: Replace an if with a boolean short circuit
Volker Lendecke [Fri, 8 Jun 2012 12:26:52 +0000 (14:26 +0200)]
s3: Replace an if with a boolean short circuit

Signed-off-by: Michael Adam <obnox@samba.org>
7 years agos3: Assigning ?True:False to a bool is a bit pointless
Volker Lendecke [Fri, 8 Jun 2012 12:25:23 +0000 (14:25 +0200)]
s3: Assigning ?True:False to a bool is a bit pointless

Signed-off-by: Michael Adam <obnox@samba.org>
7 years agos3: Remove unnecessary ()
Volker Lendecke [Fri, 8 Jun 2012 12:24:41 +0000 (14:24 +0200)]
s3: Remove unnecessary ()

Signed-off-by: Michael Adam <obnox@samba.org>
7 years agotevent: change version to 0.9.16 tevent-0.9.16
Stefan Metzmacher [Fri, 8 Jun 2012 10:50:21 +0000 (12:50 +0200)]
tevent: change version to 0.9.16

This adds tevent_*_trace_*() and tevent_context_init_ops()

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jun  8 20:47:41 CEST 2012 on sn-devel-104

7 years agotevent: expose tevent_context_init_ops
Stefan Metzmacher [Fri, 11 May 2012 13:19:55 +0000 (15:19 +0200)]
tevent: expose tevent_context_init_ops

This can be used to implement wrapper backends,
while passing a private pointer to the backens init function
via ev->additional_data.

metze

7 years agolib/tevent: Add trace point callback
Martin Schwenke [Tue, 5 Jun 2012 06:00:07 +0000 (16:00 +1000)]
lib/tevent: Add trace point callback

Set/get a single callback function to be invoked at various trace
points.  Define "before wait" and "after wait" trace points - more
trace points can be added later if required.

CTDB wants this to log long waits and events.

Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
Signed-off-by: Martin Schwenke <martin@meltin.net>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
7 years agolib/tevent: In poll_event_context, add a pointer back to the tevent_context
Martin Schwenke [Thu, 7 Jun 2012 02:26:02 +0000 (12:26 +1000)]
lib/tevent: In poll_event_context, add a pointer back to the tevent_context

This makes it consistent with the other backends.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
7 years agos3:smbd: remove unnecessary variable readret from read_file()
Michael Adam [Fri, 8 Jun 2012 14:06:24 +0000 (16:06 +0200)]
s3:smbd: remove unnecessary variable readret from read_file()

Pair-Programmed-With: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Jun  8 18:08:09 CEST 2012 on sn-devel-104

7 years agos3:smbd: remove ancient DMF_FIX from read_file().
Michael Adam [Fri, 8 Jun 2012 12:23:09 +0000 (14:23 +0200)]
s3:smbd: remove ancient DMF_FIX from read_file().

Pair-Programmed-With: Volker Lendecke <vl@samba.org>

7 years agobuild: do not run fsrvp tests as part of selftest
David Disseldorp [Tue, 5 Jun 2012 18:02:04 +0000 (20:02 +0200)]
build: do not run fsrvp tests as part of selftest

Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Fri Jun  8 15:24:45 CEST 2012 on sn-devel-104

7 years agos4-torture: fsrvp test suite
David Disseldorp [Fri, 9 Mar 2012 15:02:19 +0000 (16:02 +0100)]
s4-torture: fsrvp test suite

Covers most operations defined by the File Server Remote VSS Protocol.

7 years agodoc: add FSRVP commands to rpcclient man page
David Disseldorp [Tue, 3 Apr 2012 12:17:35 +0000 (14:17 +0200)]
doc: add FSRVP commands to rpcclient man page

7 years agos3-rpcclient: add fsrvp commands
David Disseldorp [Mon, 26 Mar 2012 15:34:52 +0000 (17:34 +0200)]
s3-rpcclient: add fsrvp commands

fss_create_expose connects to an FSRVP server and negotiates the
creation and exposure of a share shadow-copy.
shadow-copies of multiple shares can be requested with a single
fss_create_expose request.

ddiss@plati:~> bin/rpcclient -k -U 'LURCH\administrator%password' \
                             ncacn_np:lutze[sign]
rpcclient $> fss_create_expose backup ro hyper
381884f2-b578-45ea-b8d2-cf82491f4011: shadow-copy set created
...
share hyper@{B6137E21-9CBB-4547-A21D-E7AD40D0874B} exposed as a snapshot
of \\lutze\hyper

fss_delete removes the shadow-copy share:
rpcclient $> fss_delete hyper 381884f2-b578-45ea-b8d2-cf82491f4011 \
                        b6137e21-9cbb-4547-a21d-e7ad40d0874

Shadow-copies can be created read-write or read-only.
Experimenting with Windows Server "8" beta, a recovery complete call is
required after creating a read-write (ATTR_AUTO_RECOVERY) shadow copy.
Otherwise subsequent creation requests fail with
FSRVP_E_SHADOW_COPY_SET_IN_PROGRESS.

7 years agoidl: add File Server Remote VSS Protocol idl
David Disseldorp [Tue, 21 Feb 2012 13:04:42 +0000 (14:04 +0100)]
idl: add File Server Remote VSS Protocol idl

MS-FSRVP preview documents used as reference.
H_ERROR codes should be moved to a more generic file.

7 years agosamba_util: mark smb_panic as _NORETURN_.
Rusty Russell [Thu, 7 Jun 2012 22:38:00 +0000 (08:08 +0930)]
samba_util: mark smb_panic as _NORETURN_.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date(master): Fri Jun  8 09:14:26 CEST 2012 on sn-devel-104

7 years agos3-winbindd: call dump_core_setup after command line option has been parsed
Matthieu Patou [Fri, 1 Jun 2012 22:33:04 +0000 (15:33 -0700)]
s3-winbindd: call dump_core_setup after command line option has been parsed

Without this fix in some situations winbindd can't coredump.
Such cases append when samba is compiled in a custom prefix (ie.
/home/build/mat/prod/1/) in this case get_dyn_LOGFILEBASE or basename(lp_logfile)
before the configuration file and the command line is parsed will be something like /home/build/mat/prod/1/var
which might not exists on the host where you run it (where it's most
probably more "normal" directories).
Specifying --log-basename didn't help as dump_core_setup is called before the command line and
the config file is read so it didn't help getting a correct value in dump_core_setup.
We fix this issue by calling dump_core_setup() also after the command
line has been read and also after the configfile has been parsed so that
the final location for the coredump is coherent with the final logile
location.

Autobuild-User(master): Matthieu Patou <mat@samba.org>
Autobuild-Date(master): Fri Jun  8 06:33:33 CEST 2012 on sn-devel-104

7 years agos3-waf: Fix the winbindd active directory idmap support build.
Ira Cooper [Fri, 8 Jun 2012 00:34:33 +0000 (20:34 -0400)]
s3-waf: Fix the winbindd active directory idmap support build.

This fixes the SAMBA3_MODULE for idmap_ad so it will actually attempt to build.

Autobuild-User(master): Ira Cooper <ira@samba.org>
Autobuild-Date(master): Fri Jun  8 04:38:04 CEST 2012 on sn-devel-104

7 years agobuild: try to fix large file support for AIX
Björn Jacke [Thu, 7 Jun 2012 20:43:43 +0000 (22:43 +0200)]
build: try to fix large file support for AIX

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Fri Jun  8 00:37:00 CEST 2012 on sn-devel-104

7 years agoccan: Only build ccan-failtest when we are in developer mode
Andrew Bartlett [Thu, 7 Jun 2012 13:07:52 +0000 (22:37 +0930)]
ccan: Only build ccan-failtest when we are in developer mode

From: Andrew Bartlett <abartlet@samba.org>

This code is incredibly useful, but is only needed in test code and may not be
perfectly portable.  It has compiled on all systems bar Solaris so far, but
rather than make it a requirement to build Samba, just keep it for development.

Andrew Bartlett

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date(master): Thu Jun  7 18:53:12 CEST 2012 on sn-devel-104

7 years agolib/tdb2: build tests when built at toplevel.
Rusty Russell [Thu, 7 Jun 2012 12:54:07 +0000 (22:24 +0930)]
lib/tdb2: build tests when built at toplevel.

They weren't being built when we were at top-level, because the globs
were wrong.  Just open-code the test names, which always works.

Reported-by: Andrew Bartlett
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years agowaf: fix parsing krb5-config --version for MIT krb5
Alexander Bokovoy [Thu, 7 Jun 2012 11:22:33 +0000 (14:22 +0300)]
waf: fix parsing krb5-config --version for MIT krb5

krb5-config --version may return a string that ends with a suffix after
version number (1.X-prerelease or 1.X-beta1, for example). Detect and
ignore the suffix.

Autobuild-User(master): Alexander Bokovoy <ab@samba.org>
Autobuild-Date(master): Thu Jun  7 17:03:01 CEST 2012 on sn-devel-104

7 years agowaf: support --without-ad-dc for Heimdal (embedded and system) as well
Alexander Bokovoy [Thu, 7 Jun 2012 10:38:20 +0000 (13:38 +0300)]
waf: support --without-ad-dc for Heimdal (embedded and system) as well

--without-ad-dc was hardwired to mean --with-system-mitkrb5. With this change
it also possible to build source3/ code and source4/ client side without
building AD DC functionality using Heimdal (embedded or system).

7 years agobuild: fix typo that breaks the HP-UX build
Björn Jacke [Thu, 7 Jun 2012 08:15:01 +0000 (10:15 +0200)]
build: fix typo that breaks the HP-UX build

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Thu Jun  7 12:49:17 CEST 2012 on sn-devel-104

7 years agobuild: Tidy up broken posix_fallocate tests
Andrew Bartlett [Thu, 7 Jun 2012 04:29:44 +0000 (14:29 +1000)]
build: Tidy up broken posix_fallocate tests

This makes the code and output for in waf and autoconf identical.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Jun  7 08:35:33 CEST 2012 on sn-devel-104

7 years agos4-libcli: Remove unused finddcs_nbt
Andrew Bartlett [Thu, 7 Jun 2012 04:21:25 +0000 (14:21 +1000)]
s4-libcli: Remove unused finddcs_nbt

This would only do the NBT getdc lookup for a single DC (but would
find multiple DCs at first stage), but more particular it of course
uses Netbios rather than DNS names.

In any case it was also unused, as we use CLDAP for reliable DC
location these days.

Found by callcatcher

Andrew Bartlett

7 years agobuild: Add missing deps and make MESSAGING a private library
Andrew Bartlett [Thu, 7 Jun 2012 04:19:43 +0000 (14:19 +1000)]
build: Add missing deps and make MESSAGING a private library

To remove finddcs_nbt these missing deps need to be added.  These
subsystems linked to to implicit dependencies provided by finddcs.
Due to the new arrangmenet of subsystems, MESSAGING needs to be a
private library to avoid being a source of duplicate symbols.

Andrew Bartlett

7 years agoutil: fix build on platforms without IPv6 support
Björn Jacke [Wed, 6 Jun 2012 19:37:46 +0000 (21:37 +0200)]
util: fix build on platforms without IPv6 support

something like this on World IPv6 Day II ... ;-)

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Thu Jun  7 03:09:49 CEST 2012 on sn-devel-104

7 years agos3: enable winbind also for upcoming FreeBSD/NetBSD releases >=10
Björn Jacke [Wed, 6 Jun 2012 11:20:08 +0000 (13:20 +0200)]
s3: enable winbind also for upcoming FreeBSD/NetBSD releases >=10

7 years agoscript/commit_mark.sh: add the current branch name
Stefan Metzmacher [Wed, 6 Jun 2012 11:35:31 +0000 (13:35 +0200)]
script/commit_mark.sh: add the current branch name

This will be useful once we have autobuild for a v4-0-test
branch and want to cherry-pick commits from master

metze

Autobuild-User(master-autobuild): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master-autobuild): Mi 6. Jun 13:42:53 CEST 2012 on SERNOX11

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jun  7 01:18:55 CEST 2012 on sn-devel-104

7 years agos3:include: change lock_struct->fnum to uint64_t
Michael Adam [Wed, 6 Jun 2012 13:42:48 +0000 (15:42 +0200)]
s3:include: change lock_struct->fnum to uint64_t

Note: this changes the format of brlock.tdb!

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Jun  6 23:22:00 CEST 2012 on sn-devel-104

7 years agos3:include: change lock_context->tid to uint32_t
Michael Adam [Wed, 6 Jun 2012 13:33:58 +0000 (15:33 +0200)]
s3:include: change lock_context->tid to uint32_t

Note: this changes for format of brlock.tdb!

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

7 years agos3:include: change connection_struct->cnum to uint32_t
Michael Adam [Wed, 6 Jun 2012 13:28:14 +0000 (15:28 +0200)]
s3:include: change connection_struct->cnum to uint32_t

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

7 years agos3:include: change smb_request->tid to uint32_t
Michael Adam [Wed, 6 Jun 2012 13:26:05 +0000 (15:26 +0200)]
s3:include: change smb_request->tid to uint32_t

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

7 years agos3:smb: change the value of TID_FIELD_INVALID from -1 to 0
Michael Adam [Wed, 6 Jun 2012 13:23:55 +0000 (15:23 +0200)]
s3:smb: change the value of TID_FIELD_INVALID from -1 to 0

This paves the way to change the tid/cnum types to systematic uint32_t.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

7 years agos3:smb: introduce a name TID_FIELD_INVALID for the invalid value for a cnum/tid
Michael Adam [Wed, 6 Jun 2012 13:22:31 +0000 (15:22 +0200)]
s3:smb: introduce a name TID_FIELD_INVALID for the invalid value for a cnum/tid

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

7 years agos3:connections: add a CNUM_OFFSET for mapping between cnum and the bitmap index
Michael Adam [Wed, 6 Jun 2012 13:12:08 +0000 (15:12 +0200)]
s3:connections: add a CNUM_OFFSET for mapping between cnum and the bitmap index

This moves the start of the range of valid cnum values up from 0 to CNUM_OFFSET
(currently 1), so that in a later step we can use 0 as invalid cnum value
instead of the current -1. This will allow us to change the type of cnum to
uint32_t from a mix of int and unsigned.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

7 years agos3:smb.h: fix a comment typo
Michael Adam [Wed, 6 Jun 2012 12:51:13 +0000 (14:51 +0200)]
s3:smb.h: fix a comment typo

7 years agos4:dns-server: remove an extra blank line from handle_question()
Michael Adam [Thu, 31 May 2012 18:51:29 +0000 (20:51 +0200)]
s4:dns-server: remove an extra blank line from handle_question()

7 years agoauth-kerberos: avoid crash with MIT krb5 1.10.0 in gss_get_name_attribute()
Alexander Bokovoy [Wed, 6 Jun 2012 13:52:18 +0000 (16:52 +0300)]
auth-kerberos: avoid crash with MIT krb5 1.10.0 in gss_get_name_attribute()

gss_get_name_attribute() can return unintialized pac_display_buffer
and later gss_release_buffer() will crash on attempting to release it.

The fix on MIT krb5 side is in 1.10.1, reported in both Debian and MIT upstream:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=658514
http://krbdev.mit.edu/rt/Ticket/Display.html?user=guest&pass=guest&id=7087

We need to initialize variables before using gss_get_name_attribute()

Autobuild-User: Alexander Bokovoy <ab@samba.org>
Autobuild-Date: Wed Jun  6 18:22:51 CEST 2012 on sn-devel-104

7 years agos4 dns: Correctly handle A questions for CNAMEs
Kai Blin [Fri, 1 Jun 2012 06:05:54 +0000 (08:05 +0200)]
s4 dns: Correctly handle A questions for CNAMEs

When an A/AAAA lookup is made for a name that actually is a CNAME
record, we need to return the CNAME record, and then do the A/AAAA
lookup for the name the CNAME points at.

This still fails for CNAMEs pointing at records for domains we need to
ask our forwarders for.

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Wed Jun  6 15:23:55 CEST 2012 on sn-devel-104

7 years agos4 dns: Structure tests a bit better
Kai Blin [Wed, 30 May 2012 06:08:53 +0000 (08:08 +0200)]
s4 dns: Structure tests a bit better

7 years agos3:smbd: change user_struct->vuid to uint64_t
Stefan Metzmacher [Tue, 5 Jun 2012 16:17:15 +0000 (18:17 +0200)]
s3:smbd: change user_struct->vuid to uint64_t

Only sconn->smb1.sessions.next_vuid remains as uint16_t,
so that we do not generate larger values yet.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jun  6 12:07:33 CEST 2012 on sn-devel-104

7 years agos3:smbd: let file_close_pid/file_close_user take a uint64_t vuid
Stefan Metzmacher [Tue, 5 Jun 2012 16:23:14 +0000 (18:23 +0200)]
s3:smbd: let file_close_pid/file_close_user take a uint64_t vuid

metze

7 years agos3:smbd: pass down vuid as uint64_t in lanman.c
Stefan Metzmacher [Tue, 5 Jun 2012 14:34:27 +0000 (16:34 +0200)]
s3:smbd: pass down vuid as uint64_t in lanman.c

metze

7 years agos3:smbd: pass down vuid as uint64_t in ipc.c
Stefan Metzmacher [Tue, 5 Jun 2012 14:27:09 +0000 (16:27 +0200)]
s3:smbd: pass down vuid as uint64_t in ipc.c

metze

7 years agos3:smbd: change vuid to uint64_t in uid.c
Stefan Metzmacher [Tue, 5 Jun 2012 14:19:01 +0000 (16:19 +0200)]
s3:smbd: change vuid to uint64_t in uid.c

metze

7 years agos3:smbd: let fcb_or_dos_open() take a uint64_t vuid
Stefan Metzmacher [Tue, 5 Jun 2012 14:09:53 +0000 (16:09 +0200)]
s3:smbd: let fcb_or_dos_open() take a uint64_t vuid

metze

7 years agos3:smbd: let close_cnum() take a uint64_t vuid
Stefan Metzmacher [Tue, 5 Jun 2012 14:07:13 +0000 (16:07 +0200)]
s3:smbd: let close_cnum() take a uint64_t vuid

metze

7 years agos3:smbd: use UID_FIELD_INVALID (0) instead of (uint16)-1 when calling close_cnum()
Stefan Metzmacher [Tue, 5 Jun 2012 14:01:56 +0000 (16:01 +0200)]
s3:smbd: use UID_FIELD_INVALID (0) instead of (uint16)-1 when calling close_cnum()

The only thing that's important is that the value is invalid.

metze

7 years agos3:smbd: let make_connection() take a uint64_t vuid
Stefan Metzmacher [Tue, 5 Jun 2012 13:56:46 +0000 (15:56 +0200)]
s3:smbd: let make_connection() take a uint64_t vuid

metze

7 years agos3:smbd: let conn_clear_vuid_caches() take a uint64_t vuid
Stefan Metzmacher [Tue, 5 Jun 2012 13:50:21 +0000 (15:50 +0200)]
s3:smbd: let conn_clear_vuid_caches() take a uint64_t vuid

metze

7 years agos3:smbd: let open_fake_file() take a uint64_t vuid
Stefan Metzmacher [Tue, 5 Jun 2012 13:39:44 +0000 (15:39 +0200)]
s3:smbd: let open_fake_file() take a uint64_t vuid

metze

7 years agos3:printing: let print_spool_open() take a uint64_t vuid
Stefan Metzmacher [Tue, 5 Jun 2012 13:35:11 +0000 (15:35 +0200)]
s3:printing: let print_spool_open() take a uint64_t vuid

metze

7 years agos3:smbd: change conn_ctx->vuid to uint64_t
Stefan Metzmacher [Tue, 5 Jun 2012 13:27:38 +0000 (15:27 +0200)]
s3:smbd: change conn_ctx->vuid to uint64_t

metze

7 years agos3:include: change current_user->vuid to uint64_t
Stefan Metzmacher [Tue, 5 Jun 2012 13:21:52 +0000 (15:21 +0200)]
s3:include: change current_user->vuid to uint64_t

metze

7 years agos3:smbd: change trans_state->vuid to uint64_t
Stefan Metzmacher [Tue, 5 Jun 2012 13:14:04 +0000 (15:14 +0200)]
s3:smbd: change trans_state->vuid to uint64_t

metze

7 years agos3:include: change smb_request->vuid to uint64_t
Stefan Metzmacher [Tue, 5 Jun 2012 12:40:57 +0000 (14:40 +0200)]
s3:include: change smb_request->vuid to uint64_t

metze

7 years agos3:include: move struct smb_request to vfs.h
Stefan Metzmacher [Tue, 5 Jun 2012 11:39:49 +0000 (13:39 +0200)]
s3:include: move struct smb_request to vfs.h

metze

7 years agos3:include: change files_struct->vuid to uint64_t
Stefan Metzmacher [Tue, 5 Jun 2012 11:17:26 +0000 (13:17 +0200)]
s3:include: change files_struct->vuid to uint64_t

metze

7 years agos3:include: change connection_struct->vuid to uint64_t
Stefan Metzmacher [Tue, 5 Jun 2012 11:05:43 +0000 (13:05 +0200)]
s3:include: change connection_struct->vuid to uint64_t

metze