Tim Prouty [Wed, 7 Jan 2009 21:12:35 +0000 (13:12 -0800)]
s3 merged build: Fix include error
On some builds compiling source4/ntvfs/common/brlock_tdb.c was failing
because tdb_wrap.h couldn't find tdb.h. Adding the path should fix
the problem.
Jeremy Allison [Wed, 7 Jan 2009 22:57:20 +0000 (14:57 -0800)]
Fix bug #6016 - Alternate Data Streams / Extended Attributes seem to conflict.
Jeremy.
Jelmer Vernooij [Wed, 7 Jan 2009 21:40:49 +0000 (22:40 +0100)]
Display lsa string contents.
Jelmer Vernooij [Wed, 7 Jan 2009 21:40:13 +0000 (22:40 +0100)]
Set proper python exception when running out of memory.
Jelmer Vernooij [Wed, 7 Jan 2009 20:45:49 +0000 (21:45 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
boyang [Wed, 7 Jan 2009 19:02:04 +0000 (11:02 -0800)]
refresh sequence number as soon as possible when domain->sequence_number == -1 or domain->last_status is not ok.
Volker Lendecke [Wed, 7 Jan 2009 16:15:47 +0000 (17:15 +0100)]
Remove unused struct CLI_POLICY_HND
Volker Lendecke [Wed, 7 Jan 2009 10:39:34 +0000 (10:39 +0000)]
Several fixes to our use of splice
The splice manpage explicitly requires loff_t as offset. Copy "offset" there.
Probably not required, but I wanted to make sure it's as required.
Splice blocks with large buffers. For me it worked with 16k and blocked with
32k and beyond. It would be nice to see a clarification in the manpage of
splice for this behaviour.
Splice if used with an offset increments the offset. From the manpage this was
at least not entirely obvious :-)
I haven't yet activated this (try_splice_call ist still false by default), it
needs more testing.
Volker
Jelmer Vernooij [Wed, 7 Jan 2009 10:06:00 +0000 (11:06 +0100)]
Fix ldap.py test.
Andrew Bartlett [Wed, 7 Jan 2009 05:30:05 +0000 (16:30 +1100)]
Use new error constant (missing from
6efb7ff9)
Andrew Bartlett [Wed, 7 Jan 2009 05:29:23 +0000 (16:29 +1100)]
Raise a python exception when the ldb search fails
This fixes a regression found by ldap.py in the new hand-written
python bindings.
Andrew Bartlett
Andrew Tridgell [Wed, 7 Jan 2009 05:46:34 +0000 (16:46 +1100)]
added support for stream renames in Samba4
This allows the RAW-STREAMS test to work again. We still have some
limitations though:
- renames of a stream to the default stream doesn't work
- delete on close handling between streams and the main file
is still broken
Stefan Metzmacher [Wed, 7 Jan 2009 05:32:25 +0000 (06:32 +0100)]
s4:smbclient: correct initialize smbclient_context
Found by valgrind.
metze
Stefan Metzmacher [Wed, 7 Jan 2009 05:30:37 +0000 (06:30 +0100)]
tevent: don't try to dereference fde->event_ctx when the event context doesn't exists anymore
metze
Jeremy Allison [Wed, 7 Jan 2009 01:34:06 +0000 (17:34 -0800)]
Make winbindd_cm.c use winbindd_reinit_after_fork().
Jeremy.
Jeremy Allison [Wed, 7 Jan 2009 00:05:28 +0000 (16:05 -0800)]
Fix bug #6017, - magic script does not work. based on a patch from monyo@samba.gr.jp.
Jeremy.
Jeremy Allison [Tue, 6 Jan 2009 23:14:52 +0000 (15:14 -0800)]
Add winbindd_reinit_after_fork(), cleaning out all possible events
in a forked child.
Jeremy.
Jelmer Vernooij [Tue, 6 Jan 2009 22:52:34 +0000 (23:52 +0100)]
Start on alpha6 release notes.
Volker Lendecke [Tue, 6 Jan 2009 22:25:41 +0000 (23:25 +0100)]
Add a talloc failure check
Jelmer Vernooij [Tue, 6 Jan 2009 21:36:01 +0000 (22:36 +0100)]
When loading the default configuration, allow the configuration file to be
missing.
Jeremy Allison [Tue, 6 Jan 2009 21:16:46 +0000 (13:16 -0800)]
Factor out lots of common code into a function.
Jeremy.
Volker Lendecke [Tue, 6 Jan 2009 20:54:51 +0000 (21:54 +0100)]
Add some const to dcerpc_binding_build_tower()
Jelmer Vernooij [Tue, 6 Jan 2009 20:52:54 +0000 (21:52 +0100)]
Fix compilation, remove unused variables.
Jelmer Vernooij [Tue, 6 Jan 2009 20:45:13 +0000 (21:45 +0100)]
Fix prototype.
Volker Lendecke [Tue, 6 Jan 2009 20:24:30 +0000 (21:24 +0100)]
Add a NULL check and some const to dcerpc_floor_get_lhs_data()
Matthias Dieter Wallnöfer [Tue, 6 Jan 2009 15:20:57 +0000 (16:20 +0100)]
Fix typo
Günther Deschner [Mon, 8 Dec 2008 12:10:56 +0000 (13:10 +0100)]
s4-smbtorture: verify each password change via samlogon in SAMR-PASSWORDS-PWDLASTSET test.
Guenther
Günther Deschner [Mon, 8 Dec 2008 17:03:11 +0000 (18:03 +0100)]
s3-lsa: remove all init_lsa* functions.
Guenther
Günther Deschner [Mon, 8 Dec 2008 17:03:01 +0000 (18:03 +0100)]
s3-lsa: avoid all init_lsa* functions.
Guenther
Günther Deschner [Mon, 8 Dec 2008 12:39:53 +0000 (13:39 +0100)]
s3-srvsvc: remove all init_srvsvc* functions.
Guenther
Günther Deschner [Mon, 8 Dec 2008 12:39:32 +0000 (13:39 +0100)]
s3-srvsvc: avoid all init_srvsvc* functions.
Guenther
Günther Deschner [Sat, 6 Dec 2008 00:44:54 +0000 (01:44 +0100)]
s3-samr: remove all init_samr_alias* functions.
Guenther
Günther Deschner [Sat, 6 Dec 2008 00:44:46 +0000 (01:44 +0100)]
s3-samr: avoid all init_samr_alias* functions.
Guenther
Günther Deschner [Sat, 6 Dec 2008 00:41:38 +0000 (01:41 +0100)]
s3-samr: remove all init_samr_group* functions.
Guenther
Günther Deschner [Sat, 6 Dec 2008 00:41:28 +0000 (01:41 +0100)]
s3-samr: avoid all init_samr_group* functions.
Guenther
Günther Deschner [Sat, 6 Dec 2008 00:34:51 +0000 (01:34 +0100)]
s3-samr: remove all init_samr_dom* functions.
Guenther
Günther Deschner [Sat, 6 Dec 2008 00:33:28 +0000 (01:33 +0100)]
s3-samr: avoid all init_samr_Domain* functions.
Guenther
Günther Deschner [Fri, 5 Dec 2008 23:30:11 +0000 (00:30 +0100)]
s3-samr: remove init_samr_user* functions.
Guenther
Günther Deschner [Fri, 5 Dec 2008 23:28:34 +0000 (00:28 +0100)]
s3-samr: avoid all init_samr_user* functions.
Guenther
Jelmer Vernooij [Tue, 6 Jan 2009 14:53:50 +0000 (15:53 +0100)]
Add dependency to talloc in tevent pc file.
Volker Lendecke [Tue, 6 Jan 2009 14:13:43 +0000 (15:13 +0100)]
s3/swat: Fix creation of the first share using SWAT.
This fixes bug #5965.
Andrew Bartlett [Tue, 6 Jan 2009 11:38:09 +0000 (22:38 +1100)]
Ensure libreplace is included into the tevent python bindings
Without this, the samba4.tevent.python test fails
Andrew Bartlett
Karolin Seeger [Tue, 6 Jan 2009 11:26:23 +0000 (12:26 +0100)]
docs: Improve description of the share commands in man smb.conf.
-Correct the parameter names.
-Fix typos.
-Fix related parameters.
This fixes bug #6008.
Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> for reporting!
Karolin
Volker Lendecke [Tue, 6 Jan 2009 10:22:32 +0000 (11:22 +0100)]
Move the "rid_name" typedef to the only place where it might be used
Karolin Seeger [Tue, 6 Jan 2009 09:26:37 +0000 (10:26 +0100)]
docs: Fix example in man vfs_recycle.
This fixes bug #6001.
Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> for reporting!
Karolin
Kai Blin [Tue, 6 Jan 2009 08:55:09 +0000 (09:55 +0100)]
s4 winbind: Silence a "discards const" warning
Tim Prouty [Tue, 30 Dec 2008 21:45:29 +0000 (13:45 -0800)]
s3 merged build: Remove redundant #defines that are in idl generated headers
This fixes a series of samba3 build warnings in the merged build with
--enable-picky-developer=yes. 'error: "X" redefined', where X is one
of the redundant #defines.
This required committing a static version of spoolss.h for it to be
included by non-merged s3 builds.
Bo Yang [Tue, 6 Jan 2009 04:49:59 +0000 (12:49 +0800)]
set entry->refresh_time to make ccache_regain_all_now() work correctly.
Jelmer Vernooij [Tue, 6 Jan 2009 03:13:57 +0000 (04:13 +0100)]
py: Properly increase the reference counter of Py_None.
Jeremy Allison [Mon, 5 Jan 2009 21:47:34 +0000 (13:47 -0800)]
Attempt to fix crash seen with new CUPS async printcap loading code.
Jeremy.
Jeremy Allison [Mon, 5 Jan 2009 21:47:07 +0000 (13:47 -0800)]
Fix call to ndr_size_dom_sid, missing parameter.
Jeremy.
Stefan Metzmacher [Mon, 5 Jan 2009 18:47:59 +0000 (19:47 +0100)]
s3:events: use more tevent_common_* functions
metze
Stefan Metzmacher [Mon, 5 Jan 2009 18:52:47 +0000 (19:52 +0100)]
tevent: add some debugging for timer events, that mostly matches samba3
metze
Stefan Metzmacher [Mon, 5 Jan 2009 18:23:23 +0000 (19:23 +0100)]
tevent: add tevent_context destructor that unlinks the events from the context
metze
Stefan Metzmacher [Mon, 5 Jan 2009 18:22:22 +0000 (19:22 +0100)]
tevent: don't crash if te->event_ctx is NULL
metze
Stefan Metzmacher [Mon, 5 Jan 2009 16:36:50 +0000 (17:36 +0100)]
tevent: keep a linked list of fd_events
metze
Stefan Metzmacher [Mon, 5 Jan 2009 15:55:00 +0000 (16:55 +0100)]
tevent: keep a linked list of signal events
metze
Stefan Metzmacher [Mon, 5 Jan 2009 18:41:03 +0000 (19:41 +0100)]
tevent: make tevent_debug() a noop if ev is NULL
metze
Volker Lendecke [Mon, 5 Jan 2009 21:10:25 +0000 (22:10 +0100)]
Attempt to fix the build on netbsd5
Jelmer Vernooij [Mon, 5 Jan 2009 17:01:04 +0000 (18:01 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Volker Lendecke [Mon, 5 Jan 2009 16:11:51 +0000 (17:11 +0100)]
Attempt to fix the build with dnssd
Karolin Seeger [Mon, 5 Jan 2009 15:33:00 +0000 (16:33 +0100)]
examples: Avoid bashism in perfcount.init.
This fixes bug #6000.
Thanks to the Debian Samba package maintainers for providing the patch!
Remove trailing whitespaces.
Karolin
Karolin Seeger [Mon, 5 Jan 2009 15:30:10 +0000 (16:30 +0100)]
Revert "examples: Avoid bashism in perfcount.init."
This reverts commit
73875cd344608b591fa884ab99b5f3a10550c149.
Volker Lendecke [Mon, 5 Jan 2009 14:47:19 +0000 (15:47 +0100)]
Fix bug 6014 -- mget shouldn't segfault without arguments
Thanks to kevin.paulus@mtm.kuleuven.be for the bug report
Volker
Stefan Metzmacher [Mon, 5 Jan 2009 10:53:29 +0000 (11:53 +0100)]
s3:winbindd: also handle fd events from the winbind_event_context()
metze
Stefan Metzmacher [Sun, 4 Jan 2009 18:29:12 +0000 (19:29 +0100)]
s3:events: register as tevent backend
metze
Stefan Metzmacher [Sun, 4 Jan 2009 18:27:31 +0000 (19:27 +0100)]
s3: build lib/tevent staticly into samba3
metze
Stefan Metzmacher [Tue, 30 Dec 2008 09:00:43 +0000 (10:00 +0100)]
s3:events: get rid of the stupid set_event_dispatch_time() function
metze
Stefan Metzmacher [Tue, 30 Dec 2008 08:19:27 +0000 (09:19 +0100)]
s3:events: get rid of the stupid cancel_named_event() function
metze
Stefan Metzmacher [Mon, 5 Jan 2009 09:22:50 +0000 (10:22 +0100)]
s3:events: change event_add_timed() prototype to match samba4
metze
Stefan Metzmacher [Mon, 5 Jan 2009 08:06:05 +0000 (09:06 +0100)]
s3:events: move prototypes to event.h
metze
Stefan Metzmacher [Sun, 4 Jan 2009 18:53:09 +0000 (19:53 +0100)]
s3:events: remove unused stuff
metze
Stefan Metzmacher [Tue, 30 Dec 2008 08:56:36 +0000 (09:56 +0100)]
s3:winbindd: regain tickets for all ccache entries, when we go online
set_event_dispatch_time() is stupid by design and only handles
the first event with a given name.
metze
Stefan Metzmacher [Tue, 30 Dec 2008 08:17:20 +0000 (09:17 +0100)]
s3:winbindd: cancel all ccache entry events and not just one
cancel_named_event() is stupid by design and also only cancels
one single event.
metze
Stefan Metzmacher [Tue, 30 Dec 2008 08:34:20 +0000 (09:34 +0100)]
s3:winbindd: recreate the per domain check_online_event without relying on global state
set_event_dispatch_time() is stupid by design and just picks the first
event with the given name.
metze
Stefan Metzmacher [Mon, 5 Jan 2009 10:50:17 +0000 (11:50 +0100)]
s3:winbindd: rename fd_event => winbindd_fd_event
It's really confusing to have two versions of 'fd_event'
metze
Stefan Metzmacher [Tue, 30 Dec 2008 08:32:31 +0000 (09:32 +0100)]
s3:winbindd: move WINBINDD_CCACHE_ENTRY and WINBINDD_MEMORY_CREDS to winbindd.h
metze
Bo Yang [Sun, 4 Jan 2009 08:45:30 +0000 (16:45 +0800)]
Fix broken krb5 refresh chain
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Bo Yang [Mon, 5 Jan 2009 11:47:45 +0000 (19:47 +0800)]
clean event context after child is forked.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Karolin Seeger [Mon, 5 Jan 2009 13:54:28 +0000 (14:54 +0100)]
examples: Avoid bashism in perfcount.init.
This fixes bug #6000.
Thanks to the Debian Samba package maintainers for providing the patch!
Remove trailing whitespaces.
Karolin
Karolin Seeger [Mon, 5 Jan 2009 13:39:59 +0000 (14:39 +0100)]
docs: Document the -g option of smbclient.
This fixes bug #6013.
Thanks to the Debian Samba packages maintainers for reporting!
Karolin
Jelmer Vernooij [Mon, 5 Jan 2009 13:02:30 +0000 (14:02 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Volker Lendecke [Mon, 5 Jan 2009 12:33:20 +0000 (13:33 +0100)]
Use talloc_tos in vfs_full_audit.c:do_log
Volker Lendecke [Mon, 5 Jan 2009 12:32:53 +0000 (13:32 +0100)]
Fix a bad memleak in vfs_full_audit
Volker Lendecke [Mon, 5 Jan 2009 12:08:07 +0000 (13:08 +0100)]
Add create_file to vfs_op_names
Volker Lendecke [Mon, 5 Jan 2009 11:58:23 +0000 (12:58 +0100)]
Fix bug 6012: Add "get_real_filename" to full_audit
Thanks to Hodur <coil93@gmail.com> for testing!
Volker
Michael Adam [Thu, 18 Dec 2008 17:01:55 +0000 (18:01 +0100)]
smbd: prevent access to root filesystem when connecting with empty service name
This only applies to a setup with "registry shares = yes"
Michael
(cherry picked from commit
288fa94ac7cfdf7457b5098c33fc840bed3d5410)
(cherry picked from commit
e85526b184e66f86b7faa9d0a37288a09c12c19e)
Stefan Metzmacher [Mon, 5 Jan 2009 09:53:12 +0000 (10:53 +0100)]
tevent: fix tevent_add_timer() and tevent_add_aio() macros
metze
Andrew Bartlett [Mon, 5 Jan 2009 09:02:02 +0000 (20:02 +1100)]
Initialise 'flags' in new python ldb binding for ldb_connect
Tim Prouty [Mon, 5 Jan 2009 03:27:06 +0000 (19:27 -0800)]
s3: Remove a few unnecessary checks from the streams depot module and fix to work with NTRENAME
Handling of error codes when renaming a file to a stream and a stream
to a file is now done in rename_internals_fsp.
The NTRENAME stream path only passes in the stream name, so the new
base can now be different from the old base.
Tim Prouty [Mon, 5 Jan 2009 01:36:36 +0000 (17:36 -0800)]
s3: Remove a few unnecessary checks from the streams xattr module
Handling of error codes when renaming a file to a stream and a stream
to a file is now done in rename_internals_fsp.
The NTRENAME stream path only passes in the stream name, so the new
base can now be different from the old base.
Tim Prouty [Sun, 4 Jan 2009 18:45:34 +0000 (10:45 -0800)]
s3: Allow renames of streams via NTRENAME and fix stream error codes on rename
The test_streams_rename2 test in RAW-STREAMS verifies these changes
Tim Prouty [Fri, 19 Dec 2008 05:03:01 +0000 (21:03 -0800)]
s4 torture: Add more rename tests to RAW-STREAMS
There is one part of the new rename tests that passes against windows,
but doesn't pass against samba3 right now. Windows allow renaming a
stream to the default stream, but none of the current streams module
support this. When this ability is added the check for samba can be
removed from this test.
This patch also adds a missing unlink in the cleanup of
test_stream_delete and changes the order that the tests are run to be
consistent with the physical order in the file.
Andrew Bartlett [Mon, 5 Jan 2009 01:24:35 +0000 (12:24 +1100)]
More work to have OpenLDAP accept the full AD schema
We need to avoid handling DN+Binary and DN+String with the refint
module for now, as this is a currently unsupported syntax.
Also rename entryTTL to avoid a conflict with the operational
attribute of the same name.
Andrew Bartlett
Jelmer Vernooij [Sun, 4 Jan 2009 23:27:49 +0000 (00:27 +0100)]
Use fqdn rather than gethostname when guessing realm.
Jelmer Vernooij [Sun, 4 Jan 2009 21:48:23 +0000 (22:48 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Jeremy Allison [Sun, 4 Jan 2009 19:47:16 +0000 (11:47 -0800)]
Fix bug #6009 - Setting "min receivefile size = 1" breaks writes.
Jeremy.
Stefan Metzmacher [Sun, 4 Jan 2009 16:58:56 +0000 (17:58 +0100)]
tevent: move samba4 stuff from libtevent.m4 to samba.m4
metze
Stefan Metzmacher [Sun, 4 Jan 2009 16:57:40 +0000 (17:57 +0100)]
s4:build: add SMB_MAKE_SETTINGS() macro
metze
Volker Lendecke [Sun, 4 Jan 2009 17:14:33 +0000 (18:14 +0100)]
Fix a typo found by the IBM Checker