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
Kai Blin [Wed, 30 May 2012 06:08:53 +0000 (08:08 +0200)]
s4 dns: Structure tests a bit better
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
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
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
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
Stefan Metzmacher [Tue, 5 Jun 2012 14:19:01 +0000 (16:19 +0200)]
s3:smbd: change vuid to uint64_t in uid.c
metze
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
Stefan Metzmacher [Tue, 5 Jun 2012 14:07:13 +0000 (16:07 +0200)]
s3:smbd: let close_cnum() take a uint64_t vuid
metze
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
Stefan Metzmacher [Tue, 5 Jun 2012 13:56:46 +0000 (15:56 +0200)]
s3:smbd: let make_connection() take a uint64_t vuid
metze
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
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
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
Stefan Metzmacher [Tue, 5 Jun 2012 13:27:38 +0000 (15:27 +0200)]
s3:smbd: change conn_ctx->vuid to uint64_t
metze
Stefan Metzmacher [Tue, 5 Jun 2012 13:21:52 +0000 (15:21 +0200)]
s3:include: change current_user->vuid to uint64_t
metze
Stefan Metzmacher [Tue, 5 Jun 2012 13:14:04 +0000 (15:14 +0200)]
s3:smbd: change trans_state->vuid to uint64_t
metze
Stefan Metzmacher [Tue, 5 Jun 2012 12:40:57 +0000 (14:40 +0200)]
s3:include: change smb_request->vuid to uint64_t
metze
Stefan Metzmacher [Tue, 5 Jun 2012 11:39:49 +0000 (13:39 +0200)]
s3:include: move struct smb_request to vfs.h
metze
Stefan Metzmacher [Tue, 5 Jun 2012 11:17:26 +0000 (13:17 +0200)]
s3:include: change files_struct->vuid to uint64_t
metze
Stefan Metzmacher [Tue, 5 Jun 2012 11:05:43 +0000 (13:05 +0200)]
s3:include: change connection_struct->vuid to uint64_t
metze
Stefan Metzmacher [Mon, 4 Jun 2012 12:37:45 +0000 (14:37 +0200)]
s3:includes: change vuid_cache_entry->vuid to uint64_t
metze
Stefan Metzmacher [Tue, 5 Jun 2012 10:33:52 +0000 (12:33 +0200)]
s3:include: move sys_acl prototypes to smb_acls.h
metze
Stefan Metzmacher [Tue, 5 Jun 2012 10:07:43 +0000 (12:07 +0200)]
s3:smbd: move struct user_struct to globals.h
metze
Stefan Metzmacher [Tue, 5 Jun 2012 10:06:11 +0000 (12:06 +0200)]
s3:include: remove typedef user_struct
metze
Stefan Metzmacher [Tue, 5 Jun 2012 10:04:15 +0000 (12:04 +0200)]
s3:smbd: use 'struct user_struct' instead of typedef'ed 'user_struct'
metze
Stefan Metzmacher [Tue, 5 Jun 2012 08:54:40 +0000 (10:54 +0200)]
s3:smbd: move forward declaration of struct aio_extra to smbd.h
metze
Stefan Metzmacher [Tue, 5 Jun 2012 12:53:01 +0000 (14:53 +0200)]
s3:printing: use smbd/smbd.h instead of just smbd/proto.h in queue_process.c
This fixes compiler warnings regarding incomplete types.
metze
Stefan Metzmacher [Tue, 5 Jun 2012 12:51:30 +0000 (14:51 +0200)]
s3:torture: use smbd/smbd.h instead of just smbd/proto.h in vfstest_chain.c
This fixes compiler warnings regarding incomplete types.
metze
Stefan Metzmacher [Tue, 5 Jun 2012 12:50:23 +0000 (14:50 +0200)]
s3:utils: use smbd/smbd.h instead of just smbd/proto.h
This fixes compiler warnings regarding incomplete types.
metze
Stefan Metzmacher [Tue, 5 Jun 2012 12:47:52 +0000 (14:47 +0200)]
s3:modules: we don't need smbd/proto.h in vfs_shadow_copy2.c
metze
Stefan Metzmacher [Tue, 5 Jun 2012 12:47:00 +0000 (14:47 +0200)]
s3:lib: we don't need smbd/proto.h in smbd_shim.c
metze
Stefan Metzmacher [Tue, 5 Jun 2012 09:53:47 +0000 (11:53 +0200)]
examples/VFS: don't use smbd/proto.h
metze
Stefan Metzmacher [Tue, 5 Jun 2012 09:50:53 +0000 (11:50 +0200)]
s3:include: move some prototypes (e.g. smb_register_vfs) to vfs.h
These are called from vfs modules, which should not depend on smbd/proto.h
metze
Stefan Metzmacher [Tue, 5 Jun 2012 08:53:05 +0000 (10:53 +0200)]
s3:include: remove unused forward declaration of deferred_open_record in smb.h
metze
Stefan Metzmacher [Tue, 5 Jun 2012 08:48:57 +0000 (10:48 +0200)]
s3:smbd: move UCF_ defines to smbd.h
metze
Stefan Metzmacher [Tue, 5 Jun 2012 08:38:48 +0000 (10:38 +0200)]
s3:include: move struct smb_filename to vfs.h
metze
Stefan Metzmacher [Tue, 5 Jun 2012 08:37:34 +0000 (10:37 +0200)]
s3:include: move struct smb_file_time to vfs.h
metze
Stefan Metzmacher [Tue, 5 Jun 2012 08:28:49 +0000 (10:28 +0200)]
s3:include: move struct connection_struct (and sub structs) to vfs.h
metze
Stefan Metzmacher [Tue, 5 Jun 2012 08:17:57 +0000 (10:17 +0200)]
s3:include: move struct stream_struct to vfs.h
metze
Stefan Metzmacher [Tue, 5 Jun 2012 08:13:45 +0000 (10:13 +0200)]
s3:include: move struct fd_handle/files_struct to vfs.h
metze
Stefan Metzmacher [Tue, 5 Jun 2012 08:10:17 +0000 (10:10 +0200)]
s3:includes: move union unid_t to vfs.h
metze
Stefan Metzmacher [Tue, 5 Jun 2012 08:00:06 +0000 (10:00 +0200)]
s3:smbd: move struct trans_state to smbd.h
metze
Stefan Metzmacher [Tue, 5 Jun 2012 07:51:02 +0000 (09:51 +0200)]
s3:smbd: move struct privilege_paths to smbd.h
metze
Stefan Metzmacher [Tue, 5 Jun 2012 07:38:05 +0000 (09:38 +0200)]
s3:smbd: make struct notify_change_buf private to notify.c
metze
Stefan Metzmacher [Tue, 5 Jun 2012 07:37:39 +0000 (09:37 +0200)]
s3:smbd: make use of change_notify_fsp_has_changes()
metze
Stefan Metzmacher [Tue, 5 Jun 2012 07:36:36 +0000 (09:36 +0200)]
s3:smbd: add change_notify_fsp_has_changes()
metze
Stefan Metzmacher [Tue, 5 Jun 2012 06:29:56 +0000 (08:29 +0200)]
s3:printing: add print_spool_rap_jobid()
metze
Stefan Metzmacher [Mon, 4 Jun 2012 16:15:25 +0000 (18:15 +0200)]
s3:printing: make struct print_file_data private to printspoolss.c
metze
Stefan Metzmacher [Tue, 5 Jun 2012 06:42:53 +0000 (08:42 +0200)]
s3:smbd: use print_spool_rap_jobid() in call_trans2ioctl()
metze
Stefan Metzmacher [Tue, 5 Jun 2012 06:33:53 +0000 (08:33 +0200)]
s3:smbd: use print_spool_rap_jobid() in reply_ioctl()
metze
Stefan Metzmacher [Mon, 4 Jun 2012 16:13:55 +0000 (18:13 +0200)]
s3:smbd: fcb_or_dos_open() can be static
metze
Stefan Metzmacher [Mon, 4 Jun 2012 16:10:51 +0000 (18:10 +0200)]
s3:smbd: dup_file_fsp() never gets called for print files
metze
Stefan Metzmacher [Mon, 4 Jun 2012 15:57:36 +0000 (17:57 +0200)]
s3:smbd: make struct vfs_fsp_data private to vfs.c
metze
Stefan Metzmacher [Mon, 4 Jun 2012 15:55:28 +0000 (17:55 +0200)]
s3:smbd: make use of vfs_remove_all_fsp_extensions() in file_free()
metze
Stefan Metzmacher [Mon, 4 Jun 2012 15:54:41 +0000 (17:54 +0200)]
s3:smbd: add vfs_remove_all_fsp_extensions()
metze
Stefan Metzmacher [Mon, 4 Jun 2012 15:43:13 +0000 (17:43 +0200)]
s3:includes: move struct share_mode_lock to locking.h
metze
Stefan Metzmacher [Mon, 4 Jun 2012 12:48:09 +0000 (14:48 +0200)]
s3:smbd: remove typedef for struct write_cache
metze
Stefan Metzmacher [Mon, 4 Jun 2012 12:46:31 +0000 (14:46 +0200)]
s3:smbd: make typedef write_cache private to fileio.c
metze
Andrew Bartlett [Wed, 6 Jun 2012 06:22:50 +0000 (16:22 +1000)]
s3-libsmb: Fix error messages to correctly mention PLAINTEXT not LM
Also make all the message say the same thing.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Jun 6 10:17:55 CEST 2012 on sn-devel-104
Andrew Bartlett [Tue, 5 Jun 2012 23:23:22 +0000 (09:23 +1000)]
build: Rationalise AIO support in configure, ensure on by default
With this change, the define to check for AIO is HAVE_AIO, consistant
with other subsystems.
It is now also on by default in the autoconf build, as it has been for waf.
Andrew Bartlett
Andrew Bartlett [Tue, 5 Jun 2012 13:27:58 +0000 (23:27 +1000)]
lib/replace: Fix snprintf() override for systems with a broken snprintf()
This ensures we provide the replacement functions that we need.
Andrew Bartlett
Björn Jacke [Tue, 5 Jun 2012 19:56:19 +0000 (21:56 +0200)]
s3: temporary hack to make the waf build work withouth autotools being required
this also disables the examples/VFS build for waf now. Finally we should create a
wscript file for examples/VFS.
Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Tue Jun 5 23:56:22 CEST 2012 on sn-devel-104
Stefan Metzmacher [Mon, 4 Jun 2012 13:32:28 +0000 (15:32 +0200)]
s3:lib: split things into a conn_tdb.h
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jun 5 19:28:35 CEST 2012 on sn-devel-104
Stefan Metzmacher [Mon, 4 Jun 2012 16:30:11 +0000 (18:30 +0200)]
s3:libsmb: fix the talloc parent of clistr_pull_talloc() in cli_notify_done()
metze
Stefan Metzmacher [Mon, 4 Jun 2012 14:40:42 +0000 (16:40 +0200)]
s3:libsmb: change cli_sesssetup_blob_* to use uint8_t instead of char for inbuf
metze
Stefan Metzmacher [Mon, 4 Jun 2012 14:26:27 +0000 (16:26 +0200)]
s3:libsmb: use inhdr instead of inbuf in tree connect related functions
metze
Stefan Metzmacher [Mon, 4 Jun 2012 14:26:27 +0000 (16:26 +0200)]
s3:libsmb: use inhdr instead of inbuf in session setup related functions
metze
Stefan Metzmacher [Mon, 4 Jun 2012 13:59:42 +0000 (15:59 +0200)]
s3:libsmb: remove unused 'inbuf' variable
metze
Stefan Metzmacher [Mon, 4 Jun 2012 13:53:52 +0000 (15:53 +0200)]
s3:libsmb: don't require a pinbuf in cli_smb_recv() to keep the memory
metze
Stefan Metzmacher [Mon, 28 May 2012 13:25:24 +0000 (15:25 +0200)]
s4:torture/locktest: fix compiler warning
metze
Björn Jacke [Tue, 5 Jun 2012 13:37:00 +0000 (15:37 +0200)]
s3: remove dependency on automake for "make everything"
the dependency was introduced by
737a1c9b96a4ba8d8688f4dba1df6d931e10e64d
We now call auto* in examples/VFS from within the main autogen.sh.
This fixes bug #8978.
Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Tue Jun 5 17:32:22 CEST 2012 on sn-devel-104
Andrew Bartlett [Tue, 5 Jun 2012 03:43:08 +0000 (13:43 +1000)]
VERSION: mark as beta2 as we move on to the next release
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Jun 5 11:38:21 CEST 2012 on sn-devel-104
Andrew Bartlett [Tue, 5 Jun 2012 03:27:42 +0000 (13:27 +1000)]
VERSION: Mark release as beta1
Andrew Bartlett [Tue, 5 Jun 2012 04:39:15 +0000 (14:39 +1000)]
build: Add newlines for clarity
Andrew Bartlett [Tue, 5 Jun 2012 04:35:15 +0000 (14:35 +1000)]
build: Add test for HAVE_BROKEN_POSIX_FALLOCATE to waf build
This was previously only in the autoconf build, added in
3264a98f.
Andrew Bartlett
Andrew Bartlett [Tue, 5 Jun 2012 04:02:44 +0000 (14:02 +1000)]
build: Remove unused check for HAVE_UNSIGNED_CHAR
BTW, uint8_t check is in libreplace for both build systems.
Andrew Bartlett [Tue, 5 Jun 2012 03:42:23 +0000 (13:42 +1000)]
Roadmap: Clarify that 4.0 is our next release
Andrew Bartlett [Tue, 5 Jun 2012 03:21:13 +0000 (13:21 +1000)]
WHATSNEW: Add details on NTP and DNS as new protocols we cover
Jeremy Allison [Tue, 5 Jun 2012 03:45:34 +0000 (20:45 -0700)]
Tests for bug #8972 - Add permission checks to run_simple_posix_open_test().
This requires a share with :
create mask = 0777
force create mode = 0
directory mask = 0777
force directory mode = 0
set so we don't mess with requested permissions.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Jun 5 08:20:03 CEST 2012 on sn-devel-104
Jeremy Allison [Tue, 5 Jun 2012 03:44:56 +0000 (20:44 -0700)]
Tests for bug #8972 - run the POSIX tests against the posix_share.
Jeremy Allison [Tue, 5 Jun 2012 03:44:08 +0000 (20:44 -0700)]
Tests for bug #8972 - Add a posix_share definition to s4 so we can do raw posix permissions checks.
Jeremy Allison [Tue, 5 Jun 2012 03:43:09 +0000 (20:43 -0700)]
Tests for bug #8972 - Add a posix_share definition to s3 so we can do raw posix permissions checks.
Andrew Bartlett [Tue, 5 Jun 2012 01:51:18 +0000 (11:51 +1000)]
wintest: Fix test-s3.py to use smbclient3 under the name smbclient
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Jun 5 06:24:39 CEST 2012 on sn-devel-104
Andrew Bartlett [Tue, 5 Jun 2012 01:41:52 +0000 (11:41 +1000)]
WHATSNEW: mention FreeBSD getaddrinfo() issue
Martin Schwenke [Fri, 16 Dec 2011 01:43:34 +0000 (12:43 +1100)]
s3:build(autoconf): fix "no AC_LANG_SOURCE call detected" warnings
Autoconf 2.68 NEWS says:
** The macros AC_PREPROC_IFELSE, AC_COMPILE_IFELSE, AC_LINK_IFELSE, and
AC_RUN_IFELSE now warn if the first argument failed to use
AC_LANG_SOURCE or AC_LANG_PROGRAM to generate the conftest file
contents. A new macro AC_LANG_DEFINES_PROVIDED exists if you have
a compelling reason why you cannot use AC_LANG_SOURCE but must
avoid the warning.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Andrew Bartlett [Tue, 5 Jun 2012 01:15:21 +0000 (11:15 +1000)]
WHATSNEW: Mention trouble with DNS replication
Andrew Bartlett [Tue, 5 Jun 2012 00:34:27 +0000 (10:34 +1000)]
WHATSNEW: Note FreeBSD improvements
Andrew Bartlett [Mon, 4 Jun 2012 23:58:41 +0000 (09:58 +1000)]
s4-provision: Test for posix ACLs in the actual sysvol path
This avoids issues in the previous location where lp may not be initialised at this point
and instead simply waits until we have a known sysvol path, and test for ACL support
there.
Andrew Bartlett
Andrew Bartlett [Mon, 4 Jun 2012 23:56:53 +0000 (09:56 +1000)]
s4-provision: Place xattr.tdb in the actual state directory
This patch does two things: it fixes up the spelling of "state dir" to
"state directory" so that we actually find the smb.conf parameter, and
we move it to after we process the global settings in case this is
changed in the future.
Andrew Bartlett
Andrew Bartlett [Mon, 4 Jun 2012 23:21:15 +0000 (09:21 +1000)]
WHATSNEW: Update for beta1
Andrew Bartlett [Mon, 4 Jun 2012 23:07:44 +0000 (09:07 +1000)]
VERSION: prepare for beta1 by setting and parsing the beta version
Andriy Syrovenko [Mon, 4 Jun 2012 22:32:42 +0000 (01:32 +0300)]
Add '--use-ntvfs' option to 'samba-tool domain join'
Andrew Bartlett [Wed, 30 May 2012 02:32:56 +0000 (12:32 +1000)]
s3-smbd: Remove support for protocols before LANMAN1
This falls out of the removal of security=share, because we now require that
a session setup has been performed before (essentially) all other operations.
Andrew Bartlett
Andrew Bartlett [Mon, 28 May 2012 03:08:45 +0000 (13:08 +1000)]
Remove Manifest. The information here was outdated
Andrew Bartlett [Mon, 4 Jun 2012 22:00:00 +0000 (08:00 +1000)]
libreplace: Add copyrights to ease tracking of this file in future
As GIT didn't realise this was a copy out of lib/system.c, this should
make it easier to track the copyright holders on this file. Herb's
name wasn't on the original file, but was the only other author I
could find in the git logs.
I've added my copyright here too.
Andrew Bartlett
Andrew Bartlett [Sat, 2 Jun 2012 13:51:39 +0000 (23:51 +1000)]
libreplace: Remove autoconf build system
This leaves the parts required to build libreplace as a static lib for the autoconf build
Andrew Bartlett
Jeremy Allison [Tue, 5 Jun 2012 00:34:54 +0000 (17:34 -0700)]
Fix bug #8972 - Directory group write permission bit is set if unix extensions are enabled
We can't manipulate file_attributes if it's a posix call. I'll look
at adding a test for this asap.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Jun 5 04:26:11 CEST 2012 on sn-devel-104
Andrew Bartlett [Sun, 3 Jun 2012 22:47:03 +0000 (08:47 +1000)]
libreplace: Ensure we link xattr.c on MacOS
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Jun 4 02:36:55 CEST 2012 on sn-devel-104
Luk Claes [Sat, 26 May 2012 09:58:34 +0000 (11:58 +0200)]
s3:libsmb: get rid of cli_smb_req_*,cli_smb_wct_ofs,cli_smb_chain_send
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Jun 3 23:37:02 CEST 2012 on sn-devel-104