1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

67403 Commits

Author SHA1 Message Date
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
Andrew Bartlett
0ea3877935 s4-gensec Always honour the set server principal
The spengo code won't set this unless it is allowed to by this
same option, but other callers may need it.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sat Oct  2 02:27:39 UTC 2010 on sn-devel-104
2010-10-02 02:27:39 +00:00
Andrew Tridgell
23a8fad22b s4-drs: fixed comparison login in replicated renames
we need to ensure we only ever compare USNs from the same originating
invocation ID.

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sat Oct  2 01:45:19 UTC 2010 on sn-devel-104
2010-10-02 01:45:19 +00:00
Andrew Tridgell
6e846ca1f3 s4-kcc: remove stale repsTo entries in the KCC
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-02 01:04:17 +00:00
Andrew Tridgell
faa993d95c autobuild: fixed tuple count for retry 2010-10-01 18:03:31 -07:00
Andrew Bartlett
87698dc2a1 s4-kerberos Don't regenerate key values for each alias in keytab
Instead, store the same key value under the multiple alias names.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sat Oct  2 00:16:52 UTC 2010 on sn-devel-104
2010-10-02 00:16:52 +00:00
Andrew Bartlett
7b9a6645b1 s4-kdc Rework 'allowed encryption types' handling in the KDC
All DCs and all krbtgt servers are forced to use AES, regardless
of the msDS-SecondaryKrbTgtNumber value.

Andrew Bartlett
2010-10-02 09:11:37 +10:00
Andrew Bartlett
a82e3abc70 s4-auth Add make_server_info_pac() to include 'resource domain' groups
Previously, our PAC code didn't include these groups into the
server_info from which we would eventually calculate the full
list of tokenGroups.

Andrew Bartlett
2010-10-02 09:11:37 +10:00
Andrew Bartlett
6488d5bc0b s4-auth Allocate domain SIDs under the sids array, not server_info
Andrew Bartlett
2010-10-02 09:11:37 +10:00
Andrew Bartlett
a68f4476f7 heimdal use returned server entry from HDB to compare realms
Some hdb modules (samba4) may change the case of the realm in
a returned result.  Use that to determine if it matches the krbtgt
realm also returned from the DB (the DB will return it in the 'right' case)

Andrew Bartlett
2010-10-02 09:11:37 +10:00
Günther Deschner
d17a6f0493 s3-spoolss: Strip off ", DrvConvert" and ",LocalOnly" in OpenPrinterEx as seen from Win7 clients.
These suffixes and their meaning are not documented (yet).

Guenther
2010-10-02 00:42:52 +02:00
Andreas Schneider
455bbd5e1e s3-spoolss: Fixed print job access. 2010-10-02 00:04:45 +02:00
Andreas Schneider
b3fd5e11e5 s3-spoolss: Fixed print_access_check server_info. 2010-10-02 00:04:45 +02:00
Steven Danneman
100843ac23 s3:smbd: Increase unsupported IOCTL debug message to 2
Even printing once per connection, level 0 was too spammy with
Windows clients frequently sending FSCTL_GET_OBJECT_ID which
is unsupported.
2010-10-01 13:31:33 -07:00
Steven Danneman
455fccf86b s3:events: Call all ready fd event handlers on each iteration of the main loop
Previously, only one fd handler was being called per main message loop
in all smbd child processes.

In the case where multiple fds are available for reading the fd
corresponding to the event closest to the beginning of the event list
would be run.  Obviously this is arbitrary and could cause unfairness.

Usually, the first event fd is the network socket, meaning heavy load
of client requests can starve out other fd events such as oplock
or notify upcalls from the kernel.

In this patch, I have changed the behavior of run_events() to unset
any fd that it has already called a handler function, as well
as decrement the number of fds that were returned from select().
This allows the caller of run_events() to iterate it, until all
available fds have been handled.

I then changed the main loop in smbd child processes to iterate
run_events().  This way, all available fds are handled on each wake
of select, while still checking for timed or signalled events between
each handler function call.  I also added an explicit check for
EINTR from select(), which previously was masked by the fact that
run_events() would handle any signal event before the return code
was checked.

This required a signature change to run_events() but all other callers
should have no change in their behavior.  I also fixed a bug in
run_events() where it could be called with a selrtn value of -1,
doing unecessary looping through the fd_event list when no fds were
available.

Also, remove the temporary echo handler hack, as all fds should be
treated fairly now.
2010-10-01 13:31:33 -07:00