Kai Blin [Fri, 23 Jan 2009 10:54:30 +0000 (11:54 +0100)]
async_req: Move to top level dir
Karolin Seeger [Fri, 23 Jan 2009 12:02:46 +0000 (13:02 +0100)]
docs: Fix formatting issue in man libsmbclient.
Karolin
Stefan Metzmacher [Fri, 23 Jan 2009 10:24:25 +0000 (11:24 +0100)]
s4: we're on the way to alhpa7
metze
Jeremy Allison [Fri, 23 Jan 2009 00:21:02 +0000 (16:21 -0800)]
Apply same logic fix for #4308 Excel save operation corrupts file ACLs
to NFSv4 ACL code as this uses the same flawed logic as posix_acls.c.
Jeremy.
Jeremy Allison [Thu, 22 Jan 2009 23:57:41 +0000 (15:57 -0800)]
Fix logic error in try_chown - we shouldn't arbitrarily chown
to ourselves unless that was passed in.
Jeremy.
Jeremy Allison [Thu, 22 Jan 2009 22:38:57 +0000 (14:38 -0800)]
Second part of the attemt to fix #4308 - Excel save operation corrupts file ACLs.
If the chown succeeds then the ACL set should also. Ensure this is the case
(refactor some of this code to make it simpler to read also).
Jeremy.
Volker Lendecke [Thu, 22 Jan 2009 17:52:15 +0000 (18:52 +0100)]
Abstract away the transport in cli_pipe.c
Sorry for the monster checkin, I could not really find a way to do this in
steps.
Volker Lendecke [Thu, 22 Jan 2009 17:39:29 +0000 (18:39 +0100)]
Add the socket rpc client transport
Volker Lendecke [Thu, 22 Jan 2009 17:34:06 +0000 (18:34 +0100)]
Add the named pipe rpc client transport
Volker Lendecke [Thu, 22 Jan 2009 21:04:55 +0000 (22:04 +0100)]
RPC_CLIENT_OBJ is the right variable for cli_pipe.o
Volker Lendecke [Thu, 22 Jan 2009 17:50:37 +0000 (18:50 +0100)]
Add struct rpc_cli_transport
Jelmer Vernooij [Thu, 22 Jan 2009 21:49:30 +0000 (22:49 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Tim Prouty [Thu, 22 Jan 2009 21:14:04 +0000 (13:14 -0800)]
s3: Fix warning
Jeremy Allison [Thu, 22 Jan 2009 18:57:10 +0000 (10:57 -0800)]
Another attempt to fix bug #4308 - Excel save operation corrupts file ACLs.
Simo is completely correct. We should be doing the chown *first*, and fail the
ACL set if this fails. The long standing assumption I made when writing the
initial POSIX ACL code was that Windows didn't control who could chown a file
in the same was as POSIX. In POSIX only root can do this whereas I wasn't sure
who could do this in Windows at the time (I didn't understand the privilege
model). So the assumption was that setting the ACL was more important (early
tests showed many failed ACL set's due to inability to chown). But now we have
privileges in smbd, and we must always fail an ACL set when we can't chown
first. The key that Simo noticed is that the CREATOR_OWNER bits in the ACL
incoming are relative to the *new* owner, not the old one. This is why the old
user owner disappears on ACL set - their access was set via the USER_OBJ in the
creator POSIX ACL and when the ownership changes they lose their access.
Patch is simple - just ensure we do the chown first before evaluating the
incoming ACL re-read the owners. We already have code to do this it just wasn't
rigorously being applied.
Jeremy.
Simo Sorce [Thu, 22 Jan 2009 16:51:37 +0000 (11:51 -0500)]
Do not start a transaction this way.
Because we still want to commit any changes that successfully apply we
never want to do a global cancel, and because of how transaction nesting
works that means we never cancel any "transaction" at the single modify
operation level.
Let each operation start its own transaction so that the transaction is
properly canceled if any error is returned and half committed operations
(though plugins failing) are properly reverted on a per operation basis.
Volker Lendecke [Thu, 22 Jan 2009 16:53:22 +0000 (17:53 +0100)]
Fix a segfault: rpccli_* expect the reply_pdu to always be initialized
Jelmer Vernooij [Thu, 22 Jan 2009 14:23:32 +0000 (15:23 +0100)]
Remove obsolete samr Python module - use samba.dcerpc.samr instead.
Jelmer Vernooij [Thu, 22 Jan 2009 13:49:51 +0000 (14:49 +0100)]
Implement as_sddl.
Jelmer Vernooij [Thu, 22 Jan 2009 13:37:59 +0000 (14:37 +0100)]
Support parsing sddl for security descriptors.
Stefan Metzmacher [Thu, 22 Jan 2009 10:52:54 +0000 (11:52 +0100)]
lib/replace: add defines to let the callers find out if pwrite and pread are thread/fork safe
metze
Stefan Metzmacher [Wed, 21 Jan 2009 06:39:28 +0000 (07:39 +0100)]
s3:printing: make some functions static and use tevent functions
metze
Stefan Metzmacher [Wed, 21 Jan 2009 06:39:56 +0000 (07:39 +0100)]
s3:messages: finally make message_dispatch() static
metze
Stefan Metzmacher [Wed, 21 Jan 2009 06:37:07 +0000 (07:37 +0100)]
s3:printing: handle tevent_context events in the sys_select() call
metze
Stefan Metzmacher [Wed, 21 Jan 2009 06:35:07 +0000 (07:35 +0100)]
s3:winbindd: we don't need to call message_dispatch() anymore it's event triggered now
metze
Stefan Metzmacher [Wed, 21 Jan 2009 06:34:49 +0000 (07:34 +0100)]
s3:nmbd: we don't need to call message_dispatch() anymore it's event triggered now
metze
Stefan Metzmacher [Wed, 21 Jan 2009 06:33:19 +0000 (07:33 +0100)]
s3:smbd: we don't need to call message_dispatch() anymore it's event triggered now
metze
Stefan Metzmacher [Wed, 21 Jan 2009 06:31:33 +0000 (07:31 +0100)]
s3:msgtest: don't call message_dispatch() anymore, use tevent_loop_once() instead
metze
Stefan Metzmacher [Wed, 21 Jan 2009 06:30:13 +0000 (07:30 +0100)]
s3:smbcontrol: don't call message_dispatch() anymore, it's triggered by tevent_loop_once()
metze
Stefan Metzmacher [Mon, 12 Jan 2009 17:14:04 +0000 (18:14 +0100)]
s3:messaging: start with to use signal events instead of the raw signal interfaces
metze
Stefan Metzmacher [Fri, 9 Jan 2009 13:02:18 +0000 (14:02 +0100)]
s3:smbd: restructure kernel oplocks code
This converts the irix oplocks code to use a fd event
and removes the last special case for file descriptors
for the main sys_select().
metze
Stefan Metzmacher [Tue, 20 Jan 2009 03:14:20 +0000 (04:14 +0100)]
s3: always call run_events() before and after sys_select()
And always setup the fd events.
metze
Stefan Metzmacher [Tue, 20 Jan 2009 00:58:04 +0000 (01:58 +0100)]
s3:events: always run_events() before sys_select()
We might have pending signal events not only timed events.
metze
Volker Lendecke [Thu, 22 Jan 2009 11:13:29 +0000 (12:13 +0100)]
Actually complete
3662c2b...
Volker Lendecke [Thu, 22 Jan 2009 10:36:16 +0000 (11:36 +0100)]
cli_get_pipe_name_from_iface does not need the cli_state
I leave the TALLOC_CTX in, we might have to allocate it in the future
Jelmer Vernooij [Thu, 22 Jan 2009 10:37:27 +0000 (11:37 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Thu, 22 Jan 2009 10:35:28 +0000 (11:35 +0100)]
Move configure test files to the top-level and share them between s3 and
s4.
Michael Adam [Thu, 22 Jan 2009 07:14:06 +0000 (08:14 +0100)]
s3: run "make samba3-idl"
Michael
Michael Adam [Thu, 22 Jan 2009 07:10:11 +0000 (08:10 +0100)]
pidl/python: Add explicit casts, fixing implicit cast warnings.
Michael
Michael Adam [Thu, 22 Jan 2009 00:19:38 +0000 (01:19 +0100)]
run make idl_full, thus adding explicit casts to gen_ndr server code
Michael
Michael Adam [Thu, 22 Jan 2009 00:17:40 +0000 (01:17 +0100)]
pidl: reduce implicit cast warnings in gen_ndr server code
Michael
todd stecher [Mon, 19 Jan 2009 23:09:51 +0000 (15:09 -0800)]
Memory leaks and other fixes found by Coverity
Jelmer Vernooij [Wed, 21 Jan 2009 17:54:20 +0000 (18:54 +0100)]
Fix path to check_python.m4.
Jelmer Vernooij [Wed, 21 Jan 2009 17:50:16 +0000 (18:50 +0100)]
libsmbconf: Remove use of some Samba3-specific macros.
Jelmer Vernooij [Wed, 21 Jan 2009 17:50:02 +0000 (18:50 +0100)]
libsmbconf: Add build magic for Samba 4.
Jelmer Vernooij [Wed, 21 Jan 2009 17:40:06 +0000 (18:40 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Michael Adam [Wed, 21 Jan 2009 17:10:23 +0000 (18:10 +0100)]
libsmbconf: move the non-registry parts of libsmbconf to top level
Michael
Michael Adam [Wed, 21 Jan 2009 17:25:47 +0000 (18:25 +0100)]
s3:libsmbconf: include smbconf headers with lib/smbconf prefix
Michael
Michael Adam [Wed, 21 Jan 2009 16:16:37 +0000 (17:16 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in reg backend
Michael
Michael Adam [Wed, 21 Jan 2009 16:14:56 +0000 (17:14 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in txt backend
Michael
Michael Adam [Wed, 21 Jan 2009 16:12:50 +0000 (17:12 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf_init
Michael
Michael Adam [Wed, 21 Jan 2009 16:11:46 +0000 (17:11 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in testsuite
Michael
Michael Adam [Wed, 21 Jan 2009 16:11:02 +0000 (17:11 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf_util.c
Michael
Michael Adam [Wed, 21 Jan 2009 16:10:20 +0000 (17:10 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf.c
Michael
Michael Adam [Wed, 21 Jan 2009 15:59:09 +0000 (16:59 +0100)]
s3:libsmbconf: remove the init headers from smbconf.h
give the smbconf_init() dispatcher and the backends
(smbconf_reg and smbconf_txt) a header of their own each.
This allows to use the basic infrastructure and
single backends individually.
Michael
Michael Adam [Wed, 21 Jan 2009 15:24:32 +0000 (16:24 +0100)]
s3:libsmbconf: remove unused function smbconf_is_writeable_bystring()
Michael
Jelmer Vernooij [Wed, 21 Jan 2009 17:38:40 +0000 (18:38 +0100)]
pidl/python: Add explicit casts, fixes warnings about casts when enabled.
Karolin Seeger [Wed, 21 Jan 2009 17:31:30 +0000 (18:31 +0100)]
s3/vfs_extd_audit: Don't ignore "syslog = 0".
This fixes bug #5956.
Thanks to Oskar Wycislak <cantorek [at] gmail.com> for reporting
and providing a patch!
Karolin
Jelmer Vernooij [Wed, 21 Jan 2009 17:20:23 +0000 (18:20 +0100)]
Fix warning; base dn is no longer const.
Jelmer Vernooij [Wed, 21 Jan 2009 17:07:41 +0000 (18:07 +0100)]
Move check_python.m4 to common m4 directory.
Jelmer Vernooij [Wed, 21 Jan 2009 16:32:08 +0000 (17:32 +0100)]
expand-includes: Add simple protection against infinite recursion.
Jelmer Vernooij [Wed, 21 Jan 2009 16:21:45 +0000 (17:21 +0100)]
Automagically expand includes in Makefile.in during configure time
when make is not GNU Make.
Jelmer Vernooij [Wed, 21 Jan 2009 15:49:36 +0000 (16:49 +0100)]
Only check for Perl once in Samba 3.
Jelmer Vernooij [Wed, 21 Jan 2009 15:46:52 +0000 (16:46 +0100)]
Move check_make.m4 to the top-level.
Jelmer Vernooij [Wed, 21 Jan 2009 15:18:06 +0000 (16:18 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Wed, 21 Jan 2009 15:15:53 +0000 (16:15 +0100)]
Replace ldb_search() with ldb_search_exp_fmt(), like in Samba 4.
Jelmer Vernooij [Wed, 21 Jan 2009 14:18:05 +0000 (15:18 +0100)]
Reorder arguments to ldb_search() to match what is in Samba 4.
Michael Adam [Wed, 21 Jan 2009 14:10:10 +0000 (15:10 +0100)]
build-docs: cleanup exit of the script
exit in the directory where it was called using pushd/popd.
Michael
Michael Adam [Wed, 21 Jan 2009 14:09:46 +0000 (15:09 +0100)]
s3:docs: clean build/catalog.xml in "make clean"
Michael
Michael Adam [Wed, 21 Jan 2009 14:09:12 +0000 (15:09 +0100)]
s3:docs: clean generated .png images in "make clean"
Michael
Jelmer Vernooij [Wed, 21 Jan 2009 13:26:06 +0000 (14:26 +0100)]
Use script path to find the setup directory.
Jelmer Vernooij [Wed, 21 Jan 2009 13:25:08 +0000 (14:25 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Wed, 21 Jan 2009 13:24:16 +0000 (14:24 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Wed, 21 Jan 2009 13:07:38 +0000 (14:07 +0100)]
Merge branch 'v4-0-test' of /home/jelmer/samba4
Jelmer Vernooij [Wed, 21 Jan 2009 13:05:51 +0000 (14:05 +0100)]
Allow calling DCE/RPC server implementations directly using
rpc_pipe_client.
Karolin Seeger [Wed, 21 Jan 2009 10:37:30 +0000 (11:37 +0100)]
build_docs: Use 'make distclean' instead of 'make clean'.
This fixes bug #6058.
Thanks to Christian Perrier for reporting!
Karolin
(cherry picked from commit
162e4b66601b41dd5adb24e192f3b5a91dfb41cc)
Signed-off-by: Michael Adam <obnox@samba.org>
Karolin Seeger [Tue, 9 Dec 2008 21:08:13 +0000 (22:08 +0100)]
build-docs: Change to the right directory before calling 'make clean'.
This fixes build-docs if it's called from the create-tarball script.
Karolin
(cherry picked from commit
dd3ef73c8c184eaec7ee515ef2130f30f9e481b3)
(cherry picked from commit
8dd3a7bfde16e85a9ee509cf6bcfc788062705a5)
Signed-off-by: Michael Adam <obnox@samba.org>
Karolin Seeger [Thu, 18 Sep 2008 13:52:06 +0000 (15:52 +0200)]
build-docs: Add 'make clean'.
Karolin
(cherry picked from commit
cf40fb97239ed9a11e5750fde6e078233e567bba)
Signed-off-by: Michael Adam <obnox@samba.org>
Jelmer Vernooij [Wed, 21 Jan 2009 12:40:18 +0000 (13:40 +0100)]
Allow overriding the function that ships the request in the Samba 3
client code.
Stefan Metzmacher [Wed, 21 Jan 2009 09:43:15 +0000 (10:43 +0100)]
s4:auth: move make_server_info_netlogon_validation() function arround
metze
Stefan Metzmacher [Wed, 21 Jan 2009 09:15:22 +0000 (10:15 +0100)]
merged-build: propare to fix make test4
metze
Stefan Metzmacher [Wed, 21 Jan 2009 09:14:29 +0000 (10:14 +0100)]
selftest: add --exeext parameter
metze
Stefan Metzmacher [Wed, 21 Jan 2009 09:12:04 +0000 (10:12 +0100)]
s4:selftest: reference binaries via variables in tests.sh
metze
Stefan Metzmacher [Wed, 21 Jan 2009 09:09:30 +0000 (10:09 +0100)]
selftest:Samba4: add bindir_path() utility function to construct the binary pathes
metze
Stefan Metzmacher [Wed, 21 Jan 2009 09:05:53 +0000 (10:05 +0100)]
selftest: bin/ is under $(builddir) instead of $(srcdir)
metze
Stefan Metzmacher [Wed, 21 Jan 2009 12:34:11 +0000 (13:34 +0100)]
s4:python glue: fix dependecy to pyldb
metze
Michael Adam [Wed, 21 Jan 2009 10:47:46 +0000 (11:47 +0100)]
s3:docs: fix ommission in fix of (real)distclean targets
Michael
Michael Adam [Wed, 21 Jan 2009 10:45:23 +0000 (11:45 +0100)]
s3:create-tarball: also include the VENDOR_PATCH in the version
Michael
Michael Adam [Wed, 21 Jan 2009 10:41:14 +0000 (11:41 +0100)]
s3:docs: fix distclean target and add realdistclean target
- remove stuff created by configure in distclean
- remove stuff created by autoconf in realdistclean
Michael
Volker Lendecke [Tue, 20 Jan 2009 22:31:51 +0000 (23:31 +0100)]
Fix a typo
Michael Adam [Wed, 21 Jan 2009 09:56:34 +0000 (10:56 +0100)]
s3:docs: clarify explanation of the allocator in the idmap_ldap manpage
Michael
Michael Adam [Wed, 21 Jan 2009 09:55:19 +0000 (10:55 +0100)]
s3:docs: clarify explanation of the allocator in the idmap_tdb manpage
Michael
Michael Adam [Wed, 21 Jan 2009 09:49:48 +0000 (10:49 +0100)]
s3:docs: clarify explanation of allocator in the idmap_tdb2 manpage
Michael
Michael Adam [Wed, 21 Jan 2009 09:38:49 +0000 (10:38 +0100)]
s3:docs: fix copy and paste error in the idmap_tdb2 manpage
Michael
Stefan Metzmacher [Wed, 21 Jan 2009 08:16:45 +0000 (09:16 +0100)]
s4:ldb: remove dependency to samba4's events wrapper
metze
Tim Prouty [Mon, 19 Jan 2009 23:02:25 +0000 (15:02 -0800)]
librpc: Fix warning caused by some empty debug strings
It would probably be better to create a new macro such as DEBUGHDR to
allow empty strings for debug statements, but for the short term this
eliminates the warning with no negative consequences.
Michael Adam [Tue, 20 Jan 2009 23:56:03 +0000 (00:56 +0100)]
s3:docs: add a manpage for idmap_tdb2
Michael
Michael Adam [Tue, 20 Jan 2009 23:13:29 +0000 (00:13 +0100)]
s3:docs: update the idmap_ldap manpage to reflect current facts.
Michael
Michael Adam [Tue, 20 Jan 2009 23:06:10 +0000 (00:06 +0100)]
s3:docs: update the idmap_tdb manpage to reflect current facts.
Michael
Volker Lendecke [Tue, 20 Jan 2009 22:08:33 +0000 (23:08 +0100)]
"userdom_struct" does not need "full_name" anymore -- unused
Volker Lendecke [Tue, 20 Jan 2009 21:04:53 +0000 (22:04 +0100)]
Fix some nonempty blank lines