Tim Prouty [Tue, 27 Jan 2009 01:19:40 +0000 (17:19 -0800)]
s3 onefs: Add the OneFS implementation of SMB_VFS_GET_ALLOC_SIZE
Tim Prouty [Mon, 26 Jan 2009 23:39:40 +0000 (15:39 -0800)]
s3: Add a new SMB_VFS_GET_ALLOC_SIZE vfs operation
This allows module implementors to customize what allocation size is
returned to the client.
Michael Adam [Thu, 22 Jan 2009 11:34:43 +0000 (12:34 +0100)]
s3:proto.h: remove duplicate prototypes.
Michael
Michael Adam [Thu, 22 Jan 2009 09:24:40 +0000 (10:24 +0100)]
s3:idmap: move IDMAP_VERSION to the idmap tdb backend, where it belogns.
Michael
Michael Adam [Thu, 29 Jan 2009 23:16:41 +0000 (00:16 +0100)]
s3:build: fix build on AIX - only test for splice on linux
Michael
Volker Lendecke [Mon, 26 Jan 2009 19:45:09 +0000 (20:45 +0100)]
Add the strlen to push to smb_bytes_push_str, return the converted size
The pushed strlen replaces the STR_TERMINATE flag which I personally always
find very confusing.
Volker Lendecke [Sun, 25 Jan 2009 20:55:05 +0000 (21:55 +0100)]
cli_ucs2
Volker Lendecke [Thu, 29 Jan 2009 19:07:58 +0000 (20:07 +0100)]
Fix the build on "opi"
It did not like to include "includes.h" twice
Björn Jacke [Thu, 29 Jan 2009 19:56:51 +0000 (20:56 +0100)]
add missing semicolons
the fixed configure check led to a missing semicolon in the now activated BSD
code. Then this error was even copypasted into the new AIX code. grrr
Björn Jacke [Thu, 29 Jan 2009 12:23:26 +0000 (13:23 +0100)]
setting mtime setted atime on BSD systems, fix this
Björn Jacke [Wed, 28 Jan 2009 23:35:26 +0000 (00:35 +0100)]
add AIX sub-second resolution timestamp support
Björn Jacke [Wed, 28 Jan 2009 23:33:19 +0000 (00:33 +0100)]
add configure check for AIX style sub-second resolution support
Björn Jacke [Wed, 28 Jan 2009 23:20:00 +0000 (00:20 +0100)]
rather cosmetic fix for failed birthtime configure checks
Björn Jacke [Wed, 28 Jan 2009 23:17:12 +0000 (00:17 +0100)]
give configure check "sub-second timestamps without struct timespec" a chance to succeed
Stefan Metzmacher [Wed, 28 Jan 2009 16:36:36 +0000 (17:36 +0100)]
s3:configure: autodetect ctdb/cluster support
We need to make sure ctdb has transaction support
and we autodetect ipv6 support.
metze
Stefan Metzmacher [Wed, 28 Jan 2009 17:55:13 +0000 (18:55 +0100)]
s3:ctdbd_conn: canonicalize ips before sending them to ctdbd
This makes samba work with older ctdb versions.
metze
Michael Adam [Thu, 29 Jan 2009 14:42:10 +0000 (15:42 +0100)]
s3:smbd: make smbd_open_one_socket() static
Michael
Stefan Metzmacher [Thu, 29 Jan 2009 14:30:38 +0000 (15:30 +0100)]
s3:smbd: ignore open_socket_in() failures
This restores the pre
e0232934fbf69a9e72de1d9844b14d70b34a2d6a
behavior.
metze
Björn Jacke [Fri, 9 Jan 2009 11:05:55 +0000 (12:05 +0100)]
quote ' inside '...' and make sure shell isn't eating \ by using perl here.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Michael Adam [Thu, 29 Jan 2009 12:04:01 +0000 (13:04 +0100)]
s3: fix bug #6073: prevent ads_connect() from using SSL unless explicitly requested
This fixes "net ads join".
It copes with the changed default "ldap ssl = start tls".
A new boolean option "ldap ssl : ads" is added to allow for
explicitly requesting ssl with ads.
Michael
Stefan Metzmacher [Thu, 29 Jan 2009 09:30:45 +0000 (10:30 +0100)]
s3:selftest: import more tests from 'make test'
metze
Stefan Metzmacher [Wed, 28 Jan 2009 20:01:04 +0000 (21:01 +0100)]
selftest: add "member" environment for Samba3
metze
Stefan Metzmacher [Thu, 29 Jan 2009 09:29:35 +0000 (10:29 +0100)]
s3:seltest: make test_smbclient_s3.sh more strict
metze
Stefan Metzmacher [Wed, 28 Jan 2009 21:15:44 +0000 (22:15 +0100)]
selftest: fix Samba3 bugs
metze
Stefan Metzmacher [Wed, 28 Jan 2009 21:13:11 +0000 (22:13 +0100)]
selftest: Samba4 remove unused variable
metze
Stefan Metzmacher [Wed, 28 Jan 2009 19:30:16 +0000 (20:30 +0100)]
selftest: abstract Samba3 provision a bit
metze
Stefan Metzmacher [Wed, 28 Jan 2009 16:28:51 +0000 (17:28 +0100)]
s3:selftest: fix 'make selftest'
metze
Stefan Metzmacher [Wed, 28 Jan 2009 16:24:38 +0000 (17:24 +0100)]
s3:selftest: create BUILTIN\\Administrators at startup
And add and remove the alias member via net rpc group
instead of net sam.
metze
Jelmer Vernooij [Wed, 28 Jan 2009 16:06:18 +0000 (17:06 +0100)]
Stop installing events.h - it contains a broken include itself and
should be considered internal now.
Jelmer Vernooij [Wed, 28 Jan 2009 16:05:56 +0000 (17:05 +0100)]
Define _GNU_SOURCE, required for comparison_fn_t.
Volker Lendecke [Tue, 27 Jan 2009 18:45:51 +0000 (19:45 +0100)]
Avoid valgrind errors
In event handlers, we might destroy other events that are pending in the lists.
We can only run one event safely per select call.
Yes, I've seen these valgrind errors :-)
Jeremy, with
ccdd921e61 you had checked in the change to run multiple events.
Do you remember why it was necessary and could not be solved in a different
way?
Volker
Volker Lendecke [Tue, 27 Jan 2009 18:41:34 +0000 (19:41 +0100)]
Fix a valgrind error when the socket dies
Don't reference anything that might have been deleted in the async_req_error
call.
Michael Adam [Wed, 28 Jan 2009 11:41:04 +0000 (12:41 +0100)]
s3:winbind: remove prototype for non-existent function from winbind_proto.h
Michael
Michael Adam [Wed, 28 Jan 2009 11:19:06 +0000 (12:19 +0100)]
s3:test: exit the net rpc registry tests when give_administrative_rights fails
Michael
Stefan Metzmacher [Wed, 28 Jan 2009 11:03:59 +0000 (12:03 +0100)]
s3:selftest: fix warnings with empty *_TEST_LOG variables
metze
Michael Adam [Wed, 28 Jan 2009 11:04:53 +0000 (12:04 +0100)]
s3:registry: always provision the registry, not only in smbd.
This will make tools like "net registry" also fill the registry
with the basic hives and keys.
Michael
Stefan Metzmacher [Wed, 28 Jan 2009 10:59:26 +0000 (11:59 +0100)]
selftest: set 'lock dir' in client.conf
metze
Kai Blin [Sat, 24 Jan 2009 09:00:13 +0000 (10:00 +0100)]
async_sock: Move to top level
Stefan Metzmacher [Wed, 28 Jan 2009 09:50:55 +0000 (10:50 +0100)]
s3:torture: support SMB_CONF_PATH envvar in smbtorture
metze
Michael Adam [Wed, 28 Jan 2009 09:35:17 +0000 (10:35 +0100)]
s3:util_tdb: remove duplicate prototypes (from ../lib/util/util_tdb.h)
Michael
Stefan Metzmacher [Wed, 28 Jan 2009 08:35:44 +0000 (09:35 +0100)]
s3: try to make 'make selftest' work again
metze
Michael Adam [Wed, 28 Jan 2009 08:42:42 +0000 (09:42 +0100)]
s3:build: don't use $(FLAGS) in linking targets - it is useless
Michael
Michael Adam [Wed, 28 Jan 2009 07:56:17 +0000 (08:56 +0100)]
s3:tdb_validate: clean up leading tabs/spaces and trailing spaces.
Michael
Michael Adam [Wed, 28 Jan 2009 07:52:53 +0000 (08:52 +0100)]
s3: separate tdb validation code out into its own source file
So this gets now linked only into its single user: winbindd
(needed by winbindd_cache.c)
Michael
Jeremy Allison [Wed, 28 Jan 2009 00:19:09 +0000 (16:19 -0800)]
Fix detection of dns_sd libraries.
Jeremy.
Steven Danneman [Tue, 27 Jan 2009 21:24:38 +0000 (13:24 -0800)]
Move S3 specific parameters to S3 conf file in make test.
Tim Prouty [Tue, 27 Jan 2009 18:37:51 +0000 (10:37 -0800)]
s3: Fix shadowed declaration
Michael Adam [Tue, 27 Jan 2009 14:46:25 +0000 (15:46 +0100)]
libreplace: fix detection of netinet/ip.h on solaris 8
(The test needs to additionally include <netinet/in_systm.h>.)
Michael
Stefan Metzmacher [Tue, 27 Jan 2009 08:48:48 +0000 (09:48 +0100)]
s3:rpc_server: use get_client_fd() instead of smbd_server_fd()
Both are absolutely the same, but smbd_server_fd() is otherwise
only used in smbd/*.c and would like to remove smbd_server_fd() soon.
metze
Stefan Metzmacher [Tue, 27 Jan 2009 09:02:43 +0000 (10:02 +0100)]
s3:smbd: wait for new connection via fd events
metze
Stefan Metzmacher [Mon, 26 Jan 2009 13:55:54 +0000 (14:55 +0100)]
s3:smbd: make mdns registration event driven.
metze
Stefan Metzmacher [Fri, 23 Jan 2009 12:08:22 +0000 (13:08 +0100)]
s3:smbd: make inetd code path more clear
metze
Stefan Metzmacher [Fri, 23 Jan 2009 09:08:44 +0000 (10:08 +0100)]
s3:smbd: make kernel oplocks event driven
And use signal events for Linux oplocks.
metze
Stefan Metzmacher [Fri, 23 Jan 2009 09:07:45 +0000 (10:07 +0100)]
s3:smbd: remove pointless respond_to_all_remaining_local_messages() function
This the process_kernel_oplock() function never response to messages,
it only generates messages to ourself.
metze
Stefan Metzmacher [Thu, 22 Jan 2009 17:04:17 +0000 (18:04 +0100)]
s3:smbd: convert aio to use tevent_signal
metze
Stefan Metzmacher [Thu, 22 Jan 2009 15:17:23 +0000 (16:17 +0100)]
s3:nmbd: handle SIG_TERM and SIGHUP via tevent
metze
Stefan Metzmacher [Fri, 23 Jan 2009 09:15:00 +0000 (10:15 +0100)]
s3:nmbd: as the sig_term() handler only sets a flag we don't need to block SIGTERM
The arguments of commit
d98bea900ee694cdba83149620c65bd7f8765f26
are no longer valid.
metze
Stefan Metzmacher [Fri, 23 Jan 2009 09:13:29 +0000 (10:13 +0100)]
s3:nmbd: install the SIG_DFL handler for SIGTERM while we're waiting for interfaces
We should handle all 3 cases where we actively wait for interfaces
in the same way.
metze
Stefan Metzmacher [Thu, 22 Jan 2009 13:54:21 +0000 (14:54 +0100)]
s3:winbindd: handle SIG_TERM, SIGHUP, SIGCHLD and SIGUSR2 via tevent
metze
Stefan Metzmacher [Wed, 21 Jan 2009 22:24:18 +0000 (23:24 +0100)]
s3:smbd: use signal events for SIGTERM, SIGHUP and SIGCHLD
metze
Stefan Metzmacher [Thu, 22 Jan 2009 11:36:42 +0000 (12:36 +0100)]
s3:smbd: move all code that handles a client connection into smbd_process()
metze
Stefan Metzmacher [Thu, 22 Jan 2009 09:13:45 +0000 (10:13 +0100)]
s3:smbd: we should setup the client socket in the same way in all code pathes
We should behave the same in inetd, interactive and deamon modes.
metze
Stefan Metzmacher [Thu, 22 Jan 2009 09:19:14 +0000 (10:19 +0100)]
s3:namecache: remove unused namecache_shutdown() function
metze
Stefan Metzmacher [Fri, 23 Jan 2009 09:42:31 +0000 (10:42 +0100)]
tevent: change SA_INFO_QUEUE_COUNT from 10 to 100
The samba3 aio code requires lp_max_mux() with a default of 50
and the samba3 linux oplock code requires 100.
May we could make the size dynamic later.
metze
Kai Blin [Tue, 27 Jan 2009 09:37:35 +0000 (10:37 +0100)]
async_req: Fix the S4 build
Michael Adam [Tue, 27 Jan 2009 11:11:49 +0000 (12:11 +0100)]
libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiled
under solaris
Michael
Tim Prouty [Tue, 27 Jan 2009 00:50:31 +0000 (16:50 -0800)]
s3 build: Eliminate the gmake-specific Makefile syntax
Tim Prouty [Mon, 26 Jan 2009 23:38:19 +0000 (15:38 -0800)]
s3 make test: Fix a bug in the previous commit
Luckily the build farm caught this
Tim Prouty [Sun, 25 Jan 2009 22:38:44 +0000 (14:38 -0800)]
s3 make test: Add the ability to specify a custom smb.conf for make test
- Adds new -c <custom conf> option to selftest.sh that when specified
adds a line to make test's server.conf: "include <custom conf>"
- Adds getopts processing to selftest.sh
- Changes selftest.sh shrdir arg to use -s <shrdir>
- Changes selftest.sh smbtorture4_path arg to use -t <smbtortur4 path>
- Adds configure option --with-selftest-custom-conf=<custom conf>
- Updates Makefile.in to take advantage of the new/changed parameters
Jelmer Vernooij [Mon, 26 Jan 2009 17:14:41 +0000 (18:14 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Mon, 26 Jan 2009 16:31:50 +0000 (17:31 +0100)]
pyrpc: Raise proper NDR error codes with matching strings rather than mapping
to NTSTATUS first.
Jelmer Vernooij [Mon, 26 Jan 2009 16:31:22 +0000 (17:31 +0100)]
Add function for mapping NDR error codes to strings.
Andreas Schneider [Mon, 26 Jan 2009 13:38:34 +0000 (14:38 +0100)]
Document default of the printing config variable.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
Karolin Seeger [Mon, 26 Jan 2009 13:17:23 +0000 (14:17 +0100)]
docs: Add manpage for vfs_shadow_copy2.
Karolin
Volker Lendecke [Mon, 26 Jan 2009 02:38:05 +0000 (03:38 +0100)]
Decouple clistr_pull from struct cli_state->inbuf
Volker Lendecke [Sun, 25 Jan 2009 19:33:22 +0000 (20:33 +0100)]
Fix an error path memleak
Volker Lendecke [Sun, 25 Jan 2009 19:32:59 +0000 (20:32 +0100)]
Make smb_bytes_push_str deal with a NULL buf returning NULL
Volker Lendecke [Sun, 25 Jan 2009 11:22:20 +0000 (12:22 +0100)]
Fix chain_reply for pipe reads
The caller might have over-allocated reply->outbuf. Deal with that.
Sorry, Günther, for giving you so much pain ...
Volker
Jelmer Vernooij [Sun, 25 Jan 2009 04:35:21 +0000 (05:35 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Sun, 25 Jan 2009 04:32:30 +0000 (05:32 +0100)]
Add prototypes required by samba-gtk.
Volker Lendecke [Sat, 24 Jan 2009 14:08:14 +0000 (15:08 +0100)]
Fix a segfault in parse_logentry
entry->data_record.strings is type smb_ucs2, so the pointer arithmetic
increments by two :-)
todd stecher [Sat, 24 Jan 2009 00:55:18 +0000 (16:55 -0800)]
Modify OneFS module to support new NTIMES interfaces
todd stecher [Fri, 23 Jan 2009 22:40:19 +0000 (14:40 -0800)]
Extend NTIMES to allow setting create_time
1) Add in smb_file_time struct to clarify code and make room for createtime.
2) Get and set create time from SMB messages.
3) Fixup existing VFS modules + examples Some OS'es allow for the
setting of the birthtime through kernel interfaces. This value is
generically used for Windows createtime, but is not settable in the
code today.
todd stecher [Fri, 23 Jan 2009 22:38:40 +0000 (14:38 -0800)]
This change allows for the autoconfigre detection of sub-second time resolution in the FreeBSD stat structure
Günther Deschner [Tue, 20 Jan 2009 23:33:01 +0000 (00:33 +0100)]
s4-smbtorture: add my copyright.
Guenther
Günther Deschner [Tue, 20 Jan 2009 23:25:50 +0000 (00:25 +0100)]
s4-smbtorture: add BackupLog handling in eventlog test.
Guenther
Günther Deschner [Tue, 20 Jan 2009 22:01:58 +0000 (23:01 +0100)]
s3-rpcclient: add eventlog_loginfo command.
Guenther
Günther Deschner [Tue, 20 Jan 2009 21:18:29 +0000 (22:18 +0100)]
s3-rpcclient: add eventlog_backuplog command.
Guenther
Günther Deschner [Tue, 20 Jan 2009 19:10:16 +0000 (20:10 +0100)]
s3-rpcclient: add eventlog_registerevsource command.
Guenther
Günther Deschner [Tue, 20 Jan 2009 18:26:41 +0000 (19:26 +0100)]
s3-rpcclient: add eventlog_reporteventsource command.
Guenther
Günther Deschner [Tue, 20 Jan 2009 18:01:43 +0000 (19:01 +0100)]
s4-smbtorture: add test_GetLogIntormation test.
Guenther
Günther Deschner [Tue, 20 Jan 2009 18:09:53 +0000 (19:09 +0100)]
s3-rpcclient: add eventlog_reportevent command.
Guenther
Günther Deschner [Tue, 20 Jan 2009 17:42:47 +0000 (18:42 +0100)]
s4-smbtorture: add ReportEventW test.
Guenther
Günther Deschner [Thu, 22 Jan 2009 18:35:33 +0000 (19:35 +0100)]
s3-eventlog: add missing _eventlog_ReportEventAndSourceW stub call.
Guenther
Günther Deschner [Sat, 24 Jan 2009 02:30:48 +0000 (03:30 +0100)]
s3: re-run make samba3-idl.
Guenther
Günther Deschner [Tue, 20 Jan 2009 21:18:53 +0000 (22:18 +0100)]
eventlog: fill in IDL for eventlog_OpenBackupEventLogW.
Guenther
Günther Deschner [Tue, 20 Jan 2009 21:06:01 +0000 (22:06 +0100)]
eventlog: fill in IDL for eventlog_BackupEventLogW.
Guenther
Günther Deschner [Tue, 20 Jan 2009 19:00:02 +0000 (20:00 +0100)]
eventlog: fill in IDL for eventlog_DeregisterEventSource.
Guenther
Günther Deschner [Tue, 20 Jan 2009 18:58:17 +0000 (19:58 +0100)]
eventlog: fill in IDL for eventlog_RegisterEventSourceW.
Guenther
Günther Deschner [Tue, 20 Jan 2009 18:20:26 +0000 (19:20 +0100)]
eventlog: add missing IDL (opnum 24) for eventlog_ReportEventAndSourceW.
Guenther