Kamen Mazdrashki [Mon, 4 Oct 2010 17:51:03 +0000 (20:51 +0300)]
talloc: __talloc_vaslenprintf_append - reallocate only if we really we need to
This we don't shrink 's' buffer implicitly
Kamen Mazdrashki [Mon, 4 Oct 2010 17:50:46 +0000 (20:50 +0300)]
talloc: __talloc_strlendup_append - reallocate only if we really we need to
This we don't shrink 's' buffer implicitly
Kamen Mazdrashki [Mon, 4 Oct 2010 17:39:53 +0000 (20:39 +0300)]
s4-ndr_print_string: Use local buffer to construct next string chunk
This will save us few reallocations on a potentially big
memory block
Kamen Mazdrashki [Wed, 18 Aug 2010 01:56:15 +0000 (04:56 +0300)]
s4-schema: Optimize strcasecmp_with_ldb_val() a little bit
Get rid of unnecessary 'strlen' call
This implementation behaves exactly as if target->data
is 0-terminated, if it is not.
Kamen Mazdrashki [Wed, 6 Jan 2010 11:36:27 +0000 (13:36 +0200)]
ECLIPSE + PyDev Project
Matthias Dieter Wallnöfer [Sun, 3 Oct 2010 16:49:56 +0000 (18:49 +0200)]
s4:kdc/db-glue.c - remove unused variable
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Oct 3 17:30:34 UTC 2010 on sn-devel-104
Matthias Dieter Wallnöfer [Wed, 29 Sep 2010 17:49:57 +0000 (19:49 +0200)]
s4:ldap.py - test allowed system flags restriction
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Matthias Dieter Wallnöfer [Wed, 29 Sep 2010 16:18:55 +0000 (18:18 +0200)]
s4:objectclass LDB module - introduce allowed system flags restriction
Let us do the distinction by real use and provision by the RELAX flag
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Matthias Dieter Wallnöfer [Sun, 3 Oct 2010 16:40:05 +0000 (18:40 +0200)]
s4:urgent_replication.py - fix up the system flags handling
And relax some more object creations due to the enforced system flags rules.
Volker Lendecke [Sun, 3 Oct 2010 15:39:00 +0000 (17:39 +0200)]
s3: Remove smbd_server_conn from msg_force_tdis
Volker Lendecke [Sun, 3 Oct 2010 15:37:24 +0000 (17:37 +0200)]
s3: Remove smbd_server_conn from process_blocking_lock_cancel_message
Volker Lendecke [Sun, 3 Oct 2010 15:35:52 +0000 (17:35 +0200)]
s3: Remove smbd_server_conn from smb1 receive_unlock_msg
Volker Lendecke [Sun, 3 Oct 2010 15:34:43 +0000 (17:34 +0200)]
s3: Remove smbd_server_conn from msg_file_was_renamed
Volker Lendecke [Sun, 3 Oct 2010 15:33:11 +0000 (17:33 +0200)]
s3: Remove smbd_server_conn from validate_my_share_entries
Volker Lendecke [Sun, 3 Oct 2010 15:29:56 +0000 (17:29 +0200)]
s3: Remove smbd_server_conn from msg_close_file
Volker Lendecke [Sun, 3 Oct 2010 15:28:10 +0000 (17:28 +0200)]
s3: Remove smbd_server_conn from smb2 receive_unlock_msg
Volker Lendecke [Sun, 3 Oct 2010 15:24:33 +0000 (17:24 +0200)]
s3: Remove smbd_server_conn from process_kernel_oplock_break
Volker Lendecke [Sun, 3 Oct 2010 15:22:09 +0000 (17:22 +0200)]
s3: Remove smbd_server_conn from process_oplock_break_message
Volker Lendecke [Sun, 3 Oct 2010 15:20:43 +0000 (17:20 +0200)]
s3: Remove smbd_server_conn from process_oplock_async_level2_break_message
Volker Lendecke [Sun, 3 Oct 2010 15:18:26 +0000 (17:18 +0200)]
s3: Lift smbd_server_conn from initial_break_processing
Volker Lendecke [Sun, 19 Sep 2010 19:09:18 +0000 (21:09 +0200)]
s3: Add msg_ctx_to_sconn
Matthias Dieter Wallnöfer [Sun, 3 Oct 2010 14:14:34 +0000 (16:14 +0200)]
s4:patchfile_dotreg.c - use "size_t" when counting characters in DATA_BLOBs
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Oct 3 16:03:41 UTC 2010 on sn-devel-104
Andrew Bartlett [Sun, 3 Oct 2010 09:22:38 +0000 (20:22 +1100)]
s4-kdc Remove special case kerberos restriction in the KDC
We should avoid using Kerberos or any other recursive auth mechanism
in ldb backends, but denying Kerberos here won't be enough, so
remove the special case. (Typcially we bind using a different password
space and DIGEST-MD5 or NTLM).
Andrew Bartlett
Matthias Dieter Wallnöfer [Sun, 19 Sep 2010 15:46:48 +0000 (17:46 +0200)]
s4:deletetest.py - enhance the tests
- Integrate the ldap.py delete protection testing code and enhance it
- Demonstrate the DISALLOW_MOVE_ON_DELETE system flag
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Matthias Dieter Wallnöfer [Sat, 25 Sep 2010 09:49:17 +0000 (11:49 +0200)]
s4:ldap.py - remove the delete tests
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Matthias Dieter Wallnöfer [Sun, 19 Sep 2010 20:36:12 +0000 (22:36 +0200)]
s4:dsdb python stuff - introduce also here the "show_recycled" control
But also here beside "show_deleted" to not loose compatibility with older
provisions.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Matthias Dieter Wallnöfer [Sun, 19 Sep 2010 20:20:08 +0000 (22:20 +0200)]
s4:dsdb - substitute the "show_deleted" with the "show_recycled" control
We intend to see always all objects with the "show_deleted" control specified.
To see also recycled objects (beginning with 2008_R2 function level) we need to
use the new "show_recycled" control.
As far as I see this is only internal code and therefore we don't run into
problems if we do substitute it.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Matthias Dieter Wallnöfer [Sun, 19 Sep 2010 20:12:23 +0000 (22:12 +0200)]
s4:dsdb/common/util.c - introduce "DSDB_SEARCH_SHOW_RECYCLED" flag
This is needed since starting with 2008_R2 function level we get another type
of hidden objects which aren't seen by the "show_deleted" control: recycled
objects.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Matthias Dieter Wallnöfer [Sat, 25 Sep 2010 05:42:14 +0000 (07:42 +0200)]
s4:subtree_rename LDB module - also already deleted objects have to be renamed
This is needed if the SYSTEM_FLAG_DISALLOW_MOVE_ON_DELETE flag was specified
and the parent is renamed.
To be able to do this we also need to relax the constraint checks (using the
"isDeleted" proof).
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Matthias Dieter Wallnöfer [Sun, 19 Sep 2010 16:23:20 +0000 (18:23 +0200)]
s4:show_deleted LDB module - also support the "show_recycled" control
MS-ADTS 3.1.1.3.4.1 and MS-ADTS 3.1.1.5.5
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Matthias Dieter Wallnöfer [Fri, 17 Sep 2010 10:08:28 +0000 (12:08 +0200)]
s4:repl_meta_data LDB module - consider the SYSTEM_FLAG_DISALLOW_MOVE_ON_DELETE flag
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Matthias Dieter Wallnöfer [Fri, 24 Sep 2010 16:44:50 +0000 (18:44 +0200)]
s4:subtree_delete LDB module - it is only responsible for non-deleted objects
The deleted objects (tombstones, recycled & deleted objects) are handled by
"repl_meta_data".
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Matthias Dieter Wallnöfer [Sat, 25 Sep 2010 10:02:53 +0000 (12:02 +0200)]
s4:objectclass LDB module - fix the "crossRef" delete protection
This is what Windows does
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Matthias Dieter Wallnöfer [Fri, 24 Sep 2010 12:13:48 +0000 (14:13 +0200)]
s4:objectclass LDB module - fix the delete behaviour of server containers
A typo prevented the right behaviour.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Sun, 3 Oct 2010 14:53:45 +0000 (07:53 -0700)]
autobuild: override the editor when marking the commit
this avoids the problem of a user having an editor set in their global
.gitconfig, and that having higher precedence than the EDITOR
environment variable
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Sun Oct 3 15:22:01 UTC 2010 on sn-devel-104
Jelmer Vernooij [Sun, 3 Oct 2010 14:25:34 +0000 (16:25 +0200)]
wafsamba: Some reformatting.
Jelmer Vernooij [Sun, 3 Oct 2010 14:08:13 +0000 (16:08 +0200)]
heimdal: Move asn1 list to heimdal_build.
Jelmer Vernooij [Sun, 3 Oct 2010 14:04:34 +0000 (16:04 +0200)]
heimdal: Move SAMBA_ERRTABLE to heimdal_build.
Jelmer Vernooij [Sun, 3 Oct 2010 14:01:58 +0000 (16:01 +0200)]
heimdal: Move autoproto code to heimdal_build.
Jelmer Vernooij [Sun, 3 Oct 2010 13:59:21 +0000 (15:59 +0200)]
wafsamba: Move heimdal library code to heimdal_build.
Jelmer Vernooij [Sun, 3 Oct 2010 13:06:51 +0000 (15:06 +0200)]
land: Inherit EMAIL from the environment.
Jelmer Vernooij [Sun, 3 Oct 2010 13:00:33 +0000 (15:00 +0200)]
pidl: Allow longs for bitmasks.
Jelmer Vernooij [Sun, 3 Oct 2010 12:38:12 +0000 (14:38 +0200)]
pidl: simplify some generated code.
Jelmer Vernooij [Sun, 3 Oct 2010 05:10:58 +0000 (07:10 +0200)]
heimdal: Convert hx509 to library.
Jelmer Vernooij [Sun, 3 Oct 2010 04:58:39 +0000 (06:58 +0200)]
heimdal: convert some subsystems to libraries, consistent with upstream heimdal.
Wilco Baan Hofman [Sun, 3 Oct 2010 04:36:49 +0000 (06:36 +0200)]
Make sure REG_SZ is properly written to a .reg file (not as hex(1)), fix trailing comma REG_BINARY.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Wilco Baan Hofman [Sun, 3 Oct 2010 04:19:12 +0000 (06:19 +0200)]
Fix issues addressed by Jelmer:
* Add a comment about why the reg_strhex_to_data_blob was added
* Fix int which should've been a boolean
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Wilco Baan Hofman [Sun, 3 Oct 2010 04:11:31 +0000 (06:11 +0200)]
Fix patchfile_dotreg to write proper .reg files: 'hex(1..B):', 'dword:', etc
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Wilco Baan Hofman [Fri, 3 Sep 2010 09:04:17 +0000 (11:04 +0200)]
Fix registry editor to be compatible with Windows 7.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Wilco Baan Hofman [Mon, 30 Aug 2010 13:27:05 +0000 (15:27 +0200)]
5 uint32_t's should be set, not 5 bytes.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Wilco Baan Hofman [Mon, 30 Aug 2010 13:05:25 +0000 (15:05 +0200)]
The root key should be created as a root key, not subkey.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Wilco Baan Hofman [Mon, 30 Aug 2010 10:21:29 +0000 (12:21 +0200)]
Do not include the closing doublequote in .reg files.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Wilco Baan Hofman [Wed, 28 Jul 2010 12:46:38 +0000 (14:46 +0200)]
Fix hex():00,00,00 bugs and strtol dword bugs, these values are explicitly hex.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Wilco Baan Hofman [Tue, 27 Jul 2010 15:21:48 +0000 (17:21 +0200)]
Make sure we write the value stored in value, not line (doublequoted).
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Wilco Baan Hofman [Tue, 27 Jul 2010 09:13:24 +0000 (11:13 +0200)]
Make sure that regf only writes to disk every five seconds or when flushed or destroyed
Brings speed up on a large .reg import from 17.5s to 0.95s, over 18 times faster
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Wilco Baan Hofman [Mon, 26 Jul 2010 20:10:43 +0000 (22:10 +0200)]
Fix .reg file format parsing.
* multiline data
* doublequoted value name
* handle windows format CRLF
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Wilco Baan Hofman [Mon, 26 Jul 2010 18:16:44 +0000 (20:16 +0200)]
Fix registry parsing of strings to also support the windows method.
Specifically: dword:
00000000, hex:00,00,00,00, hex(0..B):00,00,00,00
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Volker Lendecke [Sun, 3 Oct 2010 11:21:21 +0000 (13:21 +0200)]
s3: I thought I had compiled this....
Matthias Dieter Wallnöfer [Sat, 2 Oct 2010 11:45:22 +0000 (13:45 +0200)]
s4:dsdb_dn_val_rmd_flags - memmem - scan the whole string for occourences
Do this as in "dsdb_dn_is_upgraded_link_val". There is really no reason to
truncate before search.
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Oct 3 10:45:39 UTC 2010 on sn-devel-104
Matthias Dieter Wallnöfer [Wed, 29 Sep 2010 17:50:20 +0000 (19:50 +0200)]
s4:ldap.py - delete the right object after test completition
Matthias Dieter Wallnöfer [Wed, 29 Sep 2010 17:39:17 +0000 (19:39 +0200)]
s4:ldap.py - fix "system only" test
A part was missing
Matthias Dieter Wallnöfer [Mon, 27 Sep 2010 05:46:11 +0000 (07:46 +0200)]
s4:acl_read LDB module - fix counter type
Matthias Dieter Wallnöfer [Thu, 30 Sep 2010 06:47:24 +0000 (08:47 +0200)]
s4:getncchanges.c - fix some counter types
Matthias Dieter Wallnöfer [Mon, 27 Sep 2010 05:42:29 +0000 (07:42 +0200)]
s4:schema_samba4.ldif - update allocated controls list
This needs always to be done after a control allocation otherwise we end up in
double-allocations and unexpected behaviour.
Matthias Dieter Wallnöfer [Tue, 28 Sep 2010 10:33:40 +0000 (12:33 +0200)]
s4:libcli/resolve/dns_ex.c - fix "const" warning
Volker Lendecke [Sun, 3 Oct 2010 09:56:35 +0000 (11:56 +0200)]
s3: Move #define VALGRIND to config.h
This fixes the valgrind overrun in the tdb jenkins hash
Stefan Metzmacher [Sat, 2 Oct 2010 00:13:36 +0000 (02:13 +0200)]
s4:rpc_server/echo: fix compiler warning
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Oct 3 09:41:51 UTC 2010 on sn-devel-104
Volker Lendecke [Sun, 3 Oct 2010 08:54:06 +0000 (10:54 +0200)]
s3: Attempt to fix the IRIX build
Volker Lendecke [Sun, 3 Oct 2010 08:46:22 +0000 (10:46 +0200)]
s3: Attempt to fix a ton of warnings on the build farm
Volker Lendecke [Sat, 2 Oct 2010 21:49:06 +0000 (23:49 +0200)]
s3: Remove talloc_autofree_context() from dmapi.c
This is a place where an explicit dmapi_destroy_session would be needed. But we
don't use a destructor for this.
Volker Lendecke [Sat, 2 Oct 2010 21:44:58 +0000 (23:44 +0200)]
s3: Remove talloc_autofree_context() from unexpected.c
Same argument as in
997a64f6fb11e19d78c: If tdb_close() was needed at exit
time, we'd have more severe problems by now.
Volker Lendecke [Sat, 2 Oct 2010 21:40:48 +0000 (23:40 +0200)]
s3: Remove talloc_autofree_context() from srv_samr_nt.c
The dispinfo structs need to survive within a process across pipe opens,
but they don't have a special destructor
Volker Lendecke [Sat, 2 Oct 2010 21:38:33 +0000 (23:38 +0200)]
s3: Remove talloc_autofree_context from pdb_interface
None of the pdb backends have special destructors that need to be run at
program exit.
Andrew Tridgell [Sat, 2 Oct 2010 21:56:28 +0000 (14:56 -0700)]
s4-kcc: silence "Testing kcctpl_create_intersite_connections" message
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sun Oct 3 04:51:44 UTC 2010 on sn-devel-104
Andrew Tridgell [Sat, 2 Oct 2010 21:23:43 +0000 (14:23 -0700)]
s4-selftest: support 'make testenv SCREEN=1'
this can be used to start a test envioronment in screen windows.
Use:
make testenv SCREEN=1 SELFTEST_TESTENV=dc
to launch just one environment (in this case, "dc")
Andrew Tridgell [Sat, 2 Oct 2010 21:21:52 +0000 (14:21 -0700)]
s4-selftest: silence warnings about bind chown
Andrew Tridgell [Sat, 2 Oct 2010 21:21:11 +0000 (14:21 -0700)]
s4-test: silence a tap2subunit error
Andrew Tridgell [Sat, 2 Oct 2010 20:08:37 +0000 (13:08 -0700)]
s4-test: silence the Failed to chown message in make test
Andrew Tridgell [Sat, 2 Oct 2010 20:03:40 +0000 (13:03 -0700)]
s4-ldif: get rid of the ndr_pull_error message on startup
detect if the prefixmap blob is text or binary using the first 4 bytes
Andrew Tridgell [Sat, 2 Oct 2010 19:44:28 +0000 (12:44 -0700)]
s4-server: exit with status 127 on SIGTERM
this ensures that make test detects a failure if samba is killed by
SIGTERM
Andrew Tridgell [Sat, 2 Oct 2010 19:43:50 +0000 (12:43 -0700)]
s4-selftest: added --screen option for test
you can now do:
make test TESTS="some test" SCREEN=1
while in GNU screen, and all the samba servers will launch in their
own new screen, named after the server name.
You can also do:
make test TESTS="some test" SCREEN=1 VALGRIND_SERVER=1
to run valgrind on each samba server, or
make test TESTS="some test" SCREEN=1 GDBTEST=1
to run gdb on each server
Andrew Tridgell [Sat, 2 Oct 2010 19:42:00 +0000 (12:42 -0700)]
s4-selftest: fixed up exit codes on signals for make test
also set $ENVNAME in launched servers
Jelmer Vernooij [Sun, 3 Oct 2010 02:24:46 +0000 (04:24 +0200)]
land: Force always emailing when there is no other mechanism of progress reporting.
Jelmer Vernooij [Sun, 3 Oct 2010 01:56:09 +0000 (03:56 +0200)]
land: Attach tarball of logs rather than individual logs to keep the
mail size reasonable.
Jelmer Vernooij [Sun, 3 Oct 2010 00:16:11 +0000 (02:16 +0200)]
land: Some cosmetic fixes.
Jelmer Vernooij [Sat, 2 Oct 2010 23:31:11 +0000 (01:31 +0200)]
land: Attach test output files to result emails.
Jelmer Vernooij [Sat, 2 Oct 2010 22:50:53 +0000 (00:50 +0200)]
land: Add --revision argument.
Jelmer Vernooij [Sat, 2 Oct 2010 22:10:47 +0000 (00:10 +0200)]
land-remote: Run remote land command unbuffered.
Andrew Bartlett [Sat, 2 Oct 2010 06:55:06 +0000 (16:55 +1000)]
s4-kdc Fix up after import of new lorikeet-heimdal
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sun Oct 3 01:56:04 UTC 2010 on sn-devel-104
Andrew Bartlett [Sat, 2 Oct 2010 06:52:52 +0000 (16:52 +1000)]
Add new files for sha512 support
Andrew Bartlett [Sat, 2 Oct 2010 06:32:56 +0000 (16:32 +1000)]
Andrew Bartlett [Sat, 25 Sep 2010 04:34:46 +0000 (14:34 +1000)]
s4-heimdal We don't need HDBDIR any more
Matthieu Patou [Fri, 20 Aug 2010 08:01:46 +0000 (12:01 +0400)]
heimdal: change the version string
Andrew Bartlett [Sat, 25 Sep 2010 04:58:09 +0000 (14:58 +1000)]
s4-heimdal_build fix up build after heimdal import
Heimdal has it's own dynconfig like system, and so we need the
LIBDIR etc in the CFLAGS here.
We also need to define build rules for the new files imported in
the merge commit, and fix up some header files.
This includes the work by Matthieu Patou <mat@matws.net>
Andrew Bartlett
Matthieu Patou [Sun, 15 Aug 2010 14:31:28 +0000 (18:31 +0400)]
s4:heimdal: import lorikeet-heimdal-
201009250123 (commit
42cabfb5b683dbcb97d583c397b897507689e382)
I based this on Matthieu's import of lorikeet-heimdal, and then
updated it to this commit.
Andrew Bartlett
Kamen Mazdrashki [Fri, 1 Oct 2010 00:30:50 +0000 (03:30 +0300)]
s4-ldapcmp.py: Don't guess credentials for second Credentials object
This allow us to fallback to first credentials given.
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Sat Oct 2 23:05:20 UTC 2010 on sn-devel-104
Kamen Mazdrashki [Fri, 1 Oct 2010 00:29:33 +0000 (03:29 +0300)]
s4-getopt.py: Make Anonymous creds when no credentials
are supplied on command line and caller doesn't want us
to guess credentials from environment
Kamen Mazdrashki [Thu, 30 Sep 2010 18:42:17 +0000 (21:42 +0300)]
s4-test-fsmo.py: Implement kind of busy-wait for role transfer
This allows us not to hard code timeout we are going to wait for
before failing the test - if DCs are not very busy, we won't wait
at all (speeds up 'make test' by a minute also)
Maximum timeout to wait for is set to 20 secs currently,
which should be enough even for slow machines and tested
DCs being under load
Kamen Mazdrashki [Wed, 29 Sep 2010 12:56:23 +0000 (15:56 +0300)]
s4-test-dsdb_schema_info.py: Get rid of global module variables
Kamen Mazdrashki [Wed, 29 Sep 2010 12:51:11 +0000 (15:51 +0300)]
s4-test-dsdb_schema_info.py: Simplify connection SamDB
by using samba.tests.connect_samdb() helper