Stefan Metzmacher [Wed, 13 Jun 2012 07:11:42 +0000 (09:11 +0200)]
s4:ntvfs: add '_fn' suffix to all ntvfs_ops function pointers
This hopefully fixes the build on systems where _LARGE_FILES
triggers defines of syscalls e.g. '#define lseek lseek64'
on AIX.
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Jun 13 11:03:15 CEST 2012 on sn-devel-104
Volker Lendecke [Tue, 12 Jun 2012 09:17:58 +0000 (11:17 +0200)]
s3: Use talloc_tos() in more places in dbwrap_util
Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Tue Jun 12 15:37:16 CEST 2012 on sn-devel-104
Volker Lendecke [Mon, 11 Jun 2012 12:10:23 +0000 (14:10 +0200)]
s3: Make --pw-nt-hash useable in smbclient
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Jun 12 12:41:10 CEST 2012 on sn-devel-104
Volker Lendecke [Mon, 11 Jun 2012 12:03:16 +0000 (14:03 +0200)]
s3: Add --pw-nt-hash to popt_common_credentials
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Volker Lendecke [Mon, 11 Jun 2012 12:02:03 +0000 (14:02 +0200)]
s3: Add cli_state->pw_nt_hash
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Volker Lendecke [Mon, 11 Jun 2012 12:01:08 +0000 (14:01 +0200)]
s3: Add user_auth_info->use_pw_nt_hash
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Stefan Metzmacher [Mon, 11 Jun 2012 21:47:48 +0000 (23:47 +0200)]
s3-libsmbclient: change vnum to 0.2.0
metze
Volker Lendecke [Mon, 11 Jun 2012 11:29:10 +0000 (13:29 +0200)]
s3-libsmbclient: Add OptionUseNTHash
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Volker Lendecke [Mon, 11 Jun 2012 11:32:07 +0000 (13:32 +0200)]
s3: Add CLI_FULL_CONNECTION_USE_NT_HASH
... as an indicator that the password supplied is the NT hash
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Volker Lendecke [Mon, 11 Jun 2012 11:12:30 +0000 (13:12 +0200)]
S3: Add ntlmssp_set_password_hash
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Volker Lendecke [Mon, 11 Jun 2012 08:15:08 +0000 (10:15 +0200)]
s3-libsmbclient: Make SMBC_call_auth_fn static
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Michael Adam [Mon, 11 Jun 2012 22:32:19 +0000 (00:32 +0200)]
s4:smbd: fix typos
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Tue Jun 12 09:21:15 CEST 2012 on sn-devel-104
Michael Adam [Mon, 11 Jun 2012 22:30:42 +0000 (00:30 +0200)]
s4:kerberos: fix typos in kerberos-notes.txt
Michael Adam [Mon, 11 Jun 2012 22:29:11 +0000 (00:29 +0200)]
s4:gensec: fix a comment typo
Michael Adam [Mon, 11 Jun 2012 15:58:02 +0000 (17:58 +0200)]
s4:torture: fix use of non-existent word (existant)
Michael Adam [Mon, 11 Jun 2012 15:52:57 +0000 (17:52 +0200)]
s4:tests: fix use of a non-existent word (existant)
Michael Adam [Mon, 11 Jun 2012 15:51:51 +0000 (17:51 +0200)]
s4:provision: fix use of non-existent word (existant)
Michael Adam [Mon, 11 Jun 2012 15:51:05 +0000 (17:51 +0200)]
s4:registry:testsuite: fix use of non-existent word (existant)
Michael Adam [Mon, 11 Jun 2012 15:50:22 +0000 (17:50 +0200)]
s4:heimdal: fix use of a non-existent word (existant)
Michael Adam [Mon, 11 Jun 2012 15:49:15 +0000 (17:49 +0200)]
s3:torture: fix use of non-existent word (existant)
Michael Adam [Mon, 11 Jun 2012 15:48:32 +0000 (17:48 +0200)]
s3:printing: fix use of a non-existent word (existant)
Michael Adam [Mon, 11 Jun 2012 15:47:58 +0000 (17:47 +0200)]
s3:vfs:scannedonly: fix use of non-existent word (existant)
Michael Adam [Mon, 11 Jun 2012 15:47:04 +0000 (17:47 +0200)]
libsmbclient: fix use of a non-existent word (existant)
Michael Adam [Mon, 11 Jun 2012 15:38:28 +0000 (17:38 +0200)]
selftest: fix use of a non-existent word (existant)
Michael Adam [Mon, 11 Jun 2012 15:37:44 +0000 (17:37 +0200)]
lib/testtools: fix use of a non-existent word (existant)
Michael Adam [Mon, 11 Jun 2012 15:37:13 +0000 (17:37 +0200)]
tdb:tests: fix use of a non-existent word (existant)
Michael Adam [Mon, 11 Jun 2012 15:36:38 +0000 (17:36 +0200)]
ldb:tests: fix use of a non-existent word (existant)
Michael Adam [Mon, 11 Jun 2012 15:35:11 +0000 (17:35 +0200)]
pidl/tests: fix use of a non-existent word (existant)
Michael Adam [Mon, 11 Jun 2012 15:24:20 +0000 (17:24 +0200)]
lib/util: fix use of a non-existent word (existant) in a comment
Michael Adam [Mon, 11 Jun 2012 15:24:20 +0000 (17:24 +0200)]
nsstest: fix use of a non-existent word (existant)
Volker Lendecke [Fri, 8 Jun 2012 09:59:18 +0000 (11:59 +0200)]
s3: Make vfswrap_audit_file static
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jun 12 02:26:31 CEST 2012 on sn-devel-104
Volker Lendecke [Mon, 11 Jun 2012 09:16:12 +0000 (11:16 +0200)]
s3: Fix Coverity ID 703870 Uninitialized scalar variable
According to man 2 recvmsg this might be unnecessary, but it does
not hurt either
Signed-off-by: Jeremy Allison <jra@samba.org>
Volker Lendecke [Mon, 11 Jun 2012 09:00:27 +0000 (11:00 +0200)]
s3: Save errno around a TALLOC_FREE
Signed-off-by: Jeremy Allison <jra@samba.org>
Volker Lendecke [Mon, 11 Jun 2012 08:59:23 +0000 (10:59 +0200)]
s3: Fix Coverity ID 703871 Unused pointer value
Signed-off-by: Jeremy Allison <jra@samba.org>
Björn Jacke [Mon, 11 Jun 2012 18:58:11 +0000 (20:58 +0200)]
s3/doc: some spelling fixes
Thanks to Frans Luteijn <f.a.g.luteijn at knoware.nl> for providing the fixes!
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Mon Jun 11 23:16:26 CEST 2012 on sn-devel-104
Matthieu Patou [Mon, 11 Jun 2012 17:23:51 +0000 (10:23 -0700)]
s3-winbindd: add comments about dump_core_setup
This patch is related to change
0ea7152ff479e32e25817e4ddb1c2a1569bad81d
Comments are added to explain why we call dump_core_setup 3 times.
Autobuild-User(master): Matthieu Patou <mat@samba.org>
Autobuild-Date(master): Mon Jun 11 21:21:11 CEST 2012 on sn-devel-104
Michael Adam [Thu, 7 Jun 2012 12:49:28 +0000 (14:49 +0200)]
s3:smbd: explain parameters to filename_convert call in smbd_smb2_create_send()
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Mon Jun 11 19:21:51 CEST 2012 on sn-devel-104
Volker Lendecke [Mon, 11 Jun 2012 09:33:45 +0000 (11:33 +0200)]
s3: Fix Coverity ID 703869 Logically dead code
We "TALLOC_FREE(curr)" and assign prev=curr in the for-loop header.
This will lead to "prev"==NULL always. In this loop, we do not need
to correctly re-shuffle the linked list, we delete all from the
beginning anyway.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jun 11 17:26:53 CEST 2012 on sn-devel-104
Volker Lendecke [Mon, 11 Jun 2012 08:35:38 +0000 (10:35 +0200)]
s3: Fix Coverity ID 709049 Dereference before null check
We have dereferenced fsp before. Because smb2 is only handle based,
this is a bogus check.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jun 11 15:30:54 CEST 2012 on sn-devel-104
Andrew Bartlett [Mon, 11 Jun 2012 03:22:42 +0000 (13:22 +1000)]
debug: Do not constantly rename logs when max log size = 0
In Samba4, the max log size parameter is not yet connected, so maxlog is 0
This means that we would, on receipt of a -HUP, have all child
processes attempt a rename.
Now we have the -HUP mean we reopen the logs unconditionally, and then
we see if the log is too large (samba3 mode) or simply proceed assuming
that someone else has renamed the logs for us.
Andrew Bartlett
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Jun 11 13:34:43 CEST 2012 on sn-devel-104
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
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
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
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
Andrew Bartlett [Fri, 8 Jun 2012 03:37:49 +0000 (13:37 +1000)]
s4-selftest: Test samba-tool drs replicate --local --full-sync
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
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
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
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
Björn Jacke [Sun, 10 Jun 2012 18:00:03 +0000 (20:00 +0200)]
s3: fix build on systems without O_NOFOLLOW
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
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
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
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
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
Stefan Metzmacher [Fri, 8 Jun 2012 09:57:21 +0000 (11:57 +0200)]
s3:smb2_lock: make use of file_fsp_smb2()
metze
Stefan Metzmacher [Fri, 8 Jun 2012 09:47:05 +0000 (11:47 +0200)]
s3:smb2_write: make use of file_fsp_smb2()
metze
Stefan Metzmacher [Fri, 8 Jun 2012 09:24:02 +0000 (11:24 +0200)]
s3:smb2_read: make use of file_fsp_smb2()
metze
Stefan Metzmacher [Fri, 8 Jun 2012 09:05:58 +0000 (11:05 +0200)]
s3:smb2_notify: make use of file_fsp_smb2()
metze
Stefan Metzmacher [Fri, 8 Jun 2012 08:54:46 +0000 (10:54 +0200)]
s3:smb2_setinfo: make use of file_fsp_smb2()
metze
Stefan Metzmacher [Fri, 8 Jun 2012 08:46:13 +0000 (10:46 +0200)]
s3:smb2_getinfo: make use of file_fsp_smb2()
metze
Stefan Metzmacher [Fri, 8 Jun 2012 08:42:43 +0000 (10:42 +0200)]
s3:smb2_find: make use of file_fsp_smb2()
metze
Stefan Metzmacher [Fri, 8 Jun 2012 08:36:24 +0000 (10:36 +0200)]
s3:smb2_break: make use of file_fsp_smb2()
metze
Stefan Metzmacher [Fri, 8 Jun 2012 08:31:58 +0000 (10:31 +0200)]
s3:smb2_close: make use of file_fsp_smb2()
metze
Stefan Metzmacher [Fri, 8 Jun 2012 08:14:45 +0000 (10:14 +0200)]
s3:smb2_flush: make use of file_fsp_smb2()
metze
Stefan Metzmacher [Fri, 8 Jun 2012 08:11:57 +0000 (10:11 +0200)]
s3:smbd: add file_fsp_smb2()
metze
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
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
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
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
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
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
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
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
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>
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>
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
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>
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>
Volker Lendecke [Fri, 8 Jun 2012 12:24:41 +0000 (14:24 +0200)]
s3: Remove unnecessary ()
Signed-off-by: Michael Adam <obnox@samba.org>
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>
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>
Volker Lendecke [Fri, 8 Jun 2012 12:24:41 +0000 (14:24 +0200)]
s3: Remove unnecessary ()
Signed-off-by: Michael Adam <obnox@samba.org>
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
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
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>
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>
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
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>
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
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.
David Disseldorp [Tue, 3 Apr 2012 12:17:35 +0000 (14:17 +0200)]
doc: add FSRVP commands to rpcclient man page
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.
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.
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
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
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
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
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
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>