Kamen Mazdrashki
d385d9a317
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
2010-10-03 01:24:57 +03:00
Kamen Mazdrashki
657d4d8812
s4-test-dsdb_schema_info.py: Get rid of global module variables
2010-10-03 01:24:57 +03:00
Kamen Mazdrashki
83a15155eb
s4-test-dsdb_schema_info.py: Simplify connection SamDB
...
by using samba.tests.connect_samdb() helper
2010-10-03 01:24:57 +03:00
Kamen Mazdrashki
2a23f0d524
s4-test-fsmo.py: Use common implementation for env_get_var_value()
2010-10-03 01:24:57 +03:00
Kamen Mazdrashki
c05180caa7
s4-test-delete_object.py: Use common implementation for env_get_var_value()
2010-10-03 01:24:57 +03:00
Kamen Mazdrashki
302e1d29d8
s4-python-test: Common implementation for getting environment variable value
...
Unit-test based python tests require certain input parameters
to be set in environment, otherwise they can't be run
2010-10-03 01:24:56 +03:00
Kamen Mazdrashki
6546127b64
s4-python-samba: Remove trailing ';'s
2010-10-03 01:24:56 +03:00
Kamen Mazdrashki
6bc7c015fb
s4-test-fsmo.py: Use common implementation for connect_samdb()
...
Connections are restricted to LDAP only (remote),
as this test can't be run against local LDBs
2010-10-03 01:24:56 +03:00
Kamen Mazdrashki
98e4d2702a
s4-test-delete_object.py: Use common implementation for connect_samdb()
...
Connections are restricted to LDAP only (remote),
as this test can't be run against local LDBs
2010-10-03 01:24:56 +03:00
Kamen Mazdrashki
7acbb7346f
s4-python-test: Implement global connect_samdb() function
...
This helper makes proper ldb url to connect to
and is a shorthand for test to create SamDB connections
2010-10-03 01:24:56 +03:00
Kamen Mazdrashki
46ac1c3b47
s4-samba.samdb: Fix masking names from outer context
...
- 'filter' is built-in
- 'ldb' is a module name we imported
2010-10-03 01:24:56 +03:00
Kamen Mazdrashki
0cb476fb26
s4-python-samba: 'file' is a built-in
2010-10-03 01:24:55 +03:00
Kamen Mazdrashki
edfb8c64f6
s4-samba.samdb: Fix leading indention and trailing ';'
2010-10-03 01:24:55 +03:00
Kamen Mazdrashki
e9620c5fd2
s4-python-samba: Fix few cosmetics
...
- we have sys module already imported
- _glue module is part of samba package so be more precise how to import
2010-10-03 01:24:55 +03:00
Volker Lendecke
24f1893b5d
s3: Attempt to fix the non-ads build
2010-10-03 00:17:44 +02:00
Jelmer Vernooij
b9bef1fd3f
land-remote: Pass extra arguments on to land.
2010-10-03 00:04:59 +02:00
Jelmer Vernooij
22f633d094
pytdb: Include Python.h first to prevent warning.
2010-10-02 23:40:19 +02:00
Jelmer Vernooij
5cdef70823
subunithelper: Remove accidentally added line.
2010-10-02 23:32:12 +02:00
Kirill Smelkov
ab37c48e57
pytdb: Check errors after PyObject_New() calls
...
The call could fail with e.g. MemoryError, and we'll dereference NULL
pointer without checking.
Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-02 22:53:27 +02:00
Kirill Smelkov
bdd6bef5dd
pytdb: Add support for tdb_repack()
...
Cc: 597386@bugs.debian.org
Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-02 22:40:56 +02:00
Kirill Smelkov
a29142855e
pytdb: Add TDB_INCOMPATIBLE_HASH open flag
...
In 2dcf76 Rusty added TDB_INCOMPATIBLE_HASH open flag which selects
Jenkins lookup3 hash for new databases.
Expose this flag to python users too.
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-02 22:36:52 +02:00
Jelmer Vernooij
14efa95593
subunithelper: Fix format time.
2010-10-02 22:31:31 +02:00
Jelmer Vernooij
20c65121a7
land: Implement --fail-immediately directly in Python, provide subunit file.
2010-10-02 20:32:16 +02:00
Jelmer Vernooij
72119de02b
subunithelper: Make filter options optional.
2010-10-02 18:41:14 +02:00
Jelmer Vernooij
d7edb40fca
format-subunit: Split out summary file writing.
2010-10-02 18:40:44 +02:00
Jelmer Vernooij
4ece674a99
selftest: Move plain text formatter to subunithelper.
2010-10-02 17:02:02 +02:00
Jelmer Vernooij
8354518c96
land: Add separate treestagebuilder for subunit.
2010-10-02 13:26:36 +02:00
Jelmer Vernooij
b965a65e03
land: Cherry-pick tridges changes to autobuild.
2010-10-02 13:17:25 +02:00
Jelmer Vernooij
4190bd4e34
land: Move stage building into a separate class so we can have subclasses (e.g. subunit-specific).
2010-10-02 13:14:53 +02:00
Jelmer Vernooij
554289c261
land: Only pass shell=True if necessary.
2010-10-02 13:14:53 +02:00
Jelmer Vernooij
d03ff1c9da
land: Add --fail-slowly option.
2010-10-02 13:14:53 +02:00
Jelmer Vernooij
916904443d
Several smaller cleanups, use python coding style.
2010-10-02 13:14:51 +02:00
Jelmer Vernooij
7f0167770c
land: Avoid running things in a shell where not necessary.
2010-10-02 13:14:51 +02:00
Jelmer Vernooij
56ad550a92
land-remote: Checkout repository first.
2010-10-02 13:14:51 +02:00
Jelmer Vernooij
ff5fdb65f5
land-remote: Use --repository option.
2010-10-02 13:14:51 +02:00
Jelmer Vernooij
8ce24a9187
land: Add --repository option.
2010-10-02 13:14:51 +02:00
Jelmer Vernooij
3c85d031d3
land: Move more functionality onto builder.
2010-10-02 13:14:51 +02:00
Jelmer Vernooij
74be4a2abf
land: Avoid more uses of chdir().
2010-10-02 13:14:50 +02:00
Jelmer Vernooij
6f6bfb3f20
Split land.py back out of autobuild.py, so I can change it without
...
risking to break the autobuild system.
2010-10-02 13:14:50 +02:00
Volker Lendecke
13756d0e80
s3: Attempt to fix bug 7665
...
Quite a few of our internal routines put stuff on talloc_tos() these days.
In top-level netapi routines, properly allocate a stackframe and clean it
again. Also, don't leak memory in the rpccli_ callers onto the libnetapi
context.
2010-10-02 12:02:02 +02:00
Volker Lendecke
fc6e910e69
s3: Fix a 64-bit BUG
...
Quick explanation why this is a problem:
It is not safe to pass a pointer to a uint32_t into a routine that expects
a size_t *. The routine that this pointer is passed to has no chance to find
out that in reality it was passed a pointer to a uint32_t. On platforms where
sizeof(size_t)==8, we get a nice overwrite of a stack area that should not
be overwritten.
As this happens over an over again: Does someone know a means to make gcc
stop with an error in this case?
Volker
2010-10-02 11:17:49 +02:00
Andrew Tridgell
ed5e05a15d
bisect: more bisection options
...
and fixes for the old ones
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sat Oct 2 06:14:46 UTC 2010 on sn-devel-104
2010-10-02 06:14:46 +00:00
Andrew Tridgell
018d23a293
script: added bisect-test.py git bisect script
...
this can be used to work out what commit broke a set of tests
2010-10-01 22:31:58 -07:00
Andrew Tridgell
06b27e5e3d
autobuild: show top commit in emails
2010-10-01 22:31:58 -07:00
Andrew Tridgell
f9bc389f60
autobuild: include autobuild.log in logs.tar.gz
2010-10-01 22:31:58 -07:00
Andrew Tridgell
eadd28233d
s4-repl: use the GC principal name for DRS replication connection
...
this is required when talking to RODCs (for notify calls), and is good
practice for all DCs
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-01 22:31:58 -07:00
Andrew Tridgell
9bae4cd3d9
s4-rpc: added target_principal binding handle option
...
this allows you to specify a target SPN for a connection
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-01 22:31:57 -07:00
Andrew Tridgell
ee15dc9692
s4-dsdb: added dsdb_search_by_dn_guid()
...
this is more efficient than first searching for the DN, then doing a
search. We should look at using this in lots of existing code
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-01 21:09:51 -07:00
Stefan Metzmacher
76232a40d8
s4:rpc_server/netlogon: don't use dcerpc_binding_handle_call_send/recv() directly
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Oct 2 03:11:38 UTC 2010 on sn-devel-104
2010-10-02 03:11:38 +00:00
Stefan Metzmacher
47b3d88a7d
netlogon.idl: add missing flags to DSGETDC_VALID_FLAGS
...
metze
2010-10-02 02:31:05 +00:00