Stefan Metzmacher [Fri, 30 Jan 2009 18:24:50 +0000 (19:24 +0100)]
Revert "s4:heimdal_build: include "system/network.h" via config.h wrapper"
This reverts commit
334c6e6b78de8529fce0061efd5249f8fe2d256f.
This breaks the build later in the ntvfs code...
metze
Stefan Metzmacher [Fri, 30 Jan 2009 17:41:34 +0000 (18:41 +0100)]
s4:heimdal_build: add a dummy define for dirfd()
metze
Stefan Metzmacher [Fri, 30 Jan 2009 17:38:00 +0000 (18:38 +0100)]
lib/replace: check if we have dirfd()
Note: we only use this internally and don't replace it by default.
metze
Stefan Metzmacher [Fri, 30 Jan 2009 17:41:07 +0000 (18:41 +0100)]
s4:lib/util: fix the build
metze
Stefan Metzmacher [Fri, 30 Jan 2009 17:02:21 +0000 (18:02 +0100)]
heimdal:roken: arg_match_long() should return a value
This should fix a build problem on IRIX.
metze
Stefan Metzmacher [Fri, 30 Jan 2009 16:58:16 +0000 (17:58 +0100)]
heimdal:roken: arg_printusage() should not try to return a value.
This should fix problems with the IRIX build.
metze
Stefan Metzmacher [Fri, 30 Jan 2009 16:53:04 +0000 (17:53 +0100)]
s4:heimdal_build: include "system/network.h" via config.h wrapper
This fixes build problems on Tru64.
metze
Stefan Metzmacher [Fri, 30 Jan 2009 16:52:37 +0000 (17:52 +0100)]
heimdal:camellia-ntt.c: include config.h as first header
metze
Stefan Metzmacher [Fri, 30 Jan 2009 16:34:49 +0000 (17:34 +0100)]
heimdal: don't include <sys/cdefs.h> without knowing it's there
metze
Stefan Metzmacher [Fri, 30 Jan 2009 16:34:00 +0000 (17:34 +0100)]
heimdal: don't include <ifaddrs.h> without knowing it's there
metze
Stefan Metzmacher [Fri, 30 Jan 2009 16:03:10 +0000 (17:03 +0100)]
s4:build: kill DEFAULT_HEADERS variable
metze
Simo Sorce [Fri, 30 Jan 2009 15:18:52 +0000 (10:18 -0500)]
Add helper function to get a module name, may be useful for debugging.
Simo Sorce [Fri, 30 Jan 2009 14:24:48 +0000 (09:24 -0500)]
Fix misfiled headers.
Some public functions were mistakenly put into ldb_private.h
Revert all modules to only include ldb_module.h
Stefan Metzmacher [Fri, 30 Jan 2009 12:33:45 +0000 (13:33 +0100)]
s4:selftest: run RPC-COUNTCALLS as dc:local
metze
Stefan Metzmacher [Fri, 30 Jan 2009 09:30:13 +0000 (10:30 +0100)]
s4:selftest: run ncalrpc tests in dc:local mode
metze
Stefan Metzmacher [Fri, 30 Jan 2009 10:03:45 +0000 (11:03 +0100)]
selftest: don't export $CONFIGURATION anymore only $SMB_CONF_PATH
metze
Stefan Metzmacher [Fri, 30 Jan 2009 12:22:31 +0000 (13:22 +0100)]
pidl: fix samba3-cli test after change to cli->dispatch()
metze
Volker Lendecke [Thu, 29 Jan 2009 21:54:55 +0000 (22:54 +0100)]
Add the "SMBD" rpc transport
The idea of this is that all client utils like smbpasswd and also for example
"net join" do not access our internal databases like passdb and secrets.tdb
directly anymore but pass everything throught the well-established RPC
interfaces.
The way you use this is the following: With rpc_cli_smbd_conn_init() or its
async variant you initialize a "struct rpc_cli_smbd_conn". This structure is
the link to a freshly forked smbd, ready to be used for RPC services. You
should only ever have one such structure in your program. More don't hurt, but
are plainly unnecessary.
If you want to use the SAMR pipe to change a passwort, you connect to that pipe
with rpc_pipe_open_local. Do you normal rpccli_samr calls on that and your
locally forked smbd will connect to passdb for you.
GD, this might make the distinction between the _l and _r calls in libnetapi
mostly unnecessary. At least it is intended to do so... :-)
Volker Lendecke [Thu, 29 Jan 2009 21:41:33 +0000 (22:41 +0100)]
Make rpc_transport_np_init async
Volker Lendecke [Mon, 26 Jan 2009 19:45:19 +0000 (20:45 +0100)]
Add async cli_ntcreate
Volker Lendecke [Mon, 26 Jan 2009 07:37:13 +0000 (08:37 +0100)]
Make cli_tcon_andx async
Volker Lendecke [Sun, 25 Jan 2009 20:54:55 +0000 (21:54 +0100)]
Make cli_session_setup_guest async
Günther Deschner [Thu, 22 Jan 2009 18:31:22 +0000 (19:31 +0100)]
s3-docs: fix typo in eventlogadm manpage.
Guenther
Stefan Metzmacher [Fri, 30 Jan 2009 09:29:39 +0000 (10:29 +0100)]
selftest: fix "none" test
metze
Stefan Metzmacher [Fri, 30 Jan 2009 09:01:48 +0000 (10:01 +0100)]
selftest: fix default option name
metze
Stefan Metzmacher [Fri, 30 Jan 2009 08:36:12 +0000 (09:36 +0100)]
Stefan Metzmacher [Fri, 30 Jan 2009 07:25:27 +0000 (08:25 +0100)]
selftest: allow environment options
We support "local" and "client" (default) now.
We can decide if we want to run a client against the server
(with a special client.conf) or if we want to run tests localy
on the server with the same config as the server.
metze
Simo Sorce [Fri, 30 Jan 2009 06:01:05 +0000 (01:01 -0500)]
Fix standalone configure scripts
Simo Sorce [Thu, 29 Jan 2009 23:39:30 +0000 (18:39 -0500)]
Fix the mess with ldb includes.
Separate again the public from the private headers.
Add a new header specific for modules.
Also add service function for modules as now ldb_context and ldb_module are
opaque structures for them.
Jeremy Allison [Fri, 30 Jan 2009 01:56:40 +0000 (17:56 -0800)]
Fix coverity CID#117 - resource leak in error path.
Jeremy.
Jeremy Allison [Fri, 30 Jan 2009 01:31:12 +0000 (17:31 -0800)]
Fix coverity CID#116. Resource leak on error path.
Jeremy.
Jeremy Allison [Fri, 30 Jan 2009 01:27:47 +0000 (17:27 -0800)]
Fix coverity CID#115. Resource leak in error path.
Jeremy.
Jeremy Allison [Fri, 30 Jan 2009 01:16:34 +0000 (17:16 -0800)]
Fix coverity CID#66. Resource leak in error path.
Jeremy.
Jeremy Allison [Thu, 29 Jan 2009 23:58:50 +0000 (15:58 -0800)]
Upgrade POSIX inheritance storage to a new format (version 2). Stores
the Windows ACL type and flags if "map acl inherit" is set.
Jeremy.
Jeremy Allison [Thu, 29 Jan 2009 23:31:56 +0000 (15:31 -0800)]
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
Tim Prouty [Thu, 29 Jan 2009 22:50:18 +0000 (14:50 -0800)]
s3 build: Fix "shadows global declaration warning"
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.
Jeremy Allison [Thu, 29 Jan 2009 23:27:42 +0000 (15:27 -0800)]
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
Björn Jacke [Thu, 29 Jan 2009 21:59:00 +0000 (22:59 +0100)]
add Tru64 sub-second resolution timestamp support
Björn Jacke [Thu, 29 Jan 2009 20:59:44 +0000 (21:59 +0100)]
add configure check for Tru64 sub-second timestamp resolution
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